Пример #1
0
 /**
  * Overridding IcmsPersistable::toArray() method to add a few info
  *
  * @return array of audio info
  */
 public function toArray()
 {
     $ret = parent::toArray();
     $ret['audio_content'] = $this->getAudioToDisplay();
     $ret['editItemLink'] = $this->getEditItemLink(false, true, true);
     $ret['deleteItemLink'] = $this->getDeleteItemLink(false, true, true);
     $ret['userCanEditAndDelete'] = $this->userCanEditAndDelete();
     $ret['audio_sender_link'] = $this->getAudioSender();
     return $ret;
 }
Пример #2
0
 /**
  * Overridding IcmsPersistable::toArray() method to add a few info
  *
  * @return array of friendship info
  */
 public function toArray()
 {
     $ret = parent::toArray();
     $ret['creation_time'] = formatTimestamp($this->getVar('creation_time', 'e'), 'm');
     $ret['friendship_avatar'] = $this->getAvatar();
     $ret['friendship_linkedUname'] = $this->getFriendLinkedUname();
     $ret['friendship_uname'] = $this->getFriendUname();
     $ret['friend_uid'] = $this->getFriendUid();
     $ret['editItemLink'] = $this->getEditItemLink(false, true, true);
     $ret['deleteItemLink'] = $this->getDeleteItemLink(false, true, true);
     $ret['userCanEditAndDelete'] = $this->userCanEditAndDelete();
     return $ret;
 }
Пример #3
0
 /**
  * Overridding IcmsPersistable::toArray() method to add a few info
  *
  * @return array of tribeuser info
  */
 public function toArray()
 {
     $ret = parent::toArray();
     $profile_tribes_handler = icms_getmodulehandler('tribes', basename(dirname(dirname(__FILE__))), 'profile');
     $tribe = $profile_tribes_handler->get($this->getVar('tribe_id'))->toArray();
     $ret['tribe_itemLink'] = $tribe['itemLink'];
     unset($profile_tribes_handler, $tribe);
     $ret['tribeuser_avatar'] = $this->getTribeuserAvatar();
     $ret['editItemLink'] = $this->getEditItemLink(false, true, true);
     $ret['deleteItemLink'] = $this->getDeleteItemLink(false, true, true);
     $ret['userCanEditAndDelete'] = $this->userCanEditAndDelete();
     $ret['tribeuser_sender_link'] = $this->getTribeuserSender();
     return $ret;
 }
Пример #4
0
 /**
  * Overridding IcmsPersistable::toArray() method to add a few info
  *
  * @return array of video info
  */
 public function toArray()
 {
     $ret = parent::toArray();
     $ret['creation_time'] = formatTimestamp($this->getVar('creation_time', 'e'), 'm');
     $ret['video_content'] = $this->getVideoToDisplay();
     $ret['video_content_main'] = $this->getVideoToDisplay(true);
     $ret['editItemLink'] = $this->getEditItemLink(false, true, true);
     $ret['deleteItemLink'] = $this->getDeleteItemLink(false, true, true);
     $ret['userCanEditAndDelete'] = $this->userCanEditAndDelete();
     return $ret;
 }
Пример #5
0
 /**
  * Overridding IcmsPersistable::toArray() method to add a few info
  *
  * @return array of picture info
  */
 public function toArray()
 {
     $ret = parent::toArray();
     $ret['creation_time'] = formatTimestamp($this->getVar('creation_time', 'e'), 'm');
     $ret['picture_content'] = $this->getProfilePicture();
     $ret['editItemLink'] = $this->getEditItemLink(false, true, true);
     $ret['deleteItemLink'] = $this->getDeleteItemLink(false, true, true);
     $ret['userCanEditAndDelete'] = $this->userCanEditAndDelete();
     return $ret;
 }