Esempio n. 1
0
 /**
  * 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;
 }
Esempio n. 2
0
 /**
  * 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);
 }
Esempio n. 3
0
 /**
  * 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);
 }
Esempio n. 4
0
 /**
  * {@inheritdoc}
  */
 public function getMixableMethods(KObject $mixer = null)
 {
     $methods = parent::getMixableMethods($mixer);
     return array_diff($methods, array('getRepository'));
 }
Esempio n. 5
0
 /**
  * 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'));
 }