Overview

Packages

  • Components
  • Internals
    • AR
  • RestApi
    • Objects
    • Services

Classes

  • CBHttpRequest
  • CBJson
  • CBJsonController
  • CBJsonInlineAction
  • CBJsonModel
  • Overview
  • Package
  • Class
  • Tree
  • Todo

Class CBJsonInlineAction

Represents a JSON action that is defined as a controller method.

This subclass enforces the at-most-one-parameter-with-type-hinting actions.

CInlineAction
Extended by CBJsonInlineAction
Package: Components
Author: Konstantinos Filios <konfilios@gmail.com>
Since: 1.0
Located at components/CBJsonInlineAction.php
Methods summary
protected mixed
# decodeJsonParam( string $jsonInput, mixed $paramName )

Decode json input.

Decode json input.

Parameters

$jsonInput
string
$jsonInput
$paramName

Returns

mixed

Throws

CHttpException
protected mixed
# runWithParamsInternal( mixed $object, ReflectionMethod $method, array $paramValues )

Executes a method of an object with the supplied named parameters.

Executes a method of an object with the supplied named parameters.

This method is internally used and implements all Restful logic.

Parameters

$object
mixed
$object the object whose method is to be executed
$method
ReflectionMethod
$method the method reflection
$paramValues
array
$paramValues the named parameters

Returns

mixed
whether the named parameters are valid
Bogo Yii Json Service API documentation generated by ApiGen 2.8.0