Exemplo n.º 1
0
 public function __construct()
 {
     parent::__construct();
     $this->connect = Database::getConnect('master');
 }
Exemplo n.º 2
0
 public function select()
 {
     $connect = Database::getConnect('master');
     $articles = $connect->select('news n', ['n.title AS name', 'n.content AS content'], ['n.id' => 2, 'n.time >= 2015-07-05']);
     var_dump($articles);
 }