Пример #1
0
 public function preHandle()
 {
     if (!method_exists($this, $this->callback)) {
         return;
     }
     $injector = call_user_func_array(array($this, $this->callback), $this->args);
     if ($injector) {
         $this->bp->appendDo($injector);
     }
 }
Пример #2
0
 public function __construct()
 {
     parent::__construct();
     $this->config = Wekit::C('register');
     $this->isOpenInvite = 2 == $this->config['type'] ? 1 : 0;
     $this->isOpenMobileCheck = 1 == $this->config['active.phone'] ? 1 : 0;
 }
Пример #3
0
 public function __construct($fid, PwUserBo $user = null)
 {
     $this->forum = new PwForumBo($fid);
     $this->user = $user ? $user : Wekit::getLoginUser();
     $this->isBM = $this->forum->isBM($this->user->username);
     parent::__construct();
 }
Пример #4
0
 /**
  * 构造函数
  *
  * @param int $tagId
  * @param int $typeId
  * @param int $paramId
  * @param PwUserBo $user
  */
 public function __construct($tagId, $typeId, $paramId, PwUserBo $user)
 {
     parent::__construct();
     $this->typeId = intval($typeId);
     $this->tagId = intval($tagId);
     $this->paramId = intval($paramId);
     $this->user = $user;
 }
Пример #5
0
 public function __construct()
 {
     parent::__construct();
     $this->icon = array('headtopic_3' => '置顶3', 'headtopic_2' => '置顶2', 'headtopic_1' => '置顶1', 'digest' => '精华', 'lock' => '锁定', 'vote' => '投票', 'reward' => '悬赏', 'shop' => '商品', 'debate' => '辩论', 'active' => '活动', 'topichot' => '热门帖', 'topicnew' => '新帖', 'topic' => '普通帖', 'img' => '图片帖', 'file' => '附件', 'music' => '音乐', 'like' => '喜欢帖');
     $this->uploadIcon = array(1 => 'img', 2 => 'txt', 3 => 'img', 4 => 'file', 5 => 'img', 6 => 'txt', 7 => 'img');
     $this->specialIcon = array('poll' => 'vote');
     $this->_iconNew = Wekit::C('bbs', 'thread.new_thread_minutes') * 60;
     $this->_iconHot = Wekit::C('bbs', 'thread.hotthread_replies');
     $this->_maxPage = Wekit::C('bbs', 'thread.max_pages');
 }
Пример #6
0
 /**
  * 任务
  *
  * @param int $uid
  * @param int $task_id
  */
 public function __construct($uid, $task_id)
 {
     $this->uid = intval($uid);
     $this->taskId = intval($task_id);
     $this->error = $this->init();
     if (true !== $this->error) {
         return;
     }
     parent::__construct('task_gainreward', $this);
 }
Пример #7
0
	public function __construct($tid, PwUserBo $user) {
		$this->thread = new PwThreadBo($tid);
		$this->tid = $tid;
		$this->fid = $this->thread->fid;
		$this->forum = new PwForumBo($this->fid);
		$this->user = $user;
		$this->isBM = $this->forum->isBM($this->user->username);
		$config = Wekit::C('bbs');
		$this->_floorName = $config['read.floor_name'];
		$this->_definedFloorName = $this->_parseDefindFloorName($config['read.defined_floor_name']);
		parent::__construct();
	}
Пример #8
0
 public function __construct(PwUserBo $userBo)
 {
     parent::__construct();
     $this->user = $userBo;
 }
Пример #9
0
 public function __construct()
 {
     parent::__construct();
     $this->loginConfig = Wekit::C('login');
 }
Пример #10
0
 public function __construct()
 {
     parent::__construct();
 }
Пример #11
0
 /**
  * 构造函数,默认启动埋在此钩子下的扩展服务
  *
  * @param string $hookKey 钩子点,默认为类名
  * @param string $interface
  * @param object $srv
  * @return void
  */
 public function __construct($hookKey, $interface, $srv = '')
 {
     parent::__construct($hookKey);
     $this->setSrv($srv);
     $this->_interface = $interface;
 }