__construct() public method

Instantiate the database record object.
public __construct ( array $columns = null, Db $db = null ) : Record
$columns array
$db Db
return Record
示例#1
0
 public function __construct(array $columns = null, $table = null, Adapter\AbstractAdapter $db = null)
 {
     if (null === $db) {
         $db = new Adapter\Sqlite(['database' => __DIR__ . '/../../data/stats.sqlite']);
     }
     parent::__construct($columns, $table, $db);
 }