本文整理汇总了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();
}
示例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();
}
示例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();
}
示例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');
}
示例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();
}
示例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();
}
示例7: __construct
public function __construct()
{
parent::__construct();
}