当前位置: 首页>>代码示例>>PHP>>正文


PHP MainController::__construct方法代码示例

本文整理汇总了PHP中MainController::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP MainController::__construct方法的具体用法?PHP MainController::__construct怎么用?PHP MainController::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在MainController的用法示例。


在下文中一共展示了MainController::__construct方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 public function __construct($action, $urlValues)
 {
     parent::__construct($action, $urlValues);
     //create the model object
     require "protected/models/news.php";
     $this->model = new NewsModel();
 }
开发者ID:ashancperera,项目名称:MVC-Sample,代码行数:7,代码来源:news.php

示例2: UsersModel

 function __construct()
 {
     parent::__construct();
     $this->users_model = new UsersModel();
     $this->fields = $this->users_model->fields;
     $this->submit();
     $this->delete();
     $this->view();
     $this->edit();
     $this->add();
 }
开发者ID:antistereotip,项目名称:g-shop,代码行数:11,代码来源:users.controller.php

示例3: __construct

 public function __construct()
 {
     parent::__construct();
     Doo::loadClass('UserSession');
     $this->usession = new UserSession();
     $username = $this->usession->uget('username');
     if (!$username) {
         header('Location:' . DOO::conf()->SUBFOLDER . 'login');
     }
     $this->init();
 }
开发者ID:berlianaputri,项目名称:rps,代码行数:11,代码来源:UserController.php

示例4: __construct

 public function __construct($registry)
 {
     parent::__construct($registry);
     $this->file = $this->sanitizePath(DIR_SYSTEM . '../vendor/openpay/Openpay.php');
     $minTotal = $this->currency->convert(1, 'USD', $this->currency->getCode());
     if (!defined('MODULE_CODE')) {
         define('MODULE_CODE', 'OPENPAY');
     }
     if (!defined('MODULE_NAME')) {
         define('MODULE_NAME', 'openpay_banks');
     }
     if (!defined('MIN_TOTAL')) {
         define('MIN_TOTAL', $minTotal);
     }
     if (!defined('TRANSACTION_CREATE_CUSTOMER')) {
         define('TRANSACTION_CREATE_CUSTOMER', 'Customer creation');
     }
     if (!defined('TRANSACTION_CREATE_CHARGE')) {
         define('TRANSACTION_CREATE_CHARGE', 'Charge creation');
     }
     if (!defined('TRANSACTION_CAPTURE_CHARGE')) {
         define('TRANSACTION_CAPTURE_CHARGE', 'Charge capture');
     }
     if (!defined('TRANSACTION_REFUND_CHARGE')) {
         define('TRANSACTION_REFUND_CHARGE', 'Charge refund');
     }
     if (!defined('TRANSACTION_CREATE_PLAN')) {
         define('TRANSACTION_CREATE_PLAN', 'Plan creation');
     }
     if (!defined('TRANSACTION_CREATE_SUBSCRIPTION')) {
         define('TRANSACTION_CREATE_SUBSCRIPTION', 'Subscription creation');
     }
     if (!defined('TRANSACTION_CANCEL_SUBSCRIPTION')) {
         define('TRANSACTION_CANCEL_SUBSCRIPTION', 'Subscription cancel');
     }
     if (!defined('TRANSACTION_CREATE_INVOICE')) {
         define('TRANSACTION_CREATE_INVOICE', 'Create invoice');
     }
     if (!defined('TRANSACTION_PAID_INVOICE')) {
         define('TRANSACTION_PAID_INVOICE', 'Invoice paid');
     }
     if (!defined('TRANSACTION_CREATE_ORDER')) {
         define('TRANSACTION_CREATE_ORDER', 'Order #%d was created');
     }
     if (!defined('PRO_MODE')) {
         define('PRO_MODE', false);
     }
     $this->decimalZero = array('BIF', 'CLP', 'DJF', 'GNF', 'JPY', 'KMF', 'KRW', 'MGA', 'PYG', 'RWF', 'VND', 'VUV', 'XAF', 'XOF', 'XPF');
     $this->available_ps = array('pp_express', 'openpay_banks');
 }
开发者ID:rubenmachuca,项目名称:openpay-opencart,代码行数:50,代码来源:openpaybankscontroller.php

示例5: array

 function __construct()
 {
     parent::__construct();
     global $settings;
     $this->settings = $settings;
     //todo - create better array structure with nested directories in parents as keys
     $this->dirs = array($this->settings['sfstore'], $this->settings['sfstore'] . '/db_backup', $this->settings['sfstore'] . '/db_backup/csv', $this->settings['sfstore'] . '/db_backup/database', $this->settings['sfstore'] . '/db_backup/tables', $this->settings['sfstore'] . '/file_backup', $this->settings['sfstore'] . '/file_backup/full', $this->settings['sfstore'] . '/file_backup/partial');
     $this->check_directory($this->dirs);
     $this->dashboard_model = new DashboardModel();
     $this->data['result'] = array();
     $this->data['script_url'] = $this->get_script_url();
     $this->current_page = filter_input(INPUT_GET, 'view');
     $this->data['current_page'] = $this->current_page;
     $this->view_url = $this->dashboard_model->settings['view_url'];
     $this->submit();
     $this->view();
 }
开发者ID:antistereotip,项目名称:wpsafemode,代码行数:17,代码来源:dashboard.controller.php

示例6: __construct

 public function __construct()
 {
     parent::__construct();
     Doo::loadClass('UserSession');
     Doo::loadHelper('DooTextHelper');
     $this->usession = new UserSession();
     $this->username = $this->usession->uget('username');
     $this->ppv_cat_code = 'C_TokoVideo_PPV';
     $this->svod_cat_code = 'C_TokoVideo_International';
     $this->ppv_start_date = '2012-10-24 23:00:00';
     $this->svod_start_date = '2012-08-31 23:00:00';
     /* Doo::loadClass('User');
     		$this->dbapi = new User();
     		$this->conf_data = array();
     		$this->conf_data['css'] = array('index.css','ui-lightness/jquery-ui-1.8.21.custom.css');
     		$this->conf_data['js'] = array('common.js','jquery.min.js','jquery-ui-1.8.21.custom.min.js');
     		$this->conf_data['title'] = 'UseeTV User Management';
     		$this->conf_data['content_view'] = 'content/list_user.php';
     		$this->conf_data['content_data'] = array(); */
     $this->init();
 }
开发者ID:berlianaputri,项目名称:rps,代码行数:21,代码来源:PacketController.php

示例7: __construct

 public function __construct()
 {
     parent::__construct();
 }
开发者ID:EgorMazikMazilov,项目名称:laravel_first_site,代码行数:4,代码来源:IndexController.php


注:本文中的MainController::__construct方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。