00001 <?php
00002
00011 class SDRRelationshipList extends SXMLListModel {
00012 private static $ATTRIBUTES = array(
00013 'resourceId' => array('type' => 'string'),
00014 'relationships' => array('type' => 'SDRRelationshipObj', 'array' => true)
00015 );
00016
00025 public function __construct($xml = null) {
00026 parent::__construct();
00027
00028 $this->registerAttributes(self::$ATTRIBUTES);
00029 $this->registerNodeName('relationships');
00030 $this->registerListAttribute('relationships', 'relationship');
00031
00032 if($xml)
00033 $this->setXML($xml);
00034 }
00035 }
00036
00037 ?>