You are here

function KalturaClient::addModeration in Kaltura 6

Same name and namespace in other branches
  1. 5 kaltura_client/kaltura_client.php \KalturaClient::addModeration()

File

kaltura_client/kaltura_client.php, line 572

Class

KalturaClient

Code

function addModeration($kalturaSessionUser, $moderation) {
  $params = array();
  $this
    ->addOptionalParam($params, "moderation_comments", $moderation->comments);
  $this
    ->addOptionalParam($params, "moderation_objectType", $moderation->objectType);
  $this
    ->addOptionalParam($params, "moderation_objectId", $moderation->objectId);
  $this
    ->addOptionalParam($params, "moderation_reportCode", $moderation->reportCode);
  $this
    ->addOptionalParam($params, "moderation_status", $moderation->status);
  $result = $this
    ->hit("addmoderation", $kalturaSessionUser, $params);
  return $result;
}