/** * Checks and stops the script if the method is not POST. * * @return string The text by exit() function. */ private function _checkPost() { if (!$this->_isPost()) { exit(Form::wrongRequestMethodMsg('POST')); } }