function addData($name, $callback, $class = null, $BCMode = false)
    {
        if (!empty($class)) {
            $this->_data[$name] = array($callback, $class);
        } else {
            $this->_data[$name] = array($callback);
        }
        $this->_BCMode[$name] = $BCMode;
    }
function addData($name, $callback, $class = null, $BCMode = false)
    {
        if (!empty($class)) {
            $this->_data[$name] = array($callback, $class);
        } else {
            $this->_data[$name] = array($callback);
        }
        $this->_BCMode[$name] = $BCMode;
    }
function addData ( $ name , $ callback , $ class = null , $ BCMode = false ) { if ( ! empty ( $ class ) ) { $ this -> _data [ $ name ] = array ( $ callback , $ class ) ; } else { $ this -> _data [ $ name ] = array ( $ callback ) ; } $ this -> _BCMode [ $ name ] = $ BCMode ; }
Adds new callbacks to the callbacks list

@param     string    $name       Name of rule
@param     string    $callback   Name of function or method
@param     string    $class      Name of class containing the method
@param     bool      $BCMode     Backwards compatibility mode
@access    public
Adds new callbacks to the callbacks list