public function getAction() {
		if ($this->action) {
			return $this->action;
		} else {
			$action = "index";
			switch ($_SERVER['REQUEST_METHOD']) {
				case "GET":
					if (count($this->getFilterParameters()) == 0) {
						$action = "index";
					} else {
						$action = "get";
					}
					break;
				case "POST":
					$action = "post";
					break;
				case "PUT":
					$action = "put";
					break;
				case "DELETE":
					$action = "delete";
					break;
				case "HEAD":
					$action = "head";
					break;
				case "SEARCH":
					$action = "search";
					break;
				case "OPTIONS":
					$action = "options";
					break;
			}

			return $action;
		}
	}
public function getAction() {
		if ($this->action) {
			return $this->action;
		} else {
			$action = "index";
			switch ($_SERVER['REQUEST_METHOD']) {
				case "GET":
					if (count($this->getFilterParameters()) == 0) {
						$action = "index";
					} else {
						$action = "get";
					}
					break;
				case "POST":
					$action = "post";
					break;
				case "PUT":
					$action = "put";
					break;
				case "DELETE":
					$action = "delete";
					break;
				case "HEAD":
					$action = "head";
					break;
				case "SEARCH":
					$action = "search";
					break;
				case "OPTIONS":
					$action = "options";
					break;
			}

			return $action;
		}
	}
public function getAction ( ) { if ( $ this -> action ) { return $ this -> action ; } else { $ action = "index" ; switch ( $ _SERVER [ 'REQUEST_METHOD' ] ) { case "GET" : if ( count ( $ this -> getFilterParameters ( ) ) == 0 ) { $ action = "index" ; } else { $ action = "get" ; } break ; case "POST" : $ action = "post" ; break ; case "PUT" : $ action = "put" ; break ; case "DELETE" : $ action = "delete" ; break ; case "HEAD" : $ action = "head" ; break ; case "SEARCH" : $ action = "search" ; break ; case "OPTIONS" : $ action = "options" ; break ; } return $ action ; } }
Return current action

@return string
Return current action