예제 #1
0
 public function init()
 {
     $uid = intval(EnvUtil::getRequest("uid"));
     $this->uid = $uid ? $uid : Ibos::app()->user->uid;
     $this->upuid = Ibos::app()->user->uid;
     parent::init();
 }
예제 #2
0
 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();
 }
예제 #3
0
 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();
 }
예제 #4
0
 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();
 }
예제 #5
0
 public function init()
 {
     $this->uid = intval(Ibos::app()->user->uid);
     parent::init();
 }
예제 #6
0
 public function init()
 {
     $this->_attributes = array_merge($this->_attributes, $this->_extraAttributes);
     $this->uid = intval(Ibos::app()->user->uid);
     parent::init();
 }