public function __construct($vals = null)
 {
     if (!isset(self::$_TSPEC)) {
         self::$_TSPEC = array(1 => array('var' => 'subjectDate', 'type' => TType::I64), 10 => array('var' => 'latitude', 'type' => TType::DOUBLE), 11 => array('var' => 'longitude', 'type' => TType::DOUBLE), 12 => array('var' => 'altitude', 'type' => TType::DOUBLE), 13 => array('var' => 'author', 'type' => TType::STRING), 14 => array('var' => 'source', 'type' => TType::STRING), 15 => array('var' => 'sourceURL', 'type' => TType::STRING), 16 => array('var' => 'sourceApplication', 'type' => TType::STRING), 17 => array('var' => 'shareDate', 'type' => TType::I64), 18 => array('var' => 'reminderOrder', 'type' => TType::I64), 19 => array('var' => 'reminderDoneTime', 'type' => TType::I64), 20 => array('var' => 'reminderTime', 'type' => TType::I64), 21 => array('var' => 'placeName', 'type' => TType::STRING), 22 => array('var' => 'contentClass', 'type' => TType::STRING), 23 => array('var' => 'applicationData', 'type' => TType::STRUCT, 'class' => '\\EDAM\\Types\\LazyMap'), 24 => array('var' => 'lastEditedBy', 'type' => TType::STRING), 26 => array('var' => 'classifications', 'type' => TType::MAP, 'ktype' => TType::STRING, 'vtype' => TType::STRING, 'key' => array('type' => TType::STRING), 'val' => array('type' => TType::STRING)), 27 => array('var' => 'creatorId', 'type' => TType::I32), 28 => array('var' => 'lastEditorId', 'type' => TType::I32));
     }
     if (is_array($vals)) {
         if (isset($vals['subjectDate'])) {
             $this->subjectDate = $vals['subjectDate'];
         }
         if (isset($vals['latitude'])) {
             $this->latitude = $vals['latitude'];
         }
         if (isset($vals['longitude'])) {
             $this->longitude = $vals['longitude'];
         }
         if (isset($vals['altitude'])) {
             $this->altitude = $vals['altitude'];
         }
         if (isset($vals['author'])) {
             $this->author = $vals['author'];
         }
         if (isset($vals['source'])) {
             $this->source = $vals['source'];
         }
         if (isset($vals['sourceURL'])) {
             $this->sourceURL = $vals['sourceURL'];
         }
         if (isset($vals['sourceApplication'])) {
             $this->sourceApplication = $vals['sourceApplication'];
         }
         if (isset($vals['shareDate'])) {
             $this->shareDate = $vals['shareDate'];
         }
         if (isset($vals['reminderOrder'])) {
             $this->reminderOrder = $vals['reminderOrder'];
         }
         if (isset($vals['reminderDoneTime'])) {
             $this->reminderDoneTime = $vals['reminderDoneTime'];
         }
         if (isset($vals['reminderTime'])) {
             $this->reminderTime = $vals['reminderTime'];
         }
         if (isset($vals['placeName'])) {
             $this->placeName = $vals['placeName'];
         }
         if (isset($vals['contentClass'])) {
             $this->contentClass = $vals['contentClass'];
         }
         if (isset($vals['applicationData'])) {
             $this->applicationData = $vals['applicationData'];
         }
         if (isset($vals['lastEditedBy'])) {
             $this->lastEditedBy = $vals['lastEditedBy'];
         }
         if (isset($vals['classifications'])) {
             $this->classifications = $vals['classifications'];
         }
         if (isset($vals['creatorId'])) {
             $this->creatorId = $vals['creatorId'];
         }
         if (isset($vals['lastEditorId'])) {
             $this->lastEditorId = $vals['lastEditorId'];
         }
     }
 }
Пример #2
0
 public function __construct($vals = null)
 {
     if (!isset(self::$_TSPEC)) {
         self::$_TSPEC = array(1 => array('var' => 'subjectDate', 'type' => \TType::I64), 10 => array('var' => 'latitude', 'type' => \TType::DOUBLE), 11 => array('var' => 'longitude', 'type' => \TType::DOUBLE), 12 => array('var' => 'altitude', 'type' => \TType::DOUBLE), 13 => array('var' => 'author', 'type' => \TType::STRING), 14 => array('var' => 'source', 'type' => \TType::STRING), 15 => array('var' => 'sourceURL', 'type' => \TType::STRING), 16 => array('var' => 'sourceApplication', 'type' => \TType::STRING), 17 => array('var' => 'shareDate', 'type' => \TType::I64), 21 => array('var' => 'placeName', 'type' => \TType::STRING), 22 => array('var' => 'contentClass', 'type' => \TType::STRING), 23 => array('var' => 'applicationData', 'type' => \TType::STRUCT, 'class' => '\\EDAM\\Types\\LazyMap'), 24 => array('var' => 'lastEditedBy', 'type' => \TType::STRING));
     }
     if (is_array($vals)) {
         if (isset($vals['subjectDate'])) {
             $this->subjectDate = $vals['subjectDate'];
         }
         if (isset($vals['latitude'])) {
             $this->latitude = $vals['latitude'];
         }
         if (isset($vals['longitude'])) {
             $this->longitude = $vals['longitude'];
         }
         if (isset($vals['altitude'])) {
             $this->altitude = $vals['altitude'];
         }
         if (isset($vals['author'])) {
             $this->author = $vals['author'];
         }
         if (isset($vals['source'])) {
             $this->source = $vals['source'];
         }
         if (isset($vals['sourceURL'])) {
             $this->sourceURL = $vals['sourceURL'];
         }
         if (isset($vals['sourceApplication'])) {
             $this->sourceApplication = $vals['sourceApplication'];
         }
         if (isset($vals['shareDate'])) {
             $this->shareDate = $vals['shareDate'];
         }
         if (isset($vals['placeName'])) {
             $this->placeName = $vals['placeName'];
         }
         if (isset($vals['contentClass'])) {
             $this->contentClass = $vals['contentClass'];
         }
         if (isset($vals['applicationData'])) {
             $this->applicationData = $vals['applicationData'];
         }
         if (isset($vals['lastEditedBy'])) {
             $this->lastEditedBy = $vals['lastEditedBy'];
         }
     }
 }