當前位置: 首頁>>代碼示例>>PHP>>正文


PHP BaseView::__construct方法代碼示例

本文整理匯總了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();
 }
開發者ID:ohjack,項目名稱:newErp,代碼行數:7,代碼來源:amazonMessagefilter.view.php

示例2: __construct

 public function __construct()
 {
     parent::__construct();
     if (!isset($_REQUEST["PHPSESSID"])) {
         $this->smarty->assign("progressInfor", A('Public')->act_getInforProgress());
     }
 }
開發者ID:bizonix,項目名稱:sailvan,代碼行數:7,代碼來源:distributorBasicInformation.view.php

示例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; }
		');
    }
開發者ID:balucio,項目名稱:smac,代碼行數:14,代碼來源:statosistema.php

示例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();
 }
開發者ID:amanai,項目名稱:next24,代碼行數:15,代碼來源:BaseSiteView.php

示例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;
 }
開發者ID:ohjack,項目名稱:newErp,代碼行數:15,代碼來源:searchCode.view.php

示例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);
 }
開發者ID:ohjack,項目名稱:newErp,代碼行數:19,代碼來源:paymentOrder.view.php

示例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);
 }
開發者ID:ohjack,項目名稱:newErp,代碼行數:24,代碼來源:partnerAnalysis.view.php

示例8: __construct

 public function __construct($records)
 {
     parent::__construct($records, PATH_VIEW_MENU, 'menu_tpl.php', false);
 }
開發者ID:khoteevnd,項目名稱:mb,代碼行數:4,代碼來源:Menu_class.php

示例9: __construct

 public function __construct()
 {
     parent::__construct();
     $this->pageId = "content.privacy";
 }
開發者ID:sohflp,項目名稱:Hooked,代碼行數:5,代碼來源:class.PrivacyPolicyView.php

示例10: __construct

 public function __construct()
 {
     parent::__construct();
 }
開發者ID:bizonix,項目名稱:sailvan,代碼行數:4,代碼來源:login.view.php

示例11: __construct

 public function __construct($records)
 {
     parent::__construct($records, PATH_VIEW_MESSAGE, 'message_tpl.php', false);
 }
開發者ID:khoteevnd,項目名稱:mb,代碼行數:4,代碼來源:Message_class.php

示例12: __construct

 public function __construct($records)
 {
     parent::__construct($records, PATH_VIEW_HEADER, 'header_tpl.php', false);
 }
開發者ID:khoteevnd,項目名稱:mb,代碼行數:4,代碼來源:Header_class.php

示例13: array

 function __construct()
 {
     parent::__construct();
     add_shortcode('mecato_search', array($this, 'show_view'));
 }
開發者ID:betocastillo86,項目名稱:mecato,代碼行數:5,代碼來源:SearchRestaurantView.php

示例14: __construct

 public function __construct($records)
 {
     parent::__construct($records, PATH_VIEW_FOOTER, 'footer_tpl.php', false);
 }
開發者ID:khoteevnd,項目名稱:mb,代碼行數:4,代碼來源:Footer_class.php

示例15:

 function __construct()
 {
     $this->_base_dir = 'admin';
     parent::__construct();
 }
開發者ID:amanai,項目名稱:next24,代碼行數:5,代碼來源:BaseAdminView.php


注:本文中的BaseView::__construct方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。