Exemplo n.º 1
0
 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();
 }
Exemplo n.º 2
0
 /**
  * (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;
                     }
                 }
             }
         }
     }
 }
Exemplo n.º 4
0
 public function __construct()
 {
     parent::__construct();
     $this->_doc = new DOMDocument();
     $this->_doc->formatOutput = true;
 }
Exemplo n.º 5
0
 public function XmlClientGenerator()
 {
     parent::ClientGeneratorFromPhp();
     $this->_doc = new DOMDocument();
     $this->_doc->formatOutput = true;
 }