beforeDelete() public method
This method is invoked before deleting a record.
The default implementation raises the EVENT_BEFORE_DELETE event. When overriding this method, make sure you call the parent implementation like the following:
public function beforeDelete()
{
if (parent::beforeDelete()) {
// ...custom code here...
return true;
} else {
return false;
}
}
| public boolean beforeDelete ( ) | ||
|---|---|---|
| return | boolean |
Whether the record should be deleted. Defaults to |
Please login to continue.