li3_behaviors\data\model\Behavior::_methods()

protected static method

Allows for dyamically adding instance methods to the model. The methods to be added must be returned as an array, where the key is the name of the concrete method on the model and the value an anonymous function.

  • Overwrite to add your own methods. -

Parameters

  • string $model

    Class name of the model.

  • object $behavior

    Instance of the behavior.

Returns

array

Methods to be added to the model instance.

Source

	protected static function _methods($model, $behavior) {
		return [];
	}