/** * Initializes DBMS pointers and table name private class member. */ function __construct() { // Initialize the dbms pointer. AbstractMapper::__construct(); // Initialize table name. $this->tableName = "newsletter_subscribers"; }
/** * Converts a norma MySQL DSN array to the set of values * Dsn::parse returns. * * @param $set * @return array */ public function map($set) { if (!empty($set['unix_socket'])) { $set['protocol'] = 'unix'; } return parent::map($set); }
/** * Initializes DBMS pointers and table name private class member. */ function __construct() { // Initialize the dbms pointer. AbstractMapper::__construct(); // Initialize table name. $this->tableName = "credit_orders"; }
/** * Initializes DBMS pointers and table name private class member. */ function __construct() { // Initialize the dbms pointer. AbstractMapper::__construct(); // Initialize table name. $this->tableName = "price_texts"; }
/** * Initializes DBMS pointers and table name private class member. */ function __construct() { // Initialize the dbms pointer. AbstractMapper::__construct(); // Initialize table name. $this->tableName = "company_price_email_history"; }
/** * Initializes DBMS pointers and table name private class member. */ function __construct() { // Initialize the dbms pointer. AbstractMapper::__construct(); // Initialize table name. $this->tableName = "customer_messages_after_login"; }
/** * Initializes DBMS pointers and table name private class member. */ function __construct() { // Initialize the dbms pointer. AbstractMapper::__construct(); // Initialize table name. $this->tableName = "company_dealers"; }
/** * Initializes DBMS pointers and table name private class member. */ function __construct() { // Initialize the dbms pointer. AbstractMapper::__construct(); // Initialize table name. $this->tableName = "request_history"; }
/** * Initializes DBMS pointers and table name private class member. */ function __construct() { // Initialize the dbms pointer. AbstractMapper::__construct(); // Initialize table name. $this->tableName = "customer_cart"; }
/** * Initializes DBMS pointers and table name private class member. */ function __construct() { // Initialize the dbms pointer. parent::__construct(); // Initialize table name. $this->tableName = "carwash"; }
/** * Initializes DBMS pointers and table name private class member. */ function __construct() { // Initialize the dbms pointer. AbstractMapper::__construct(); // Initialize table name. $this->tableName = "company_extended_profile"; }
/** * Initializes DBMS pointers and table name private class member. */ function __construct() { // Initialize the dbms pointer. AbstractMapper::__construct(); // Initialize table name. $this->tableName = "company_item_check_list"; }
/** * Initializes DBMS pointers and table name private class member. */ function __construct() { // Initialize the dbms pointer. parent::__construct(); // Initialize table name. $this->tableName = "device_counter_history"; }
/** * Initializes DBMS pointers and table name private class member. */ function __construct() { // Initialize the dbms pointer. AbstractMapper::__construct(); // Initialize table name. $this->tableName = "paypal_transactions"; }
/** * Initializes DBMS pointers and table name private class member. */ function __construct() { // Initialize the dbms pointer. AbstractMapper::__construct(); // Initialize table name. $this->tableName = "categories_default_pictures"; }
/** * Initializes DBMS pointers and table name private class member. */ function __construct() { // Initialize the dbms pointer. AbstractMapper::__construct(); // Initialize table name. $this->tableName = "discount_promo_codes"; }
/** * Initializes DBMS pointers and table name private class member. */ function __construct() { // Initialize the dbms pointer. AbstractMapper::__construct(); // Initialize table name. $this->tableName = "import_items_temp"; }
/** * Initializes DBMS pointers and table name private class member. */ function __construct() { // Initialize the dbms pointer. AbstractMapper::__construct(); // Initialize table name. $this->tableName = "bundle_items"; }
/** * Initializes DBMS pointers and table name private class member. */ function __construct() { // Initialize the dbms pointer. parent::__construct(); // Initialize table name. $this->tableName = "device_pending_actions"; }
/** * Initializes DBMS pointers and table name private class member. */ function __construct() { // Initialize the dbms pointer. AbstractMapper::__construct(); // Initialize table name. $this->tableName = "service_company_branches"; }
/** * Initializes DBMS pointers and table name private class member. */ function __construct() { // Initialize the dbms pointer. AbstractMapper::__construct(); // Initialize table name. $this->tableName = "cms_settings"; }
/** * Initializes DBMS pointers and table name private class member. */ function __construct() { // Initialize the dbms pointer. AbstractMapper::__construct(); // Initialize table name. $this->tableName = "item_warranties"; }
/** * Initializes DBMS pointers and table name private class member. */ function __construct() { // Initialize the dbms pointer. AbstractMapper::__construct(); // Initialize table name. $this->tableName = "sent_emails"; }
/** * Initializes DBMS pointers and table name private class member. */ function __construct() { // Initialize the dbms pointer. AbstractMapper::__construct(); // Initialize table name. $this->tableName = "user_pending_sub_users"; }
/** * Initializes DBMS pointers and table name private class member. */ function __construct() { // Initialize the dbms pointer. AbstractMapper::__construct(); // Initialize table name. $this->tableName = "category_hierarchy"; }
function __construct() { parent::__construct(); }
/** * Constructor. * * @param \PDO $pdo * @return void */ public function __construct(\PDO $pdo) { parent::__construct($pdo, self::TABLE_NAME, self::PK_COL_NAME); }
/** * Executes the query and returns an array of corresponding DTOs * * @param object $sqlQuery * @return */ protected function fetchRows($sqlQuery) { // Execute query. $res = $this->dbms->query($sqlQuery); $resultArr = array(); if ($res && $this->dbms->getResultCount($res) > 0) { $results = $this->dbms->getResultArray($res); foreach ($results as $result) { $dto = $this->createDto(); AbstractMapper::initializeDto($dto, $result); $resultArr[] = $dto; } } return $resultArr; }