本文整理汇总了PHP中BaseView::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP BaseView::__construct方法的具体用法?PHP BaseView::__construct怎么用?PHP BaseView::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BaseView
的用法示例。
在下文中一共展示了BaseView::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct()
{
if (!in_array($_SESSION['dept'], self::$dept)) {
PublicView::jumpswitch();
}
parent::__construct();
}
示例2: __construct
public function __construct()
{
parent::__construct();
if (!isset($_REQUEST["PHPSESSID"])) {
$this->smarty->assign("progressInfor", A('Public')->act_getInforProgress());
}
}
示例3: __construct
public function __construct($model)
{
parent::__construct($model);
$asset = Assets::get();
$asset->addJs('/js/rainbow.js');
$asset->addJs('/js/statosistema.js');
$asset->addInternalCss('
.btn-group.pull-right {margin-top: -0.2em;}
.status { text-shadow: 1px 1px 1px black; }
.status.on { color: red; }
.status.off { color: lightseagreen; }
.status.undefined { color : red; }
');
}
示例4: array
function __construct()
{
$user = Project::getUser()->getShowedUser();
$this->assign('showed_user_profile', $user->data());
$this->_base_dir = 'site';
// $this -> _js_files=array('sys.js', 'tab.js','jquery-1.3.2.js','ui.core.js','ui.draggable.js','ui.droppable.js','dropdown.js');
// $this -> _js_files=array('jquery-1.3.2.js','ui.core.js','ui.draggable.js','ui.droppable.js');
// $this -> _js_files=array('dropdown.js');
// $this -> _js_files=array('sys.js');
// $this -> _js_files=array('jquery.js','dropdown.js');
// $this -> _js_files=array('sys.js', 'tab.js','jquery-1.3.2.min.js','ui.core.js','ui.draggable.js','ui.droppable.js','dropdown.js');
$this->_js_files = array('jquery.min.js', 'dropdown.js');
$this->_css_files = array('screen.css');
parent::__construct();
}
示例5: __construct
public function __construct()
{
parent::__construct();
if (isset($_GET["mod"]) && !empty($_GET["mod"])) {
$mod = $_GET["mod"];
}
if (isset($_GET["act"]) && !empty($_GET["act"])) {
$act = $_GET["act"];
}
$this->smarty->assign('act', $act);
//模块权限
$this->smarty->assign('mod', $mod);
//模块权限
$this->smarty->debugging = false;
}
示例6: __construct
public function __construct()
{
// 继承父类,并分配模块通用的变量:mod,act,WEB_API,WEB_URL
parent::__construct();
if (isset($_GET["mod"]) && !empty($_GET["mod"])) {
$mod = $_GET["mod"];
}
if (isset($_GET["act"]) && !empty($_GET["act"])) {
$act = $_GET["act"];
}
$this->smarty->assign('act', $act);
//模块权限
$this->smarty->assign('mod', $mod);
//模块权限
$this->smarty->caching = false;
$this->smarty->debugging = false;
$this->smarty->assign("WEB_API", WEB_API);
$this->smarty->assign("WEB_URL", WEB_URL);
}
示例7: __construct
/**
* 构造函数
* @return void
*/
public function __construct()
{
parent::__construct();
if (isset($_GET["mod"]) && !empty($_GET["mod"])) {
$mod = $_GET["mod"];
}
if (isset($_GET["act"]) && !empty($_GET["act"])) {
$act = $_GET["act"];
}
$this->smarty->assign('act', $act);
//模块权限
$this->smarty->assign('mod', $mod);
//模块权限
$this->smarty->caching = false;
$this->smarty->debugging = false;
$this->smarty->assign("WEB_API", WEB_API);
$this->smarty->assign("WEB_URL", WEB_URL);
$_username = isset($_SESSION['userName']) ? $_SESSION['userName'] : "";
$this->smarty->assign('_username', $_username);
}
示例8: __construct
public function __construct($records)
{
parent::__construct($records, PATH_VIEW_MENU, 'menu_tpl.php', false);
}
示例9: __construct
public function __construct()
{
parent::__construct();
$this->pageId = "content.privacy";
}
示例10: __construct
public function __construct()
{
parent::__construct();
}
示例11: __construct
public function __construct($records)
{
parent::__construct($records, PATH_VIEW_MESSAGE, 'message_tpl.php', false);
}
示例12: __construct
public function __construct($records)
{
parent::__construct($records, PATH_VIEW_HEADER, 'header_tpl.php', false);
}
示例13: array
function __construct()
{
parent::__construct();
add_shortcode('mecato_search', array($this, 'show_view'));
}
示例14: __construct
public function __construct($records)
{
parent::__construct($records, PATH_VIEW_FOOTER, 'footer_tpl.php', false);
}
示例15:
function __construct()
{
$this->_base_dir = 'admin';
parent::__construct();
}