public function allowMethod($class, $method = null)
    {
        if (is_array($class)) {
            foreach ($class as $elem) {
                $this->allowedMethods[strtolower($elem[0])][strtolower($elem[1])] = true;
            }
        } else {
            $this->allowedMethods[strtolower($class)][strtolower($method)] = true;
        }
    }
public function allowMethod($class, $method = null)
    {
        if (is_array($class)) {
            foreach ($class as $elem) {
                $this->allowedMethods[strtolower($elem[0])][strtolower($elem[1])] = true;
            }
        } else {
            $this->allowedMethods[strtolower($class)][strtolower($method)] = true;
        }
    }
public function allowMethod ( $ class , $ method = null ) { if ( is_array ( $ class ) ) { foreach ( $ class as $ elem ) { $ this -> allowedMethods [ strtolower ( $ elem [ 0 ] ) ] [ strtolower ( $ elem [ 1 ] ) ] = true ; } } else { $ this -> allowedMethods [ strtolower ( $ class ) ] [ strtolower ( $ method ) ] = true ; } }
Adds a class method to the allowed list, this must be used for
both static and non static method by providing the class name
and method name to use.

@param mixed  $class  class name or array of array('class', 'method') couples
@param string $method method name
Adds a class method to the allowed list this must be used for both static and non static method by providing the class name and method name to use .