src/Easy/EasyForm.php
public function validateRequest($methodName)
    {
        $methodName = strtolower($methodName);

        if ($methodName == "selectrecord" || $methodName == "invoke" || $methodName = "sortrecord")
            return true;
        // element, eventhandler
        list($element, $eventHandler) = $this->getInvokingElement();
        if ($element && $eventHandler) {
            if (stripos($eventHandler->origFunction, $methodName) === 0)
                return true;
        }
        // scan elements to match method
        foreach ($this->panels as $panel) {
            foreach ($panel as $elem)
                if ($elem->matchRemoteMethod($methodName))
                    return true;
        }

        if (is_array($this->directMethodList)) {
            foreach ($this->directMethodList as $value) {
                if ($methodName == $value)
                    return true;
            }
        }

        return false;
    }
public function validateRequest($methodName)
    {
        $methodName = strtolower($methodName);

        if ($methodName == "selectrecord" || $methodName == "invoke" || $methodName = "sortrecord")
            return true;
        // element, eventhandler
        list($element, $eventHandler) = $this->getInvokingElement();
        if ($element && $eventHandler) {
            if (stripos($eventHandler->origFunction, $methodName) === 0)
                return true;
        }
        // scan elements to match method
        foreach ($this->panels as $panel) {
            foreach ($panel as $elem)
                if ($elem->matchRemoteMethod($methodName))
                    return true;
        }

        if (is_array($this->directMethodList)) {
            foreach ($this->directMethodList as $value) {
                if ($methodName == $value)
                    return true;
            }
        }

        return false;
    }
Validate request from client (browser)

@param string $methodName called from the client
@return boolean