PHP Class ActiveRecord

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

Public Methods

Method 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 method

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

delete() public method

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

hardDelete() public method

Hard deletes the record.
public hardDelete ( ) : boolean
return boolean whether the deletion is successful.