public function generate() { parent::generate(); $this->load(); $this->writeBeforeServices(); foreach ($this->_services as $serviceReflector) { $this->writeBeforeService($serviceReflector); $this->writeService($serviceReflector); $this->writeAfterService($serviceReflector); } $this->writeAfterServices(); }
/** * (non-PHPdoc) * @see ClientGeneratorFromPhp::generate() */ public function generate() { parent::generate(); foreach ($this->_services as $serviceId => $serviceActionItem) { /* @var $serviceActionItem KalturaServiceActionItem */ if ($serviceActionItem->serviceInfo->deprecated) { continue; } $this->writeBeforeService($serviceActionItem); $this->writeService($serviceActionItem); $this->writeAfterService($serviceActionItem); } }
public function load() { parent::load(); foreach ($this->_types as $type) { if ($type->isEnum()) { $this->_enums[$type->getType()] = $type; } else { if ($type->isStringEnum()) { $this->_stringEnums[$type->getType()] = $type; } else { if ($type->isArray()) { $this->_arrays[$type->getType()] = $type; } else { if (strpos($type->getType(), "Filter", strlen($type->getType()) - 6)) { $this->_filters[$type->getType()] = $type; } else { $this->_objects[$type->getType()] = $type; } } } } } }
public function __construct() { parent::__construct(); $this->_doc = new DOMDocument(); $this->_doc->formatOutput = true; }
public function XmlClientGenerator() { parent::ClientGeneratorFromPhp(); $this->_doc = new DOMDocument(); $this->_doc->formatOutput = true; }