Example #1
0
 public function toArray()
 {
     $result = ConvertUtil::objectToArray($this, $dst, ['id' => 'uid', 'username' => 'account', 'nick', 'motto', 'token']);
     $result['avatar'] = $this->avatar ? PIC_HOST . $this->avatar : null;
     $result['present'] = JegarnUtil::getUserPresent($this->id);
     return $result;
 }
Example #2
0
 public function toArray()
 {
     return ConvertUtil::objectToArray($this, $dst, ['id', 'gid', 'uid', 'status', 'permission', 'create_time', 'remark']);
 }
Example #3
0
 public function toArray()
 {
     return ConvertUtil::objectToArray($this, $dst, ['id', 'from', 'to', 'create_time', 'message']);
 }
Example #4
0
 public function toArray()
 {
     $result = ConvertUtil::objectToArray($this, $dst, ['id' => 'group_id', 'uid', 'type', 'name', 'create_time', 'description', 'member_count']);
     $result['icon'] = $this->icon ? PIC_HOST . $this->icon : '';
     return $result;
 }
Example #5
0
 function toArray()
 {
     return ConvertUtil::objectToArray($this, $dst, ['id' => 'roster_id', 'uid', 'target_id', 'status', 'create_time', 'update_time', 'remark', 'group_id', 'rank']);
 }
Example #6
0
 function toArray()
 {
     $dst = ConvertUtil::objectToArray($this, $dst, ['id' => 'group_id', 'uid', 'rank']);
     $dst['name'] = $this->isDefaultGroup() ? self::DEFAULT_NAME : $this->name;
     return $dst;
 }