PHP Класс Eva\EvaEngine\Mvc\Controller\ControllerBase

Наследование: extends Phalcon\Mvc\Controller
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$recommendedReasonPhrases array Recommended Reason Phrases

Открытые методы

Метод Описание
afterExecuteRoute ( $dispatcher )
cors ( string $allowCredentials = 'true', string $allowMethods = 'GET, POST, PUT, DELETE, OPTIONS', string $allowHeaders = null ) handler cross domain request
currentUrl ( )
ignoreException ( $exception, null $messages = null, string $messageType = 'debug' )
redirectHandler ( null $defaultRedirect = null, null $redirectType = null, boolean $securityCheck = false ) : Phalcon\Http\ResponseInterface
showErrorMessage ( $code, $message, string $messageType = 'error' )
showErrorMessageAsJson ( $code, $message ) : Phalcon\Http\ResponseInterface
showException ( $exception, null $messages = null, string $messageType = 'error' )
showExceptionAsJson ( $exception, $messages = null )
showInvalidMessages ( Phalcon\Forms\Form $form, string $messageType = 'warning' )
showInvalidMessagesAsJson ( Phalcon\Forms\Form $form, string $messageType = 'warning' ) : Phalcon\Http\ResponseInterface
showModelMessages ( Phalcon\Mvc\Model $model, string $messageType = 'warning' )
showModelMessagesAsJson ( Phalcon\Mvc\Model $model, string $messageType = 'warning' )
showResponseAsJson ( $object, integer $code = 200 ) : Phalcon\Http\ResponseInterface

Описание методов

afterExecuteRoute() публичный Метод

public afterExecuteRoute ( $dispatcher )
$dispatcher

cors() публичный Метод

handler cross domain request
public cors ( string $allowCredentials = 'true', string $allowMethods = 'GET, POST, PUT, DELETE, OPTIONS', string $allowHeaders = null )
$allowCredentials string Access-Control-Allow-Credentials
$allowMethods string Access-Control-Allow-Methods
$allowHeaders string Access-Control-Allow-Headers

currentUrl() публичный статический Метод

public static currentUrl ( )

ignoreException() публичный Метод

public ignoreException ( $exception, null $messages = null, string $messageType = 'debug' )
$exception
$messages null
$messageType string

redirectHandler() публичный Метод

public redirectHandler ( null $defaultRedirect = null, null $redirectType = null, boolean $securityCheck = false ) : Phalcon\Http\ResponseInterface
$defaultRedirect null
$redirectType null
$securityCheck boolean
Результат Phalcon\Http\ResponseInterface

showErrorMessage() публичный Метод

public showErrorMessage ( $code, $message, string $messageType = 'error' )
$code
$message
$messageType string

showErrorMessageAsJson() публичный Метод

public showErrorMessageAsJson ( $code, $message ) : Phalcon\Http\ResponseInterface
$code
$message
Результат Phalcon\Http\ResponseInterface

showException() публичный Метод

public showException ( $exception, null $messages = null, string $messageType = 'error' )
$exception
$messages null
$messageType string

showExceptionAsJson() публичный Метод

public showExceptionAsJson ( $exception, $messages = null )

showInvalidMessages() публичный Метод

public showInvalidMessages ( Phalcon\Forms\Form $form, string $messageType = 'warning' )
$form Phalcon\Forms\Form
$messageType string

showInvalidMessagesAsJson() публичный Метод

public showInvalidMessagesAsJson ( Phalcon\Forms\Form $form, string $messageType = 'warning' ) : Phalcon\Http\ResponseInterface
$form Phalcon\Forms\Form
$messageType string
Результат Phalcon\Http\ResponseInterface

showModelMessages() публичный Метод

public showModelMessages ( Phalcon\Mvc\Model $model, string $messageType = 'warning' )
$model Phalcon\Mvc\Model
$messageType string

showModelMessagesAsJson() публичный Метод

public showModelMessagesAsJson ( Phalcon\Mvc\Model $model, string $messageType = 'warning' )
$model Phalcon\Mvc\Model
$messageType string

showResponseAsJson() публичный Метод

public showResponseAsJson ( $object, integer $code = 200 ) : Phalcon\Http\ResponseInterface
$object
$code integer
Результат Phalcon\Http\ResponseInterface

Описание свойств

$recommendedReasonPhrases защищенное свойство

Recommended Reason Phrases
protected array $recommendedReasonPhrases
Результат array