PHP Class ActiveRecord

All Model classes for this application should extend from this base class.
Author: Fred ([email protected])
Inheritance: extends CActiveRecord
Afficher le fichier Open project: crisu83/yii-app Class Usage Examples

Méthodes publiques

Méthode Description
defaultScope ( ) : array Returns the default named scope that should be implicitly applied to all queries for this model.
delete ( ) : boolean Deletes the row corresponding to this active record.
hardDelete ( ) : boolean Hard deletes the record.

Method Details

defaultScope() public méthode

Returns the default named scope that should be implicitly applied to all queries for this model.
public defaultScope ( ) : array
Résultat array the query criteria.

delete() public méthode

Deletes the row corresponding to this active record.
public delete ( ) : boolean
Résultat boolean whether the deletion is successful.

hardDelete() public méthode

Hard deletes the record.
public hardDelete ( ) : boolean
Résultat boolean whether the deletion is successful.