Example #1
0
 /**
  * Constructor
  * 
  * @param void
  */
 public function __construct()
 {
     parent::__construct();
     $this->_model = new User();
     $this->_view = new UserView($this->_model);
     if (!PModules::moduleLoaded('user')) {
         throw new PException('Require module "user"!');
     }
 }
Example #2
0
 public function __construct()
 {
     parent::__construct();
     $this->_model = new Forums();
     $this->_view = new ForumsView($this->_model);
     //                $this->_view->page=new RoxGenericPage();
     $this->BW_Right = MOD_right::get();
     $this->BW_Flag = MOD_flag::get();
     $this->request = PRequest::get()->request;
     $this->forums_uri = $this->get_forums_uri();
     $this->_model->forums_uri = $this->forums_uri;
 }
Example #3
0
 /**
  */
 public function __construct()
 {
     parent::__construct();
     $this->_model = new Searchmembers();
     $this->_view = new SearchmembersView($this->_model);
     // if a stylesheet is requested (in subdir style), pipe it through
     $request = PRequest::get()->request;
     if (isset($request[0]) && $request[0] == 'styles') {
         $req = implode('/', $request);
         if (isset($_SESSION['lastRequest'])) {
             PRequest::ignoreCurrentRequest();
         }
         $this->_view->passthroughCSS($req);
     }
 }
Example #4
0
 public function __construct()
 {
     parent::__construct();
     $this->_model = new Wiki();
     $this->_view = new WikiView($this->_model);
 }
Example #5
0
 public function __construct()
 {
     parent::__construct();
     $this->_model = new Shouts();
     $this->_view = new ShoutsView($this->_model);
 }
Example #6
0
 public function __construct()
 {
     parent::__construct();
     $this->_model = new DonateModel();
     $this->_view = new DonateView($this->_model);
 }