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.
Afficher le fichier
Open project: MUlt1mate/cron-manager
Méthodes publiques
Méthodes publiques
Méthodes protégées
Method Details
__construct()
public méthode
public __set ( $name, $value ) |
afterDelete()
protected méthode
afterSave()
protected méthode
attributes()
public méthode
beforeDelete()
protected méthode
beforeSave()
protected méthode
findAll()
public static méthode
public static findAll ( $condition = [] ) |
findAllBySql()
public static méthode
findByPk()
public static méthode
public static findByPk ( $value ) : self | false |
$value |
|
|
Résultat |
self | false |
|
findOne()
public static méthode
public static findOne ( $condition = [] ) |
getAttribute()
public méthode
getAttributes()
public méthode
getDb()
protected static méthode
protected static getDb ( ) |
getError()
public méthode
getErrors()
public méthode
insert()
protected méthode
isNewRecord()
public méthode
query()
public static méthode
public static query ( $condition ) |
setAttribute()
public méthode
setAttributes()
public méthode
setError()
public méthode
setIsNewRecord()
protected méthode
update()
protected méthode
Property Details
$primary_key public_oe static_oe property
public static $primary_key |
$table_name public_oe static_oe property
public static $table_name |