} /* @var $serviceReflector KalturaServiceActionItem */ $actions = $serviceReflector->actionMap; $serviceInfo = $serviceReflector->serviceInfo; ?> <h2>Kaltura API</h2> <table id="serviceInfo"> <tr> <td class="title">Service Name</td> <td class="odd"><?php echo $serviceInfo->serviceName; ?> </td> </tr> <?php $plugin = extractPluginNameFromPackage($serviceInfo->package); if ($plugin) { ?> <tr> <td class="title">Plugin</td> <td class="odd"><?php echo $plugin; ?> </td> </tr> <?php } ?> <tr> <td class="title">Description</td> <td><?php
propertiesTable.hide(); } }); }); </script> <?php $typeReflector = KalturaTypeReflectorCacher::get($object); $type = $typeReflector->getType(); echo "<h2>Kaltura API</h2>\n\t\t<table class=\"action\" width=\"80%\">\n\t\t<tr>\n\t\t\t<th colspan=\"4\" class=\"service_action_title\">{$type}</th>\n\t\t</tr>"; $description = trim(formatDescription($typeReflector->getDescription())); if ($description) { echo "<tr>\n\t\t\t<td colspan=\"4\" class=\"title\">Description</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td class=\"description\" colspan=\"3\">{$description}</td>\n\t\t</tr>"; } $plugin = extractPluginNameFromPackage($typeReflector->getPackage()); if ($plugin) { echo "<tr>\n\t\t\t<td colspan=\"4\" class=\"title\">Plugin</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td class=\"description\" colspan=\"3\">{$plugin}</td>\n\t\t</tr>"; } if ($typeReflector->isArray()) { $arrayType = $typeReflector->getArrayType(); echo "<tr>\n\t\t\t<td colspan=\"4\">Array of type <a href=\"?object={$arrayType}\">{$arrayType}</a></td>\n\t\t</tr>"; } else { // sub title if ($typeReflector->isEnum() || $typeReflector->isStringEnum()) { $subTitle = 'Enumerations'; } else { $subTitle = 'Properties'; } echo "<tr>\n\t\t\t<td colspan=\"4\" class=\"title\">\n\t\t\t\t{$subTitle}\n\t\t\t</td>\n\t\t</tr>"; // property columns