00001 <?php
00002
00011 class SDRRelationshipObj extends SXMLModel {
00012 private static $ATTRIBUTES = array(
00013 'sourceId' => array(),
00014 'destId' => array(),
00015 'version' => array('type' => 'string', 'default' => 'DEV'),
00016 'status' => array('type' => 'string', 'default' => 'NEW'),
00017 'description' => array('type' => 'string'),
00018 'resourceId' => array()
00019 );
00020
00029 public function __construct($xml = null) {
00030 parent::__construct();
00031
00032 $this->registerAttributes(self::$ATTRIBUTES);
00033 $this->registerNodeName('relationship');
00034
00035 if($xml)
00036 $this->setXML($xml);
00037 }
00038 }
00039
00040 ?>