Skip to content

Commit

Permalink
Generate testme-doc offline
Browse files Browse the repository at this point in the history
  • Loading branch information
tan-tan-kanarek authored and tan-tan-kanarek committed May 10, 2016
1 parent b053092 commit be7cb9c
Show file tree
Hide file tree
Showing 84 changed files with 2,279 additions and 2,119 deletions.
47 changes: 0 additions & 47 deletions api_v3/config/testme.ini

This file was deleted.

28 changes: 27 additions & 1 deletion api_v3/lib/reflection/XmlClientGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,15 @@ public function generate()
$description = $serviceActionItem->serviceInfo->description;
$description = $this->fixDescription($description);
$serviceElement->setAttribute("description", $description);

if($serviceActionItem->serviceInfo->deprecated)
$serviceElement->setAttribute("deprecated", "1");

if(isset($serviceActionItem->include))
$serviceElement->setAttribute("include", implode(',', $serviceActionItem->include));

if(isset($serviceActionItem->exclude))
$serviceElement->setAttribute("exclude", implode(',', $serviceActionItem->exclude));

$plugin = $this->extractPluginNameFromPackage($serviceActionItem->serviceInfo->package);
if($plugin)
Expand Down Expand Up @@ -267,6 +274,9 @@ private function getEnumElement(KalturaTypeReflector $typeReflector)
$enumElement->setAttribute("plugin", $plugin);
}

if($typeReflector->isDeprecated())
$enumElement->setAttribute("deprecated", "1");

if(isset($typeReflector->include))
$enumElement->setAttribute("include", implode(',', $typeReflector->include));

Expand Down Expand Up @@ -321,6 +331,9 @@ private function getClassElement(KalturaTypeReflector $typeReflector)
$description = $typeReflector->getDescription();
$description = $this->fixDescription($description);
$classElement->setAttribute("description", $description);

if($typeReflector->isDeprecated())
$classElement->setAttribute("deprecated", "1");

if(isset($typeReflector->include))
$classElement->setAttribute("include", implode(',', $typeReflector->include));
Expand Down Expand Up @@ -379,7 +392,13 @@ private function getClassElement(KalturaTypeReflector $typeReflector)
$description = $property->getDescription();
$description = $this->fixDescription($description);
$propertyElement->setAttribute("description", $description);


foreach($property->getConstraints() as $constraint => $value)
$propertyElement->setAttribute($constraint, $value);

if($property->isDeprecated())
$propertyElement->setAttribute("deprecated", "1");

$classElement->appendChild($propertyElement);
}

Expand All @@ -398,9 +417,16 @@ private function getServiceActionElement(KalturaActionReflector $actionReflector

$actionElement = $this->_doc->createElement("action");
$actionElement->setAttribute("name", $actionReflector->getActionName());

if($actionInfo->deprecated)
$actionElement->setAttribute("deprecated", "1");

if(isset($actionReflector->include))
$actionElement->setAttribute("include", implode(',', $actionReflector->include));

if(isset($actionReflector->exclude))
$actionElement->setAttribute("exclude", implode(',', $actionReflector->exclude));

foreach($actionParams as $actionParam)
{
/* @var $actionParam KalturaParamInfo */
Expand Down
8 changes: 0 additions & 8 deletions api_v3/web/testmeDoc/footer.php

This file was deleted.

52 changes: 0 additions & 52 deletions api_v3/web/testmeDoc/header.php

This file was deleted.

21 changes: 0 additions & 21 deletions api_v3/web/testmeDoc/helpers.php

This file was deleted.

121 changes: 0 additions & 121 deletions api_v3/web/testmeDoc/index.php

This file was deleted.

Loading

0 comments on commit be7cb9c

Please sign in to comment.