Skip to content

Commit

Permalink
Merge pull request #5 from nguyenanhung/v3.x
Browse files Browse the repository at this point in the history
Release version 3.0.5
  • Loading branch information
nguyenanhung authored Feb 6, 2023
2 parents b55ef86 + 3a0714b commit 733b72e
Showing 1 changed file with 31 additions and 28 deletions.
59 changes: 31 additions & 28 deletions src/MySQLiBaseModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,39 +23,41 @@ class MySQLiBaseModel
{
use Support;

const VERSION = '3.0.4';
const LAST_MODIFIED = '2022-06-19';
const AUTHOR_NAME = 'Hung Nguyen';
const AUTHOR_EMAIL = '[email protected]';
const PROJECT_NAME = 'Database Wrapper - MySQLi Database Model';

const OPERATOR_EQUAL_TO = '=';
const OP_EQ = '=';
const OPERATOR_NOT_EQUAL_TO = '!=';
const OP_NE = '!=';
const OPERATOR_LESS_THAN = '<';
const OP_LT = '<';
const OPERATOR_LESS_THAN_OR_EQUAL_TO = '<=';
const OP_LTE = '<=';
const OPERATOR_GREATER_THAN = '>';
const OP_GT = '>';
const VERSION = '3.0.5';
const LAST_MODIFIED = '2023-02-06';
const AUTHOR_NAME = 'Hung Nguyen';
const AUTHOR_EMAIL = '[email protected]';
const PROJECT_NAME = 'Database Wrapper - MySQLi Database Model';
const OPERATOR_EQUAL_TO = '=';
const OP_EQ = '=';
const OPERATOR_NOT_EQUAL_TO = '!=';
const OP_NE = '!=';
const OPERATOR_LESS_THAN = '<';
const OP_LT = '<';
const OPERATOR_LESS_THAN_OR_EQUAL_TO = '<=';
const OP_LTE = '<=';
const OPERATOR_GREATER_THAN = '>';
const OP_GT = '>';
const OPERATOR_GREATER_THAN_OR_EQUAL_TO = '>=';
const OP_GTE = '>=';
const OPERATOR_IS_SPACESHIP = '<=>';
const OPERATOR_IS_IN = 'IN';
const OPERATOR_IS_LIKE = 'LIKE';
const OPERATOR_IS_LIKE_BINARY = 'LIKE BINARY';
const OPERATOR_IS_ILIKE = 'ilike';
const OPERATOR_IS_NOT_LIKE = 'NOT LIKE';
const OPERATOR_IS_NULL = 'IS NULL';
const OPERATOR_IS_NOT_NULL = 'IS NOT NULL';
const ORDER_ASCENDING = 'ASC';
const ORDER_DESCENDING = 'DESC';
const OP_GTE = '>=';
const OPERATOR_IS_SPACESHIP = '<=>';
const OPERATOR_IS_IN = 'IN';
const OPERATOR_IS_LIKE = 'LIKE';
const OPERATOR_IS_LIKE_BINARY = 'LIKE BINARY';
const OPERATOR_IS_ILIKE = 'ilike';
const OPERATOR_IS_NOT_LIKE = 'NOT LIKE';
const OPERATOR_IS_NULL = 'IS NULL';
const OPERATOR_IS_NOT_NULL = 'IS NOT NULL';
const ORDER_ASCENDING = 'ASC';
const ORDER_DESCENDING = 'DESC';


/** @var object Đối tượng khởi tạo dùng gọi đến Class Debug \nguyenanhung\MyDebug\Logger */
protected $logger;

/** @var object Đối tượng khởi tạo dùng gọi đến Class Debug \nguyenanhung\MyDebug\Logger */
protected $debug;

/** @var array|null Mảng dữ liệu chứa thông tin database cần kết nối tới */
protected $database;

Expand Down Expand Up @@ -107,6 +109,7 @@ public function __construct()
$this->logger->setLoggerSubPath(__CLASS__);
$this->logger->setLoggerFilename($this->debugLoggerFilename);
}
$this->debug = $this->logger;
}
if (isset($this->database) && is_array($this->database) && !empty($this->database)) {
$this->db = new MysqliDb();
Expand Down Expand Up @@ -202,7 +205,7 @@ public function getPrimaryKey(): string
public function setDatabase(array $database = array(), string $name = 'default'): MySQLiBaseModel
{
$this->database = $database;
$this->dbName = $name;
$this->dbName = $name;

return $this;
}
Expand Down

0 comments on commit 733b72e

Please sign in to comment.