PHP Class YetORM\Record

Datei anzeigen Open project: uestla/yetorm Class Usage Examples

Public Methods

Method Description
__construct ( ActiveRow $row = NULL )
__get ( string $name ) : mixed
__isset ( string $name ) : boolean
__set ( string $name, mixed $value ) : void
create ( ActiveRow | Record $row = NULL ) : Record
getModified ( ) : array
getRow ( ) : ActiveRow | null
hasRow ( ) : boolean
ref ( string $key, string $throughColumn = NULL ) : Record | null
related ( string $key, string $throughColumn = NULL ) : GroupedSelection
setRow ( ActiveRow $row ) : Record
update ( ) : boolean

Private Methods

Method Description
checkRow ( ) : void
isPersisted ( ) : boolean
reload ( ActiveRow $row ) : void

Method Details

__construct() public method

public __construct ( ActiveRow $row = NULL )
$row Nette\Database\Table\ActiveRow

__get() public method

public __get ( string $name ) : mixed
$name string
return mixed

__isset() public method

public __isset ( string $name ) : boolean
$name string
return boolean

__set() public method

public __set ( string $name, mixed $value ) : void
$name string
$value mixed
return void

create() public static method

public static create ( ActiveRow | Record $row = NULL ) : Record
$row Nette\Database\Table\ActiveRow | Record
return Record

getModified() public method

public getModified ( ) : array
return array

getRow() public method

public getRow ( ) : ActiveRow | null
return Nette\Database\Table\ActiveRow | null

hasRow() public method

public hasRow ( ) : boolean
return boolean

ref() public method

public ref ( string $key, string $throughColumn = NULL ) : Record | null
$key string
$throughColumn string
return Record | null

setRow() public method

public setRow ( ActiveRow $row ) : Record
$row Nette\Database\Table\ActiveRow
return Record

update() public method

public update ( ) : boolean
return boolean