\OriginalKeyBehavior

OriginalKey Behavior

Summary

Methods
Properties
Constants
setup()
beforeSave()
generateKey()
$isUnitRandomKey
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$isUnitRandomKey

$isUnitRandomKey : mixed

PHPUnitで使用するキー配列

Type

mixed

Methods

setup()

setup(\Model  $model, array  $config = array()) : void

Setup this behavior with the specified configuration settings.

Parameters

\Model $model

Model using this behavior

array $config

Configuration settings for $model

beforeSave()

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.

Parameters

\Model $model

Model using this behavior

array $options

Options passed from Model::save().

Returns

mixed —

False if the operation should abort. Any other result will continue.

generateKey()

generateKey(string  $plugin, string  $dataSource) : string

Generate key

Parameters

string $plugin

Plugin name

string $dataSource

The name of the DataSource, as defined in app/Config/database.php

Returns

string —

Hash key