/** * Get the methods that are available for mixin based * * This function dynamically adds mixable methods of format _action[Action] * * @param array $exclude A list of methods to exclude * @return array An array of methods */ public function getMixableMethods($exclude = array()) { $methods = parent::getMixableMethods($exclude); if ($this->isSupported()) { foreach ($this->getMethods() as $method) { if (substr($method, 0, 7) == '_action') { $methods[strtolower(substr($method, 7))] = $this; } } } return $methods; }
/** * Get the methods that are available for mixin based * * @param array $exclude An array of public methods to be exclude * @return array An array of methods */ public function getMixableMethods($exclude = array()) { $exclude = array_merge($exclude, array('authenticateRequest', 'signResponse')); return parent::getMixableMethods($exclude); }
/** * Get the methods that are available for mixin based * * @param array $exclude A list of methods to exclude * @return array An array of methods */ public function getMixableMethods($exclude = array()) { $exclude = array_merge($exclude, array('getInstance', 'save', 'delete')); return parent::getMixableMethods($exclude); }
/** * {@inheritdoc} */ public function getMixableMethods(KObject $mixer = null) { $methods = parent::getMixableMethods($mixer); return array_diff($methods, array('getRepository')); }
/** * Get the methods that are available for mixin based * * This function also dynamically adds a function of format is[Behavior] to allow client code to check if the * behavior is callable. * * @param object The mixer requesting the mixable methods. * @return array An array of methods */ public function getMixableMethods(KObject $mixer = null) { $methods = parent::getMixableMethods($mixer); return array_diff($methods, array('save', 'delete')); }