public function __construct() { $this->doc = JFactory::getDocument(); $this->config = FD::config(); $this->app = JFactory::getApplication(); $this->input = FD::request(); $this->my = FD::user(); $this->access = FD::access(); }
public function __construct() { $this->app = JFactory::getApplication(); $this->my = FD::user(); $this->config = FD::config(); $this->doc = JFactory::getDocument(); if ($this->doc->getType() == 'ajax') { $this->ajax = FD::ajax(); } parent::__construct(); $this->input = FD::request(); }
public function __construct($uid, $type) { // Get the storage path $config = FD::config(); $this->config = $config; // Build the path to the storage path $container = $this->config->get('files.storage.container'); $this->storagePath = $container . '/' . $config->get('files.storage.' . strtolower($type) . '.container'); // Set the current uid and type $this->uid = $uid; $this->type = $type; // Get the current logged in user $this->my = FD::user(); $this->app = JFactory::getApplication(); $this->input = FD::request(); }
public function __construct(SocialTableApp $app, $viewName) { // Current logged in user $this->my = FD::user(); // The ORM for the app. $this->app = $app; // Set the view's name. $this->viewName = $viewName; $this->paths = array('models' => SOCIAL_APPS . '/' . $app->group . '/' . $app->element . '/models', 'tables' => SOCIAL_APPS . '/' . $app->group . '/' . $app->element . '/tables', 'views' => SOCIAL_APPS . '/' . $app->group . '/' . $app->element . '/views', 'config' => SOCIAL_APPS . '/' . $app->group . '/' . $app->element . '/config'); // Allow themes to be available to the caller. $this->theme = FD::themes(); $this->input = FD::request(); // Allow app to be available in the theme. $this->set('app', $app); }
/** * Class constructor * * @since 1.0 * @access public */ public function __construct($config = array()) { $app = JFactory::getApplication(); $this->input = FD::request(); $this->config = FD::config(); $this->init($config); }