コード例 #1
0
 public function __construct(\SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     if (count($xml->categoryId)) {
         $this->categoryId = (int) $xml->categoryId;
     }
     $this->entryId = (string) $xml->entryId;
 }
コード例 #2
0
 public function __construct(\SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     if (count($xml->categoryId)) {
         $this->categoryId = (int) $xml->categoryId;
     }
     $this->categoryReferenceId = (string) $xml->categoryReferenceId;
     $this->userId = (string) $xml->userId;
     if (count($xml->permissionLevel)) {
         $this->permissionLevel = (int) $xml->permissionLevel;
     }
     if (count($xml->updateMethod)) {
         $this->updateMethod = (int) $xml->updateMethod;
     }
     if (count($xml->requiredObjectStatus)) {
         $this->requiredObjectStatus = (int) $xml->requiredObjectStatus;
     }
 }
コード例 #3
0
 public function __construct(\SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     $this->entryId = (string) $xml->entryId;
     $this->title = (string) $xml->title;
     $this->description = (string) $xml->description;
     $this->tags = (string) $xml->tags;
     $this->url = (string) $xml->url;
     $this->contentType = (string) $xml->contentType;
     if (count($xml->conversionProfileId)) {
         $this->conversionProfileId = (int) $xml->conversionProfileId;
     }
     if (count($xml->accessControlProfileId)) {
         $this->accessControlProfileId = (int) $xml->accessControlProfileId;
     }
     $this->category = (string) $xml->category;
     if (count($xml->scheduleStartDate)) {
         $this->scheduleStartDate = (int) $xml->scheduleStartDate;
     }
     if (count($xml->scheduleEndDate)) {
         $this->scheduleEndDate = (int) $xml->scheduleEndDate;
     }
     if (count($xml->entryStatus)) {
         $this->entryStatus = (int) $xml->entryStatus;
     }
     $this->thumbnailUrl = (string) $xml->thumbnailUrl;
     if (!empty($xml->thumbnailSaved)) {
         $this->thumbnailSaved = true;
     }
     $this->sshPrivateKey = (string) $xml->sshPrivateKey;
     $this->sshPublicKey = (string) $xml->sshPublicKey;
     $this->sshKeyPassphrase = (string) $xml->sshKeyPassphrase;
     $this->creatorId = (string) $xml->creatorId;
     $this->entitledUsersEdit = (string) $xml->entitledUsersEdit;
     $this->entitledUsersPublish = (string) $xml->entitledUsersPublish;
     $this->ownerId = (string) $xml->ownerId;
 }
コード例 #4
0
 public function __construct(\SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     $this->relativePath = (string) $xml->relativePath;
     $this->name = (string) $xml->name;
     $this->referenceId = (string) $xml->referenceId;
     $this->description = (string) $xml->description;
     $this->tags = (string) $xml->tags;
     if (count($xml->appearInList)) {
         $this->appearInList = (int) $xml->appearInList;
     }
     if (count($xml->privacy)) {
         $this->privacy = (int) $xml->privacy;
     }
     if (count($xml->inheritanceType)) {
         $this->inheritanceType = (int) $xml->inheritanceType;
     }
     if (count($xml->userJoinPolicy)) {
         $this->userJoinPolicy = (int) $xml->userJoinPolicy;
     }
     if (count($xml->defaultPermissionLevel)) {
         $this->defaultPermissionLevel = (int) $xml->defaultPermissionLevel;
     }
     $this->owner = (string) $xml->owner;
     if (count($xml->contributionPolicy)) {
         $this->contributionPolicy = (int) $xml->contributionPolicy;
     }
     if (count($xml->partnerSortValue)) {
         $this->partnerSortValue = (int) $xml->partnerSortValue;
     }
     if (!empty($xml->moderation)) {
         $this->moderation = true;
     }
 }
コード例 #5
0
 public function __construct(\SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     $this->userId = (string) $xml->userId;
     $this->screenName = (string) $xml->screenName;
     $this->email = (string) $xml->email;
     $this->description = (string) $xml->description;
     $this->tags = (string) $xml->tags;
     if (count($xml->dateOfBirth)) {
         $this->dateOfBirth = (int) $xml->dateOfBirth;
     }
     $this->country = (string) $xml->country;
     $this->state = (string) $xml->state;
     $this->city = (string) $xml->city;
     $this->zip = (string) $xml->zip;
     if (count($xml->gender)) {
         $this->gender = (int) $xml->gender;
     }
     $this->firstName = (string) $xml->firstName;
     $this->lastName = (string) $xml->lastName;
 }