/** * @Constructor * @access public * @param bool $routing * @return \Extend_Transactions_Admin_Page */ public function __construct($routing = TRUE) { parent::__construct($routing); define('TXN_CAF_TEMPLATE_PATH', EE_CORE_CAF_ADMIN_EXTEND . 'transactions/templates/'); define('TXN_CAF_ASSETS', EE_CORE_CAF_ADMIN_EXTEND . 'transactions/assets/'); define('TXN_CAF_ASSETS_URL', EE_CORE_CAF_ADMIN_EXTEND_URL . 'transactions/assets/'); }
public function __construct($routing = TRUE) { //define any constants that might not be defined yet when using this mock. if (!defined('TXN_PG_SLUG')) { define('TXN_PG_SLUG', 'espresso_transactions'); define('TXN_PG_NAME', ucwords(str_replace('_', '', TXN_PG_SLUG))); define('TXN_ADMIN', EE_ADMIN_PAGES . 'transactions' . DS); define('TXN_ADMIN_URL', admin_url('admin.php?page=' . TXN_PG_SLUG)); define('TXN_ASSETS_PATH', TXN_ADMIN . 'assets' . DS); define('TXN_TEMPLATE_PATH', TXN_ADMIN . 'templates' . DS); define('TXN_ASSETS_URL', str_replace('\\', '/', EE_PLUGIN_DIR_URL . 'admin_pages/transactions/assets' . DS)); define('TXN_TEMPLATE_URL', str_replace('\\', '/', EE_PLUGIN_DIR_URL . 'admin_pages/transactions/templates' . DS)); } parent::__construct(false); }
/** * get list of payment statuses * * @access private * @return void */ private function _get_payment_status_array() { self::$_pay_status = EEM_Payment::instance()->status_array(TRUE); $this->_template_args['payment_status'] = self::$_pay_status; }