public function __construct(\SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     if (!empty($xml->noDistributionProfiles)) {
         $this->noDistributionProfiles = true;
     }
     if (count($xml->distributionProfileId)) {
         $this->distributionProfileId = (int) $xml->distributionProfileId;
     }
     if (count($xml->distributionSunStatus)) {
         $this->distributionSunStatus = (int) $xml->distributionSunStatus;
     }
     if (count($xml->entryDistributionFlag)) {
         $this->entryDistributionFlag = (int) $xml->entryDistributionFlag;
     }
     if (count($xml->entryDistributionStatus)) {
         $this->entryDistributionStatus = (int) $xml->entryDistributionStatus;
     }
     if (!empty($xml->hasEntryDistributionValidationErrors)) {
         $this->hasEntryDistributionValidationErrors = true;
     }
     $this->entryDistributionValidationErrors = (string) $xml->entryDistributionValidationErrors;
 }
Пример #2
0
 public function __construct(\SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     $this->field = (string) $xml->field;
     $this->value = (string) $xml->value;
 }
 public function __construct(\SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     $this->categoriesMatchOr = (string) $xml->categoriesMatchOr;
     $this->categoryEntryStatusIn = (string) $xml->categoryEntryStatusIn;
 }
 public function __construct(\SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     if (count($xml->indexIdGreaterThan)) {
         $this->indexIdGreaterThan = (int) $xml->indexIdGreaterThan;
     }
 }
 public function __construct(\SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     $this->memberIdEq = (string) $xml->memberIdEq;
     $this->memberIdIn = (string) $xml->memberIdIn;
     $this->memberPermissionsMatchOr = (string) $xml->memberPermissionsMatchOr;
     $this->memberPermissionsMatchAnd = (string) $xml->memberPermissionsMatchAnd;
 }
 public function __construct(\SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     $this->categoriesMatchOr = (string) $xml->categoriesMatchOr;
     $this->categoryEntryStatusIn = (string) $xml->categoryEntryStatusIn;
     $this->orderBy = (string) $xml->orderBy;
     if (count($xml->categoryIdEqual)) {
         $this->categoryIdEqual = (int) $xml->categoryIdEqual;
     }
 }
Пример #7
0
 public function __construct(\SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     if (count($xml->type)) {
         $this->type = (int) $xml->type;
     }
     if (empty($xml->items)) {
         $this->items = array();
     } else {
         $this->items = \Kaltura\Client\ParseUtils::unmarshalArray($xml->items, "KalturaSearchItem");
     }
 }