PHP Class Eva\EvaEngine\Mvc\Controller\ControllerBase

Inheritance: extends Phalcon\Mvc\Controller
Afficher le fichier Open project: evaengine/evaengine Class Usage Examples

Protected Properties

Свойство Type Description
$recommendedReasonPhrases array Recommended Reason Phrases

Méthodes publiques

Méthode Description
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

Method Details

afterExecuteRoute() public méthode

public afterExecuteRoute ( $dispatcher )
$dispatcher

cors() public méthode

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 méthode

public static currentUrl ( )

ignoreException() public méthode

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

redirectHandler() public méthode

public redirectHandler ( null $defaultRedirect = null, null $redirectType = null, boolean $securityCheck = false ) : Phalcon\Http\ResponseInterface
$defaultRedirect null
$redirectType null
$securityCheck boolean
Résultat Phalcon\Http\ResponseInterface

showErrorMessage() public méthode

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

showErrorMessageAsJson() public méthode

public showErrorMessageAsJson ( $code, $message ) : Phalcon\Http\ResponseInterface
$code
$message
Résultat Phalcon\Http\ResponseInterface

showException() public méthode

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

showExceptionAsJson() public méthode

public showExceptionAsJson ( $exception, $messages = null )

showInvalidMessages() public méthode

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

showInvalidMessagesAsJson() public méthode

public showInvalidMessagesAsJson ( Phalcon\Forms\Form $form, string $messageType = 'warning' ) : Phalcon\Http\ResponseInterface
$form Phalcon\Forms\Form
$messageType string
Résultat Phalcon\Http\ResponseInterface

showModelMessages() public méthode

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

showModelMessagesAsJson() public méthode

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

showResponseAsJson() public méthode

public showResponseAsJson ( $object, integer $code = 200 ) : Phalcon\Http\ResponseInterface
$object
$code integer
Résultat Phalcon\Http\ResponseInterface

Property Details

$recommendedReasonPhrases protected_oe property

Recommended Reason Phrases
protected array $recommendedReasonPhrases
Résultat array