column() 정적인 공개 메소드

Returns all values from single column of a table
static public column ( string $table, string $column, mixed $where = null, string $order = null, integer $page = null, integer $limit = null ) : mixed
$table string The table name
$column string The name of the column
$where mixed Either a key/value array as AND connected where clause or a simple MySQL where clause string
$order string Order clause without the order keyword. ie: "added desc"
$page integer a page number
$limit integer a number for rows to return
리턴 mixed
예제 #1
0
파일: DbTest.php 프로젝트: nsteiner/kdoc
 public function testColumn()
 {
     $result = db::column('users', 'username');
     $this->assertEquals(array('john', 'paul', 'george'), $result->toArray());
 }