li3_behaviors\data\model\Behaviors::_classesForBehavior()

protected static method

Helper method to retrieve current model class and behavior class for name.

Parameters

  • string $name

    The name of the behavior.

Returns

array

An array usable with list() with the model and behavior classes.

Source

	protected static function _classesForBehavior($name) {
		$model = get_called_class();

		if (!$class = Libraries::locate('behavior', $name)) {
			throw new RuntimeException("No behavior named `{$named}` found.");
		}
		return [$model, $class];
	}