PHP 트레잇 TORM\Persistence

파일 보기 프로젝트 열기: taq/torm

공개 메소드들

메소드 설명
destroy ( ) : boolean Destroy the current object
save ( boolean $force = false ) : boolean Save or update currenct object
updateAttributes ( mixed $attrs ) : updated Update object attributes

비공개 메소드들

메소드 설명
_insert ( mixed $attrs, string $calling, string $pk, mixed $pk_value ) : inserted Insert a new record
_update ( mixed $attrs, string $calling, string $pk, mixed $pk_value ) : boolean Update a record

메소드 상세

destroy() 공개 메소드

Destroy the current object
public destroy ( ) : boolean
리턴 boolean destroyed or not

save() 공개 메소드

Save or update currenct object
public save ( boolean $force = false ) : boolean
$force boolean to force saving
리턴 boolean saved/updated

updateAttributes() 공개 메소드

Update object attributes
public updateAttributes ( mixed $attrs ) : updated
$attrs mixed attributes
리턴 updated or not