PHP Трейт TORM\Persistence

Показать файл Открыть проект

Открытые методы

Метод Описание
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