PHP 클래스 Nette\Database\Table\ActiveRow

ActiveRow is based on the great library NotORM http://www.notorm.com written by Jakub Vrana.
저자: Jakub Vrana
상속: extends Nette\Object, implements IteratorAggregate, implements ArrayAccess
파일 보기 프로젝트 열기: nette/database 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( array $data, Selection $table )
__get ( $key ) : ActiveRow | mixed
__isset ( $key )
__set ( $key, $value )
__toString ( )
__unset ( $key )
accessColumn ( $key, $selectColumn = TRUE )
delete ( ) : integer Deletes row.
getIterator ( ) ******************* interface IteratorAggregate ****************d*g*
getPrimary ( $need = TRUE ) : mixed Returns primary key value.
getSignature ( $need = TRUE ) : string Returns row signature (composition of primary keys)
getTable ( )
offsetExists ( $key ) : boolean Tests if column exists.
offsetGet ( $key ) : string Returns value of column.
offsetSet ( $key, $value ) : void Stores value in column.
offsetUnset ( $key ) : void Removes column from data.
ref ( $key, $throughColumn = NULL ) : Nette\Database\Table\IRow Returns referenced row.
related ( $key, $throughColumn = NULL ) : GroupedSelection Returns referencing rows.
setTable ( Selection $table )
toArray ( ) : array
update ( $data ) : boolean Updates row.

보호된 메소드들

메소드 설명
removeAccessColumn ( $key )

메소드 상세

__construct() 공개 메소드

public __construct ( array $data, Selection $table )
$data array
$table Selection

__get() 공개 메소드

public __get ( $key ) : ActiveRow | mixed
리턴 ActiveRow | mixed

__isset() 공개 메소드

public __isset ( $key )

__set() 공개 메소드

public __set ( $key, $value )

__toString() 공개 메소드

public __toString ( )

__unset() 공개 메소드

public __unset ( $key )

accessColumn() 공개 메소드

public accessColumn ( $key, $selectColumn = TRUE )

delete() 공개 메소드

Deletes row.
public delete ( ) : integer
리턴 integer number of affected rows

getIterator() 공개 메소드

******************* interface IteratorAggregate ****************d*g*
public getIterator ( )

getPrimary() 공개 메소드

Returns primary key value.
public getPrimary ( $need = TRUE ) : mixed
리턴 mixed possible int, string, array, object (Nette\Utils\DateTime)

getSignature() 공개 메소드

Returns row signature (composition of primary keys)
public getSignature ( $need = TRUE ) : string
리턴 string

getTable() 공개 메소드

public getTable ( )

offsetExists() 공개 메소드

Tests if column exists.
public offsetExists ( $key ) : boolean
리턴 boolean

offsetGet() 공개 메소드

Returns value of column.
public offsetGet ( $key ) : string
리턴 string

offsetSet() 공개 메소드

Stores value in column.
public offsetSet ( $key, $value ) : void
리턴 void

offsetUnset() 공개 메소드

Removes column from data.
public offsetUnset ( $key ) : void
리턴 void

ref() 공개 메소드

Returns referenced row.
public ref ( $key, $throughColumn = NULL ) : Nette\Database\Table\IRow
리턴 Nette\Database\Table\IRow or NULL if the row does not exist

removeAccessColumn() 보호된 메소드

protected removeAccessColumn ( $key )

setTable() 공개 메소드

public setTable ( Selection $table )
$table Selection

toArray() 공개 메소드

public toArray ( ) : array
리턴 array

update() 공개 메소드

Updates row.
public update ( $data ) : boolean
리턴 boolean