library/core/class.pluginmanager.php
public function RegisterNewMethod($NewMethodClassName, $NewMethodName, $EventClassName = '', $EventName = '') {
      $NewMethodKey = $NewMethodClassName.'.'.$NewMethodName;
      $EventKey = strtolower($EventClassName == '' ? $NewMethodName : $EventClassName.'_'.$EventName.'_Create');

      // Throw an error if this method has already been created.
      if (array_key_exists($EventKey, $this->_NewMethodCollection) === TRUE) {
         trigger_error('New object methods must be unique. The new "'.$EventKey.'" method has already been assigned by the "'.$this->_NewMethodCollection[$EventKey].'" plugin. It cannot also be assigned by the "'.$NewMethodClassName.'" plugin.', E_USER_NOTICE);
         return;
      }

      // Otherwise, specify this class as the source for the new method.
      $this->_NewMethodCollection[$EventKey] = $NewMethodKey;
   }
public function RegisterNewMethod($NewMethodClassName, $NewMethodName, $EventClassName = '', $EventName = '') {
      $NewMethodKey = $NewMethodClassName.'.'.$NewMethodName;
      $EventKey = strtolower($EventClassName == '' ? $NewMethodName : $EventClassName.'_'.$EventName.'_Create');

      // Throw an error if this method has already been created.
      if (array_key_exists($EventKey, $this->_NewMethodCollection) === TRUE) {
         trigger_error('New object methods must be unique. The new "'.$EventKey.'" method has already been assigned by the "'.$this->_NewMethodCollection[$EventKey].'" plugin. It cannot also be assigned by the "'.$NewMethodClassName.'" plugin.', E_USER_NOTICE);
         return;
      }

      // Otherwise, specify this class as the source for the new method.
      $this->_NewMethodCollection[$EventKey] = $NewMethodKey;
   }
public function RegisterNewMethod ( $ NewMethodClassName , $ NewMethodName , $ EventClassName = '' , $ EventName = '' ) { $ NewMethodKey = $ NewMethodClassName . '.' . $ NewMethodName ; $ EventKey = strtolower ( $ EventClassName == '' ? $ NewMethodName : $ EventClassName . '_' . $ EventName . '_Create' ) ; // Throw an error if this method has already been created. if ( array_key_exists ( $ EventKey , $ this -> _NewMethodCollection ) === TRUE ) { trigger_error ( 'New object methods must be unique. The new "' . $ EventKey . '" method has already been assigned by the "' . $ this -> _NewMethodCollection [ $ EventKey ] . '" plugin. It cannot also be assigned by the "' . $ NewMethodClassName . '" plugin.' , E_USER_NOTICE ) ; return ; } // Otherwise, specify this class as the source for the new method. $ this -> _NewMethodCollection [ $ EventKey ] = $ NewMethodKey ; }
Registers a plugin new method.
@param string $NewMethodClassName The name of the plugin class that will add a new method.
@param string $NewMethodName The name of the plugin method being added.
@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 new method .