| 1 | <?php |
||
| 7 | class PdoPrices implements PricesInterface |
||
| 8 | { |
||
| 9 | public $table = 'germania_prices'; |
||
| 10 | |||
| 11 | public $pdo; |
||
| 12 | public $pdo_stmt; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @param \PDO $pdo PDO Handler |
||
| 16 | * @param string $table Prices table name, default: "germania_prices" |
||
| 17 | * |
||
| 18 | * @uses $table |
||
| 19 | */ |
||
| 20 | public function __construct( \PDO $pdo, $table = null) |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @param mixed $article_id |
||
| 39 | * @return array |
||
| 40 | */ |
||
| 41 | public function __invoke( $article_id ) |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @param mixed $article_id |
||
| 54 | * @return boolean |
||
| 55 | */ |
||
| 56 | public function has( $article_id ) |
||
| 64 | |||
| 65 | |||
| 66 | /** |
||
| 67 | * @param mixed $article_id |
||
| 68 | * @return array |
||
| 69 | */ |
||
| 70 | public function get( $article_id ) |
||
| 81 | } |
||
| 82 |