2011-06-14 00:22:25 +03:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Messages container
|
|
|
|
|
*
|
|
|
|
|
* Contains messages, that are used in the code.
|
2011-06-20 18:26:03 +03:00
|
|
|
*
|
2011-06-14 00:22:25 +03:00
|
|
|
* @author vesta, http://vestacp.com/
|
2011-08-06 16:12:20 +03:00
|
|
|
* @author Dmitry Malishev <dima.malishev@gmail.com>
|
2011-06-20 18:26:03 +03:00
|
|
|
* @copyright vesta 2010-2011
|
2011-06-14 00:22:25 +03:00
|
|
|
*/
|
2011-06-20 18:26:03 +03:00
|
|
|
class Message
|
|
|
|
|
{
|
2011-06-21 13:32:26 +03:00
|
|
|
|
|
|
|
|
const ERROR = 'error';
|
|
|
|
|
const REQUEST_INVALID = 'Malformed request';
|
|
|
|
|
const REQUEST_IS_NOT_POST = 'Request is not POST';
|
|
|
|
|
const GENERAL_ERROR = 'General protection fault';
|
|
|
|
|
const METHOD_NOT_EXIST = 'Message not exist';
|
|
|
|
|
const INVALID_METHOD = 'Method Invalid';
|
|
|
|
|
const SYSTEM_ERROR = 'System Error';
|
|
|
|
|
const PROTECTION_ERROR = 'Protection error';
|
2011-06-20 18:26:03 +03:00
|
|
|
|
2011-06-14 00:22:25 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
?>
|