public function __construct($action, $urlValues) { parent::__construct($action, $urlValues); //create the model object require "protected/models/news.php"; $this->model = new NewsModel(); }
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(); }
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(); }
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'); }
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(); }
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(); }
public function __construct() { parent::__construct(); }