for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Arrilot\BitrixModels\Models\Traits;
trait ModelEventsTrait
{
/**
* Hook into before item create.
*
* @return mixed
*/
protected function onBeforeCreate()
//
}
* Hook into after item create.
* @param bool $result
* @return void
protected function onAfterCreate($result)
$result
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
* Hook into before item update.
protected function onBeforeUpdate()
* Hook into after item update.
protected function onAfterUpdate($result)
* Hook into before item create or update.
protected function onBeforeSave()
* Hook into after item create or update.
protected function onAfterSave($result)
* Hook into before item delete.
protected function onBeforeDelete()
* Hook into after item delete.
protected function onAfterDelete($result)
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.