Пример #1
0
 public function __construct($vals = null)
 {
     if (!isset(self::$_TSPEC)) {
         self::$_TSPEC = array(1 => array('var' => 'systemId', 'type' => TType::I16), 2 => array('var' => 'appId', 'type' => TType::I16), 3 => array('var' => 'objectId', 'type' => TType::I64), 4 => array('var' => 'contentId', 'type' => TType::I64), 5 => array('var' => 'ownerId', 'type' => TType::I32), 6 => array('var' => 'toUserId', 'type' => TType::I32), 7 => array('var' => 'time', 'type' => TType::I32), 8 => array('var' => 'content', 'type' => TType::STRING), 9 => array('var' => 'parentId', 'type' => TType::I64));
     }
     if (is_array($vals)) {
         if (isset($vals['systemId'])) {
             $this->systemId = $vals['systemId'];
         }
         if (isset($vals['appId'])) {
             $this->appId = $vals['appId'];
         }
         if (isset($vals['objectId'])) {
             $this->objectId = $vals['objectId'];
         }
         if (isset($vals['contentId'])) {
             $this->contentId = $vals['contentId'];
         }
         if (isset($vals['ownerId'])) {
             $this->ownerId = $vals['ownerId'];
         }
         if (isset($vals['toUserId'])) {
             $this->toUserId = $vals['toUserId'];
         }
         if (isset($vals['time'])) {
             $this->time = $vals['time'];
         }
         if (isset($vals['content'])) {
             $this->content = $vals['content'];
         }
         if (isset($vals['parentId'])) {
             $this->parentId = $vals['parentId'];
         }
     }
 }