LFT
  • Namespace
  • Class
  • Tree

Namespaces

  • Docoflow
    • Contracts
    • Entity
    • Facades
    • Models
    • Traits
  • Docolight
    • Agno
      • Traits
    • Container
    • Http
      • Contracts
    • Rest
      • Handler
      • Http
    • Support
      • Debug
      • Traits
  • Docotory
    • Traits
  • None

Classes

  • RestFulController

Class RestFulController

A restful controller.

CController
Extended by Docolight\Rest\Http\RestFulController
Abstract
Namespace: Docolight\Rest\Http
Author: Krisan Alfa Timur krisanalfa@docotel.co.id
Located at Docolight/Rest/Http/RestFulController.php

Methods summary

public
# missingAction( string $action )

Handling 404 error.

Handling 404 error.

Parameters

$action
public
# setError( Exception $error )

Set an exception publicly.

Set an exception publicly.

Parameters

$error
public Docolight\Http\Response
# afterAction( CInlineAction $action )

After action.

After action.

Parameters

$action
Action from controller

Returns

Docolight\Http\Response

Properties summary

protected array $data

Data stored in this implementation. This data will be rendered as json response later in afterAction method.

Data stored in this implementation. This data will be rendered as json response later in afterAction method.

#
protected Exception $error

Exception stored in this implementation. When exception raised, the controller stored the exception in it.

Exception stored in this implementation. When exception raised, the controller stored the exception in it.

#
protected array $headers

Headers to be sent in HTTP response.

Headers to be sent in HTTP response.

# [ 'Powered-By' => 'PT. Docotel Teknologi', ]
LFT API documentation generated by ApiGen