public function init() { $uid = intval(EnvUtil::getRequest("uid")); $this->uid = $uid ? $uid : Ibos::app()->user->uid; $this->upuid = Ibos::app()->user->uid; parent::init(); }
public function init() { $this->uid = $uid = intval(Yii::app()->user->uid); $this->folders = EmailFolder::model()->fetchAllUserFolderByUid($uid); $this->allowWebMail = (bool) Yii::app()->setting->get("setting/emailexternalmail"); $this->webMails = $this->allowWebMail ? EmailWeb::model()->fetchAllByUid($uid) : array(); parent::init(); }
public function init() { $this->setUid(intval(Ibos::app()->user->uid)); $pageSize = filter_input(INPUT_GET, "pagesize", FILTER_SANITIZE_NUMBER_INT); if (!empty($pageSize)) { $this->setListPageSize($pageSize); } parent::init(); }
public function init() { $uid = intval(EnvUtil::getRequest("uid")); if (!$uid) { $uid = Ibos::app()->user->uid; } $this->_uid = $uid; $user = User::model()->fetchByUid($uid); if (!$user) { $this->error(Ibos::lang("Cannot find the user"), $this->createUrl("home/index")); } else { $this->_user = $user; } $this->_isMe = $uid == Ibos::app()->user->uid; parent::init(); }
public function init() { $this->uid = intval(Ibos::app()->user->uid); parent::init(); }
public function init() { $this->_attributes = array_merge($this->_attributes, $this->_extraAttributes); $this->uid = intval(Ibos::app()->user->uid); parent::init(); }