Esempio n. 1
0
 /**
  * Get the methods that are available for mixin. 
  * 
  * This functions overloads KMixinAbstract::getMixableMethods and excludes the execute()
  * function from the list of available mixable methods.
  * 
  * @return array An array of methods
  */
 public function getMixableMethods(KObject $mixer = null)
 {
     return array_diff(parent::getMixableMethods(), array('execute', 'getPriority'));
 }
 /**
  * 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);
     $methods[] = 'is' . ucfirst($this->getIdentifier()->name);
     foreach ($this->getMethods() as $method) {
         if (substr($method, 0, 7) == '_action') {
             $methods[] = strtolower(substr($method, 7));
         }
     }
     return array_diff($methods, array('execute', 'getIdentifier', 'getPriority', 'getHandle', 'getService', 'getIdentifier'));
 }
Esempio n. 3
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);
     $methods[] = 'is' . ucfirst($this->_identifier->name);
     return array_diff($methods, array('execute', 'save', 'delete'));
 }
 /**
  * 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);
     $methods[] = 'is' . ucfirst($this->getIdentifier()->name);
     return array_diff($methods, array('execute', 'save', 'delete', 'getHandle', 'getPriority', 'getIdentifier', 'getService'));
 }