コード例 #1
0
 /**
  * Get an object handle
  * 
  * This function only returns a valid handle if one or more command handler 
  * functions are defined. A commend handler function needs to follow the 
  * following format : '_afterX[Event]' or '_beforeX[Event]' to be 
  * recognised.
  * 
  * @return string A string that is unique, or NULL
  * @see execute()
  */
 public function getHandle()
 {
     $methods = $this->getMethods();
     foreach ($methods as $method) {
         if (substr($method, 0, 7) == '_before' || substr($method, 0, 6) == '_after') {
             return parent::getHandle();
         }
     }
     return null;
 }
コード例 #2
0
ファイル: executable.php プロジェクト: stonyyi/anahita
 /**
  * Get an object handle
  *
  * Force the object to be enqueue in the command chain.
  *
  * @return string A string that is unique, or NULL
  * @see execute()
  */
 public function getHandle()
 {
     return KMixinAbstract::getHandle();
 }