Example #1
0
 public function __construct(SimpleXMLElement $xml = null)
 {
     if (is_null($xml)) {
         return;
     }
     if (count($xml->relatedObjects)) {
         if (empty($xml->relatedObjects)) {
             $this->relatedObjects = array();
         } else {
             $this->relatedObjects = Kaltura_Client_ParseUtils::unmarshalMap($xml->relatedObjects, "KalturaListResponse");
         }
     }
 }