Пример #1
0
 public function __construct($name, array $columns = array())
 {
     $this->name = $name;
     $entity = new DB_SQL_Entity();
     $entity->set_dbtable($this);
     $this->view = DB_SQL::View()->for_table($this)->maps_to($entity);
     $this->columns($columns);
 }