本文整理汇总了PHP中FD::request方法的典型用法代码示例。如果您正苦于以下问题:PHP FD::request方法的具体用法?PHP FD::request怎么用?PHP FD::request使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FD
的用法示例。
在下文中一共展示了FD::request方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
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();
}
示例2: __construct
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();
}
示例3: __construct
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();
}
示例4: __construct
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);
}