REPLACE_BASE_URL
REPLACE_BASE_URL
OriginalKey Behavior
afterFind(\Model $model, mixed $results, boolean $primary = false) : mixed
After find callback. Can be used to modify any results returned by find.
\Model | $model | Model using this behavior |
mixed | $results | The results of the find operation |
boolean | $primary | Whether this model is being queried directly (vs. being queried as an association) |
An array value will replace the value of $results - any other value will be ignored.
beforeSave(\Model $model, array $options = array()) : mixed
beforeSave is called before a model is saved. Returning false from a beforeSave callback will abort the save operation.
\Model | $model | Model using this behavior |
array | $options | Options passed from Model::save(). |
False if the operation should abort. Any other result will continue.
afterSave(\Model $model, boolean $created, array $options = array()) : boolean
afterSave is called after a model is saved.
Wysiwyg に登録したファイル・画像には、content_key, block_key が未定義のため 登録されていない場合がある。 それらのファイルデータに対して、登録を実行する。
\Model | $model | Model using this behavior |
boolean | $created | True if this save created a new record |
array | $options | Options passed from Model::save(). |