library/core/class.pluginmanager.php
public function RegisterOverride($OverrideClassName, $OverrideMethodName, $EventClassName = '', $EventName = '') {
      $OverrideKey = $OverrideClassName.'.'.$OverrideMethodName;
      $EventKey = strtolower($EventClassName == '' ? $OverrideMethodName : $EventClassName.'_'.$EventName.'_Override');

      // Throw an error if this method has already been overridden.
      if (array_key_exists($EventKey, $this->_MethodOverrideCollection) === TRUE)
         trigger_error(ErrorMessage('Any object method can only be overridden by a single plugin. The "'.$EventKey.'" override has already been assigned by the "'.$this->_MethodOverrideCollection[$EventKey].'" plugin. It cannot also be overridden by the "'.$OverrideClassName.'" plugin.', 'PluginManager', 'RegisterOverride'), E_USER_ERROR);

      // Otherwise, specify this class as the source for the override.
      $this->_MethodOverrideCollection[$EventKey] = $OverrideKey;
   }
public function RegisterOverride($OverrideClassName, $OverrideMethodName, $EventClassName = '', $EventName = '') {
      $OverrideKey = $OverrideClassName.'.'.$OverrideMethodName;
      $EventKey = strtolower($EventClassName == '' ? $OverrideMethodName : $EventClassName.'_'.$EventName.'_Override');

      // Throw an error if this method has already been overridden.
      if (array_key_exists($EventKey, $this->_MethodOverrideCollection) === TRUE)
         trigger_error(ErrorMessage('Any object method can only be overridden by a single plugin. The "'.$EventKey.'" override has already been assigned by the "'.$this->_MethodOverrideCollection[$EventKey].'" plugin. It cannot also be overridden by the "'.$OverrideClassName.'" plugin.', 'PluginManager', 'RegisterOverride'), E_USER_ERROR);

      // Otherwise, specify this class as the source for the override.
      $this->_MethodOverrideCollection[$EventKey] = $OverrideKey;
   }
public function RegisterOverride ( $ OverrideClassName , $ OverrideMethodName , $ EventClassName = '' , $ EventName = '' ) { $ OverrideKey = $ OverrideClassName . '.' . $ OverrideMethodName ; $ EventKey = strtolower ( $ EventClassName == '' ? $ OverrideMethodName : $ EventClassName . '_' . $ EventName . '_Override' ) ; // Throw an error if this method has already been overridden. if ( array_key_exists ( $ EventKey , $ this -> _MethodOverrideCollection ) === TRUE ) trigger_error ( ErrorMessage ( 'Any object method can only be overridden by a single plugin. The "' . $ EventKey . '" override has already been assigned by the "' . $ this -> _MethodOverrideCollection [ $ EventKey ] . '" plugin. It cannot also be overridden by the "' . $ OverrideClassName . '" plugin.' , 'PluginManager' , 'RegisterOverride' ) , E_USER_ERROR ) ; // Otherwise, specify this class as the source for the override. $ this -> _MethodOverrideCollection [ $ EventKey ] = $ OverrideKey ; }
Registers a plugin override method.
@param string $OverrideClassName The name of the plugin class that will override the existing method.
@param string $OverrideMethodName The name of the plugin method being registered to override the existing method.
@param string $EventClassName The name of the class that will fire the event.
@param string $EventName The name of the event that will fire.
Registers a plugin override method .