/** * Constructor * * @param \phpbb\db\driver\driver_interface $db Database object * @param \phpbb\user $user User object * @param string $table_name Name of the table used to store data * * @access public */ public function __construct(\phpbb\db\driver\driver_interface $db, \phpbb\user $user, $table_name) { $this->db = $db; $this->user = $user; $this->currency_table = $table_name; parent::__construct($db, $user, 'PPDE_DC', 'CURRENCY', $table_name, array('item_id' => array('name' => 'currency_id', 'type' => 'integer'), 'item_name' => array('name' => 'currency_name', 'type' => 'string'), 'item_iso_code' => array('name' => 'currency_iso_code', 'type' => 'string'), 'item_symbol' => array('name' => 'currency_symbol', 'type' => 'string'), 'item_on_left' => array('name' => 'currency_on_left', 'type' => 'boolean'), 'item_enable' => array('name' => 'currency_enable', 'type' => 'boolean'), 'item_order' => array('name' => 'currency_order', 'type' => 'integer'))); }
/** * Constructor * * @param \phpbb\db\driver\driver_interface $db Database object * @param \phpbb\user $user User object * @param string $table_name Name of the table used to store data * * @access public */ public function __construct(\phpbb\db\driver\driver_interface $db, \phpbb\user $user, $table_name) { $this->db = $db; $this->user = $user; $this->transactions_log_table = $table_name; parent::__construct($db, $user, 'PPDE_DT', 'TRANSACTION', $table_name, array('item_id' => array('name' => 'transaction_id', 'type' => 'integer'), 'item_receiver_id' => array('name' => 'receiver_id', 'type' => 'string'), 'item_receiver_email' => array('name' => 'receiver_email', 'type' => 'string'), 'item_residence_country' => array('name' => 'residence_country', 'type' => 'string'), 'item_business' => array('name' => 'business', 'type' => 'string'), 'item_confirmed' => array('name' => 'confirmed', 'type' => 'boolean'), 'item_test_ipn' => array('name' => 'test_ipn', 'type' => 'boolean'), 'item_txn_id' => array('name' => 'txn_id', 'type' => 'string'), 'item_txn_type' => array('name' => 'txn_type', 'type' => 'string'), 'item_parent_txn_id' => array('name' => 'parent_txn_id', 'type' => 'string'), 'item_payer_email' => array('name' => 'payer_email', 'type' => 'string'), 'item_payer_id' => array('name' => 'payer_id', 'type' => 'string'), 'item_payer_status' => array('name' => 'payer_status', 'type' => 'string'), 'item_first_name' => array('name' => 'first_name', 'type' => 'string'), 'item_last_name' => array('name' => 'last_name', 'type' => 'string'), 'item_user_id' => array('name' => 'user_id', 'type' => 'integer'), 'item_custom' => array('name' => 'custom', 'type' => 'string'), 'item_item_name' => array('name' => 'item_name', 'type' => 'string'), 'item_item_number' => array('name' => 'item_number', 'type' => 'string'), 'item_mc_currency' => array('name' => 'mc_currency', 'type' => 'string'), 'item_mc_fee' => array('name' => 'mc_fee', 'type' => 'float'), 'item_mc_gross' => array('name' => 'mc_gross', 'type' => 'float'), 'item_net_amount' => array('name' => 'net_amount', 'type' => 'float'), 'item_payment_date' => array('name' => 'payment_date', 'type' => 'integer'), 'item_payment_status' => array('name' => 'payment_status', 'type' => 'string'), 'item_payment_type' => array('name' => 'payment_type', 'type' => 'string'), 'item_settle_amount' => array('name' => 'settle_amount', 'type' => 'float'), 'item_settle_currency' => array('name' => 'settle_currency', 'type' => 'string'), 'item_exchange_rate' => array('name' => 'exchange_rate', 'type' => 'string'))); }
/** * Constructor * * @param \phpbb\config\config $config Config object * @param \phpbb\db\driver\driver_interface $db Database object * @param \phpbb\user $user User object * @param string $table_name Name of the table used to store data * * @access public */ public function __construct(\phpbb\config\config $config, \phpbb\db\driver\driver_interface $db, \phpbb\user $user, $table_name) { $this->config = $config; $this->db = $db; $this->user = $user; $this->donation_pages_table = $table_name; parent::__construct($db, $user, 'PPDE_DP', 'DONATION_PAGES', $table_name, array('item_id' => array('name' => 'page_id', 'type' => 'integer'), 'item_name' => array('name' => 'page_title', 'type' => 'string'), 'item_lang_id' => array('name' => 'page_lang_id', 'type' => 'integer'), 'item_content' => array('name' => 'page_content', 'type' => 'string'), 'item_content_bbcode_bitfield' => array('name' => 'page_content_bbcode_bitfield', 'type' => 'string'), 'item_content_bbcode_uid' => array('name' => 'page_content_bbcode_uid', 'type' => 'string'), 'item_content_bbcode_options' => array('name' => 'page_content_bbcode_options', 'type' => 'integer'))); }
public function __construct() { // $this->css[] = 'css';//在这里可以添加CSS文件 // $this->js[] = 'js';//在这里可以添加JS文件 //$this->tt = $this->loadModel('test');//初始化model //$this->c_title = '系统消息'; //设置页面变量 //if(!parent::is_login()){ //TODO 判断用户是否登陆 // header("Location:".PASSPORT_URL.'member/login/'); //} parent::__construct(); }
public function __construct() { // $this->css[] = 'css';//在这里可以添加CSS文件 // $this->js[] = 'js';//在这里可以添加JS文件 $this->member = $this->loadModel('member_model'); //初始化model //$this->c_title = '系统消息'; //设置页面变量 //if(!parent::is_login()){ //TODO 判断用户是否登陆 // header("Location:".PASSPORT_URL.'member/login/'); //} parent::__construct(); $this->css[] = 'dialog'; $this->js[] = 'dialogs'; define("VALID_NUMBER", "<img id='valid_src' src='" . SITE_URL . "member/validn/?f=" . rand(0, 1000) . "' onclick=\"this.src='" . SITE_URL . "member/validn/?f='+Math.random()\" style='cursor:pointer;' />"); }
public function __construct() { parent::__construct(); // $this->is_login(); }
public function __construct() { parent::__construct(); }
public function __construct() { parent::__construct(); //验证码 define("VALID_NUMBER", "<img id='valid_src' src='" . SITE_URL . "member/validn/?f=" . rand(0, 1000) . "' onclick=\"this.src='" . SITE_URL . "member/validn/?f='+Math.random()\" style='cursor:pointer;' />"); }