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