Свойство | Тип | Описание | |
---|---|---|---|
$PARTIAL_RECORD_HEADER | |||
$UPDATE_ONLY_HEADER |
Свойство | Тип | Описание | |
---|---|---|---|
$output_format | output format defaults to xml | ||
$resources | |||
$supported_formats | |||
$version |
Метод | Описание | |
---|---|---|
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 ) |
Метод | Описание | |
---|---|---|
getContentType ( ) : string | ||
sendErrorResponse ( $status, $messages = [] ) | ||
sendResponse ( $status = 200, $body = '' ) | ||
sendSuccessResponse ( $status, $response ) |
public beforeAction ( CAction $action ) : boolean | ||
$action | CAction | |
Результат | boolean |
public createAction ( string $actionID ) : CAction | CInlineAction | ||
$actionID | string | |
Результат | CAction | CInlineAction |
public expectedParametersForAction ( $action ) |
public getPartialRecord ( ) : boolean | ||
Результат | boolean |
public getUpdateOnly ( ) : boolean | ||
Результат | boolean |
public invalidActionParams ( CAction $action ) | ||
$action | CAction |