Exemplo n.º 1
0
 /**
  * TuiyoControllerFriends::__construct()
  * 
  * @return void
  */
 function __construct()
 {
     //Tuiyo controller
     TuiyoControllerCore::init();
     //Joomla controller
     parent::__construct();
 }
Exemplo n.º 2
0
 /**
  * TuiyoControllerProfile::__construct()
  * Constructs the task;
  * @return void
  */
 public function __construct()
 {
     /** Do we need user to be logged in? **/
     TuiyoControllerCore::init("Profile", false);
     TuiyoEventLoader::preparePlugins("profile");
     //Parent constructor or break
     parent::__construct();
 }
Exemplo n.º 3
0
 /**
  * TuiyoControllerWelcome::__construct()
  * Constructor method
  * 
  * @return void
  */
 public function __construct()
 {
     //construct JController
     parent::__construct();
     //construct Tuiyo Controller;
     TuiyoControllerCore::init('welcome', false);
     //get the view
     $this->view = $this->getView('welcome', 'html');
 }
Exemplo n.º 4
0
 /**
  * TuiyoControllerTimeline::__construct()
  * @return void
  */
 public function __construct()
 {
     //		if (!JRequest::getCmd( 'view') ) {
     //         	JRequest::setVar('view', 'profile');
     //      	}
     TuiyoControllerCore::init("Timeline", false);
     TuiyoEventLoader::preparePlugins("timeline");
     parent::__construct();
 }
Exemplo n.º 5
0
 /**
  * TuiyoControllerWidgets::__construct()
  * @return void
  */
 function __construct()
 {
     //Tuiyo controller
     TuiyoControllerCore::init("Widgets", true);
     //Component only
     JRequest::setVar('tmpl', 'component');
     //Joomla controller
     parent::__construct();
 }
Exemplo n.º 6
0
 /**
  * TuiyoControllerApps::__construct()
  * @return void
  */
 function __construct()
 {
     TuiyoControllerCore::init();
     parent::__construct();
     //load the application
     $redirect = JRequest::getVar("redirect", null);
     $app = JRequest::getVar("app", $redirect);
     $appTask = JRequest::getVar("ref", null);
     $do = JRequest::getVar("do", null);
     if (!empty($app) && strval(strtolower($do)) !== "add") {
         $this->startApplication($app);
     }
 }
Exemplo n.º 7
0
 /**
  * TuiyoControllerGroups::__construct()
  * @return void
  */
 function __construct()
 {
     TuiyoControllerCore::init("Articles", FALSE);
     parent::__construct();
 }
Exemplo n.º 8
0
 /**
  * TuiyoControllerPhotos::__construct()
  * @return void
  */
 public function __construct()
 {
     TuiyoControllerCore::init("Photos", false);
     parent::__construct();
 }
Exemplo n.º 9
0
 public function __construct()
 {
     TuiyoControllerCore::init("Notifications", false);
     TuiyoEventLoader::preparePlugins("notifications");
     parent::__construct();
 }