PHP Class Eva\EvaEngine\Mvc\Controller\ControllerBase

Inheritance: extends Phalcon\Mvc\Controller
Datei anzeigen Open project: evaengine/evaengine Class Usage Examples

Protected Properties

Property Type Description
$recommendedReasonPhrases array Recommended Reason Phrases

Public Methods

Method 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 method

public afterExecuteRoute ( $dispatcher )
$dispatcher

cors() public method

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 method

public static currentUrl ( )

ignoreException() public method

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

redirectHandler() public method

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

showErrorMessage() public method

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

showErrorMessageAsJson() public method

public showErrorMessageAsJson ( $code, $message ) : Phalcon\Http\ResponseInterface
$code
$message
return Phalcon\Http\ResponseInterface

showException() public method

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

showExceptionAsJson() public method

public showExceptionAsJson ( $exception, $messages = null )

showInvalidMessages() public method

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

showInvalidMessagesAsJson() public method

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

showModelMessages() public method

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

showModelMessagesAsJson() public method

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

showResponseAsJson() public method

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

Property Details

$recommendedReasonPhrases protected_oe property

Recommended Reason Phrases
protected array $recommendedReasonPhrases
return array