Свойство | Type | Description | |
---|---|---|---|
$PARTIAL_RECORD_HEADER | |||
$UPDATE_ONLY_HEADER |
Свойство | Type | Description | |
---|---|---|---|
$output_format | output format defaults to xml | ||
$resources | |||
$supported_formats | |||
$version |
Méthode | Description | |
---|---|---|
actionDelete ( $resource_type, $id ) | ||
actionUpdate ( $resource_type, $id ) | ||
beforeAction ( CAction $action ) : boolean | ||
createAction ( string $actionID ) : CAction | CInlineAction | This overrides the default behaviour for supported resources by pushing the resource into the GET parameter and updating the actionID. | |
expectedParametersForAction ( $action ) | Simple wrapper to encapsulate the arguments required for any of the API actions. | |
getPartialRecord ( ) : boolean | Whether the request is a partial record which only sets the fields that are provided on the given record. | |
getResourceModel ( $resource_type ) | ||
getUpdateOnly ( ) : boolean | Whether the request is an "updateOnly" request. | |
invalidActionParams ( CAction $action ) |
Méthode | Description | |
---|---|---|
getContentType ( ) : string | ||
sendErrorResponse ( $status, $messages = [] ) | ||
sendResponse ( $status = 200, $body = '' ) | ||
sendSuccessResponse ( $status, $response ) |
public beforeAction ( CAction $action ) : boolean | ||
$action | CAction | |
Résultat | boolean |
public createAction ( string $actionID ) : CAction | CInlineAction | ||
$actionID | string | |
Résultat | CAction | CInlineAction |
public expectedParametersForAction ( $action ) |
public getPartialRecord ( ) : boolean | ||
Résultat | boolean |
public getUpdateOnly ( ) : boolean | ||
Résultat | boolean |