Accessmap::__call PHP Method

__call() public method

Magic function to handle the access mode dynamically
public __call ( $method, $arguments ) : boolean
return boolean

Return access mode or false on any undefined function call

    function __call($method, $arguments)
    {
        $verb = strtolower(substr($method, 0, 3));
        if ($verb == "can") {
            $action = strtolower(substr($method, 3));
            return $this->can($action);
        }
        $trace = debug_backtrace();
        trigger_error('Undefined function : ' . $method . ' called in ' . $trace[0]['file'] . ' on line ' . $trace[0]['line'], E_USER_NOTICE);
        return NULL;
    }