| @@ 45-66 (lines=22) @@ | ||
| 42 | * |
|
| 43 | * @access public |
|
| 44 | */ |
|
| 45 | public function __construct(\phpbb\db\driver\driver_interface $db, \phpbb\user $user, $table_name) |
|
| 46 | { |
|
| 47 | $this->db = $db; |
|
| 48 | $this->user = $user; |
|
| 49 | $this->currency_table = $table_name; |
|
| 50 | parent::__construct( |
|
| 51 | $db, |
|
| 52 | $user, |
|
| 53 | 'PPDE_DC', |
|
| 54 | 'CURRENCY', |
|
| 55 | $table_name, |
|
| 56 | array( |
|
| 57 | 'item_id' => array('name' => 'currency_id', 'type' => 'integer'), |
|
| 58 | 'item_name' => array('name' => 'currency_name', 'type' => 'string'), |
|
| 59 | 'item_iso_code' => array('name' => 'currency_iso_code', 'type' => 'string'), |
|
| 60 | 'item_symbol' => array('name' => 'currency_symbol', 'type' => 'string'), |
|
| 61 | 'item_on_left' => array('name' => 'currency_on_left', 'type' => 'boolean'), |
|
| 62 | 'item_enable' => array('name' => 'currency_enable', 'type' => 'boolean'), |
|
| 63 | 'item_order' => array('name' => 'currency_order', 'type' => 'integer'), |
|
| 64 | ) |
|
| 65 | ); |
|
| 66 | } |
|
| 67 | ||
| 68 | /** |
|
| 69 | * SQL Query to return the ID of selected currency |
|
| @@ 50-72 (lines=23) @@ | ||
| 47 | * |
|
| 48 | * @access public |
|
| 49 | */ |
|
| 50 | public function __construct(\phpbb\config\config $config, \phpbb\db\driver\driver_interface $db, \phpbb\user $user, $table_name) |
|
| 51 | { |
|
| 52 | $this->config = $config; |
|
| 53 | $this->db = $db; |
|
| 54 | $this->user = $user; |
|
| 55 | $this->donation_pages_table = $table_name; |
|
| 56 | parent::__construct( |
|
| 57 | $db, |
|
| 58 | $user, |
|
| 59 | 'PPDE_DP', |
|
| 60 | 'DONATION_PAGES', |
|
| 61 | $table_name, |
|
| 62 | array( |
|
| 63 | 'item_id' => array('name' => 'page_id', 'type' => 'integer'), |
|
| 64 | 'item_name' => array('name' => 'page_title', 'type' => 'string'), |
|
| 65 | 'item_lang_id' => array('name' => 'page_lang_id', 'type' => 'integer'), |
|
| 66 | 'item_content' => array('name' => 'page_content', 'type' => 'string'), |
|
| 67 | 'item_content_bbcode_bitfield' => array('name' => 'page_content_bbcode_bitfield', 'type' => 'string'), |
|
| 68 | 'item_content_bbcode_uid' => array('name' => 'page_content_bbcode_uid', 'type' => 'string'), |
|
| 69 | 'item_content_bbcode_options' => array('name' => 'page_content_bbcode_options', 'type' => 'integer'), |
|
| 70 | ) |
|
| 71 | ); |
|
| 72 | } |
|
| 73 | ||
| 74 | /** |
|
| 75 | * Get template vars |
|