PHP Class DbBaseModel
It's not a part of main library, just an example.
And it's pretty poor. Please consider use your own implementation.
Datei anzeigen
Open project: MUlt1mate/cron-manager
Public Properties
Public Methods
Protected Methods
Method Details
__construct()
public method
public __set ( $name, $value ) |
afterDelete()
protected method
afterSave()
protected method
attributes()
public method
beforeDelete()
protected method
beforeSave()
protected method
findAll()
public static method
public static findAll ( $condition = [] ) |
findAllBySql()
public static method
findByPk()
public static method
public static findByPk ( $value ) : self | false |
$value |
|
|
return |
self | false |
|
findOne()
public static method
public static findOne ( $condition = [] ) |
getAttribute()
public method
getAttributes()
public method
getDb()
protected static method
protected static getDb ( ) |
getErrors()
public method
insert()
protected method
isNewRecord()
public method
query()
public static method
public static query ( $condition ) |
setAttribute()
public method
setAttributes()
public method
setIsNewRecord()
protected method
update()
protected method
Property Details
$primary_key public_oe static_oe property
public static $primary_key |
$table_name public_oe static_oe property
public static $table_name |