private function getActionFromMatch($match = array())
    {
        $target = explode("#", $match["target"]);

        if (count($target) > 1) {
            return $target[1];
        }

        if (array_key_exists("action", $match["params"])) {
            return $this->getActionFromParam($match["params"]["action"]);
        }

        $this->controller->request = new Request();
        if (is_admin() && $this->controller->request->hasGet('page')) {
            return $this->controller->request->get('page');
            // When no method is sent, guesstimate from the action post value (ex: basic ajax)
        } elseif ($this->controller->request->hasPost('action')) {
            return $this->controller->request->post('action');
        }
    }
private function getActionFromMatch($match = array())
    {
        $target = explode("#", $match["target"]);

        if (count($target) > 1) {
            return $target[1];
        }

        if (array_key_exists("action", $match["params"])) {
            return $this->getActionFromParam($match["params"]["action"]);
        }

        $this->controller->request = new Request();
        if (is_admin() && $this->controller->request->hasGet('page')) {
            return $this->controller->request->get('page');
            // When no method is sent, guesstimate from the action post value (ex: basic ajax)
        } elseif ($this->controller->request->hasPost('action')) {
            return $this->controller->request->post('action');
        }
    }
private function getActionFromMatch ( $ match = array ( ) ) { $ target = explode ( "#" , $ match [ "target" ] ) ; if ( count ( $ target ) > 1 ) { return $ target [ 1 ] ; } if ( array_key_exists ( "action" , $ match [ "params" ] ) ) { return $ this -> getActionFromParam ( $ match [ "params" ] [ "action" ] ) ; } $ this -> controller -> request = new Request ( ) ; if ( is_admin ( ) && $ this -> controller -> request -> hasGet ( 'page' ) ) { return $ this -> controller -> request -> get ( 'page' ) ; // When no method is sent, guesstimate from the action post value (ex: basic ajax) } elseif ( $ this -> controller -> request -> hasPost ( 'action' ) ) { return $ this -> controller -> request -> post ( 'action' ) ; } }
Gets the action from the AltoRouter match.
@param  array $match An AltoRouter answer
@return string
Gets the action from the AltoRouter match .