Пример #1
0
 /**
  * Create a new Query object from an array of columns.
  *
  * Example:<br>
  * <code>
  * // SELECT id, username
  * $query = DB::select_array(array('id', 'username'));
  * </code>
  *
  * @param   array   $columns  columns to select
  * @return  \Gleez\Database\Query
  */
 public static function select_array(array $columns = NULL)
 {
     $query = new Query(Database::SELECT, NULL);
     return $query->select($columns);
 }
Пример #2
0
 /**
  * Create a new Query object from an array of columns.
  *
  * Example:<br>
  * <code>
  * // SELECT id, username
  * $query = DB::select_array(array('id', 'username'));
  * </code>
  *
  * @param   array   $columns  columns to select
  * @return  \Gleez\Database\Query
  */
 public static function select_array(array $columns = NULL)
 {
     $query = new Query('select', NULL);
     return $query->select($columns);
 }