PHP Class ApiController

Inheritance: extends LoompAction
Afficher le fichier Open project: openeyes/openeyes Class Usage Examples

Protected Properties

Свойство Type Description
$general_tags
$output_format
$profile_tags
$security_tags
$xml_error_map

Méthodes publiques

Méthode Description
actionBadRequest ( )
actionConformance ( ) WhOLE SYSTEM INTERACTIONS
actionCreate ( string $resource_type ) Create resource.
actionDelete ( string $resource_type, string $id ) Delete resource.
actionRead ( string $resource_type, string $id ) Read (view) resource.
actionSearch ( $resource_type ) Search for resource(s).
actionUpdate ( string $resource_type, string $id ) Update resource.
actionVread ( string $resource_type, string $id, string $vid ) Read (view) previous version of resource.
beforeAction ( $action )
handleError ( CErrorEvent $event )
handleException ( CExceptionEvent $event )

Méthodes protégées

Méthode Description
getRef ( $resource_type, $id )
parseInput ( )
sendBundle ( services\FhirBundle $bundle )
sendError ( $message, $status = 400, $type )
sendInfo ( $message, $status = 200 )
sendResource ( services\Resource $resource, $status = 200 )
sendResponse ( integer $status, string $body = '' ) Send response.

Private Methods

Méthode Description
getSearchService ( $resource_type, array &$params )

Method Details

actionBadRequest() public méthode

public actionBadRequest ( )

actionConformance() public méthode

WhOLE SYSTEM INTERACTIONS
public actionConformance ( )

actionCreate() public méthode

Create resource.
public actionCreate ( string $resource_type )
$resource_type string

actionDelete() public méthode

Delete resource.
public actionDelete ( string $resource_type, string $id )
$resource_type string
$id string

actionRead() public méthode

Read (view) resource.
public actionRead ( string $resource_type, string $id )
$resource_type string
$id string

actionSearch() public méthode

Search for resource(s).
public actionSearch ( $resource_type )
$resource_type

actionUpdate() public méthode

Update resource.
public actionUpdate ( string $resource_type, string $id )
$resource_type string
$id string

actionVread() public méthode

Current implementation uses timestamp as version ID and only supports the current version
public actionVread ( string $resource_type, string $id, string $vid )
$resource_type string
$id string
$vid string

beforeAction() public méthode

public beforeAction ( $action )

getRef() protected méthode

protected getRef ( $resource_type, $id )

handleError() public méthode

public handleError ( CErrorEvent $event )
$event CErrorEvent

handleException() public méthode

public handleException ( CExceptionEvent $event )
$event CExceptionEvent

parseInput() protected méthode

protected parseInput ( )

sendBundle() protected méthode

protected sendBundle ( services\FhirBundle $bundle )
$bundle services\FhirBundle

sendError() protected méthode

protected sendError ( $message, $status = 400, $type )

sendInfo() protected méthode

protected sendInfo ( $message, $status = 200 )

sendResource() protected méthode

protected sendResource ( services\Resource $resource, $status = 200 )
$resource services\Resource

sendResponse() protected méthode

Send response.
protected sendResponse ( integer $status, string $body = '' )
$status integer
$body string

Property Details

$general_tags protected_oe property

protected $general_tags

$output_format protected_oe property

protected $output_format

$profile_tags protected_oe property

protected $profile_tags

$security_tags protected_oe property

protected $security_tags

$xml_error_map protected_oe static_oe property

protected static $xml_error_map