00001 <?php
00002
00012 abstract class SXMLModel extends SModel2 {
00013 private $nodeName;
00014
00015
00016
00017
00018
00027 public function populate($constraints) {
00028 }
00029
00038 public function commit($updateObj = false) {
00039 }
00040
00047 protected function registerNodeName($name) {
00048 $this->nodeName = $name;
00049 }
00050
00056 public function getNodeName() {
00057 return $this->nodeName;
00058 }
00059
00067 public function getXML($options = array()) {
00068 if(!isset($options['root']))
00069 $options['root'] = $this->nodeName;
00070 return parent::getXML($options);
00071 }
00072 }
00073
00074 ?>