本文整理汇总了PHP中control类的典型用法代码示例。如果您正苦于以下问题:PHP control类的具体用法?PHP control怎么用?PHP control使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了control类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
* The construc method, to do some auto things.
*
* @access public
* @return void
*/
public function __construct()
{
parent::__construct();
$this->common->startSession();
$this->common->sendHeader();
$this->common->setCompany();
$this->common->setUser();
$this->common->loadConfigFromDB();
if (isset($this->config->custom->productproject)) {
$productCommon = $projectCommon = 0;
list($productCommon, $projectCommon) = explode('_', $this->config->custom->productproject);
if ($productCommon != 0 or $projectCommon != 0) {
$this->lang->productCommon = $this->lang->productCommonList[$productCommon];
$this->lang->projectCommon = $this->lang->projectCommonList[$projectCommon];
$this->app->loadLang('common');
} else {
$this->lang->productCommon = "产品";
$this->lang->projectCommon = "Sprint";
}
}
$this->common->loadCustomFromDB();
if ($this->app->getViewType() == 'mhtml') {
$this->common->setMobileMenu();
}
$this->app->loadLang('company');
}
示例2: __CONSTRUCT
public function __CONSTRUCT()
{
parent::__CONSTRUCT();
$this->loadModel('customer', 'crm');
$this->loadModel('contact', 'crm');
$this->loadModel('resume', 'crm');
}
示例3: __construct
/**
* Construct
*
* @access public
* @return void
*/
public function __construct()
{
parent::__construct();
$this->loadModel('company')->setMenu();
$this->loadModel('dept');
$this->loadModel('todo');
}
示例4: __construct
public function __construct()
{
parent::__construct();
if ($this->app->user->account != 'guest') {
$this->cart->mergeToDb();
}
}
示例5: __construct
/**
* Construct function, load model of project and story modules.
*
* @access public
* @return void
*/
public function __construct()
{
parent::__construct();
$this->loadModel('project');
$this->loadModel('story');
$this->loadModel('tree');
}
示例6: __construct
/**
* construct.
*
* @access public
* @return void
*/
public function __construct()
{
parent::__construct();
if (!$this->loadModel('sso')->checkKey()) {
die('');
}
}
示例7: init
function init()
{
parent::init();
if (!empty($this->params['oninit'])) {
$this->do_call();
}
}
示例8: __construct
/**
* The construction function , check is install or not.
*
* @access public
* @return array
*/
public function __construct()
{
if (!defined('RUN_MODE') or RUN_MODE != 'install') {
die('error');
}
parent::__construct();
}
示例9: __construct
/**
* Construct function, load model of task, bug, my.
*
* @access public
* @return void
*/
public function __construct()
{
parent::__construct();
$this->loadModel('task');
$this->loadModel('bug');
$this->loadModel('my')->setMenu();
}
示例10: __construct
/**
* The construction function , check is install or not.
*
* @access public
* @return array
*/
public function __construct()
{
if (!defined('RUN_MODE') or RUN_MODE != 'install') {
die('error');
}
parent::__construct();
$this->loadModel('site')->setSite();
}
示例11: create
/**
* 发起团
* http://localhost/beauty/index.php?m=ruan&c=index&a=create
*/
public function create()
{
$data = tool::getParams("data", '');
$data['created'] = strtotime(date('Y-m-d H:i:s'));
$data['orderNum'] = 0;
$result = parent::save($data);
echo json_encode(array('code' => '0', 'message' => '成功', 'data' => $result));
}
示例12: __construct
public function __construct()
{
parent::__construct();
$this->loadModel('tree');
$this->loadModel('user');
$this->loadModel('action');
$this->infolibs = $this->info->getLibs();
}
示例13: __construct
public function __construct()
{
parent::__construct();
if (RUN_MODE == 'admin') {
$this->view->treeModuleMenu = $this->loadModel('tree')->getTreeMenu('product', 0, array('treeModel', 'createAdminLink'));
$this->view->treeManageLink = html::a(helper::createLink('tree', 'browse', "type=product"), $this->lang->tree->manage);
}
}
示例14: __construct
/**
* The construct function, load product, tree, user auto.
*
* @access public
* @return void
*/
public function __construct()
{
parent::__construct();
$this->loadModel('product');
$this->loadModel('project');
$this->loadModel('tree');
$this->loadModel('user');
$this->loadModel('action');
}
示例15: __construct
/**
* Construct.
*
* @access public
* @return void
*/
public function __construct($moduleName = '', $methodName = '')
{
parent::__construct($moduleName, $methodName);
/* Task #1967. check the function of fsocket. */
if (isset($this->config->mail->mta) and $this->config->mail->mta != 'sendcloud' and !function_exists('fsockopen')) {
echo js::alert($this->lang->mail->nofsocket);
die(js::locate('back'));
}
}