class KalturaServiceActionCall in Kaltura 6.2
Hierarchy
- class \KalturaServiceActionCall
Expanded class hierarchy of KalturaServiceActionCall
File
- kaltura_client/
KalturaClientBase.php, line 368
View source
class KalturaServiceActionCall {
/**
* @var string
*/
public $service;
/**
* @var string
*/
public $action;
/**
* @var array
*/
public $params;
/**
* @var array
*/
public $files;
/**
* Contruct new Kaltura service action call, if params array contain sub arrays (for objects), it will be flattened
*
* @param string $service
* @param string $action
* @param array $params
* @param array $files
*/
public function __construct($service, $action, $params = array(), $files = array()) {
$this->service = $service;
$this->action = $action;
// flatten sub arrays (the objects)
$newParams = array();
foreach ($params as $key => $val) {
if (is_array($val)) {
foreach ($val as $subKey => $subVal) {
$newParams[$key . ":" . $subKey] = $subVal;
}
}
else {
$newParams[$key] = $val;
}
}
$this->params = $newParams;
$this->files = $files;
}
/**
* Return the parameters for a multi request
*
* @param int $multiRequestIndex
*/
public function getParamsForMultiRequest($multiRequestIndex) {
$multiRequestParams = array();
$multiRequestParams[$multiRequestIndex . ":service"] = $this->service;
$multiRequestParams[$multiRequestIndex . ":action"] = $this->action;
foreach ($this->params as $key => $val) {
$multiRequestParams[$multiRequestIndex . ":" . $key] = $val;
}
return $multiRequestParams;
}
}
Members
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
KalturaServiceActionCall:: |
public | property | * | |
KalturaServiceActionCall:: |
public | property | * | |
KalturaServiceActionCall:: |
public | property | * | |
KalturaServiceActionCall:: |
public | property | * | |
KalturaServiceActionCall:: |
public | function | * Return the parameters for a multi request * * | |
KalturaServiceActionCall:: |
public | function | * Contruct new Kaltura service action call, if params array contain sub arrays (for objects), it will be flattened * * |