Метод | Описание | |
---|---|---|
afterCreate ( mixed $func ) : null | After create | |
afterDestroy ( mixed $func ) : null | Before save callback | |
afterSave ( mixed $func ) : null | Before save callback | |
afterUpdate ( mixed $func ) : null | After update | |
beforeCreate ( mixed $func ) : null | Before create | |
beforeDestroy ( mixed $func ) : null | Before save callback | |
beforeSave ( mixed $func ) : null | Before save callback | |
beforeUpdate ( mixed $func ) : null | Before update |
Метод | Описание | |
---|---|---|
_addCallback ( string $cls, mixed $callback, mixed $func ) : null | Add callback | |
_checkCallback ( string $cls, string $callback, mixed $context ) : exist | Check if a callback exists | |
_initiateCallbacks ( string $cls ) : null | Initiate callbacks |
public static afterCreate ( mixed $func ) : null | ||
$func | mixed | callback |
Результат | null |
public static afterDestroy ( mixed $func ) : null | ||
$func | mixed | callback |
Результат | null |
public static afterUpdate ( mixed $func ) : null | ||
$func | mixed | callback |
Результат | null |
public static beforeCreate ( mixed $func ) : null | ||
$func | mixed | callback |
Результат | null |
public static beforeDestroy ( mixed $func ) : null | ||
$func | mixed | callback |
Результат | null |
public static beforeSave ( mixed $func ) : null | ||
$func | mixed | callback |
Результат | null |
public static beforeUpdate ( mixed $func ) : null | ||
$func | mixed | callback |
Результат | null |