/** * Constructor * * @param string $name The name * @param PhpWsdlElement[] $el Optional a list of elements * @param array $settings Optional the settings hash array (default: NULL) */ public function PhpWsdlComplex($name, $el = array(), $settings = null) { PhpWsdl::Debug('New complex type ' . $name); parent::PhpWsdlObject($name, $settings); if (!self::$DisableArrayPostfix) { $this->IsArray = substr($name, strlen($name) - 5, 5) == 'Array'; if ($this->IsArray) { $this->Type = substr($this->Name, 0, strlen($this->Name) - 5); } } $this->Elements = $el; $this->EnablePhpConstructor = self::$DefaultEnablePhpConstructor; if (!is_null($settings)) { if (isset($settings['isarray'])) { $this->IsArray = $settings['isarray']; } if (isset($settings['phpconstructor'])) { $this->EnablePhpConstructor = $settings['phpconstructor'] == '1' || $settings['phpconstructor'] == 'true'; } if (isset($settings['type'])) { $this->IsArray = $settings['type']; } if (isset($settings['inherit'])) { $this->Inherit = $settings['inherit']; } } }
/** * Constructor * * @param string $name The name * @param string $type The type name * @param array $el Optional a list of elements * @param array $settings Optional the settings hash array (default: NULL) */ public function PhpWsdlEnum($name, $type, $el = array(), $settings = null) { PhpWsdl::Debug('New enumeration type ' . $name . ' of ' . $type); if ($type == 'boolean') { throw new Exception('Boolean enumeration type is not valid'); } parent::PhpWsdlObject($name, $settings); $this->Type = $type; $this->Elements = $el; }
/** * Constructor * * @param string $name The name * @param PhpWsdlParam[] $param Optional the list of parameters (default: NULL) * @param PhpWsdlParam $return Optional the return value (default: NULL) * @param array $settings Optional the settings hash array (default: NULL) */ public function PhpWsdlMethod($name, $param = null, $return = null, $settings = null) { PhpWsdl::Debug('New method ' . $name); parent::PhpWsdlObject($name, $settings); if (!is_null($param)) { $this->Param = $param; } $this->Return = $return; $this->IsGlobal = self::$IsGlobalDefault; if (!is_null($settings)) { if (isset($settings['global'])) { $this->IsGlobal = $settings['global'] == 'true' || $settings['global'] == '1'; } } }
/** * Constructor * * @param string $name The name * @param PhpWsdlElement[] $el Optional a list of elements * @param array $settings Optional the settings hash array (default: NULL) */ public function PhpWsdlComplex($name, $el = array(), $settings = null) { PhpWsdl::Debug('New complex type ' . $name); parent::PhpWsdlObject($name, $settings); if (!self::$DisableArrayPostfix) { $this->IsArray = substr($name, strlen($name) - 5, 5) == 'Array'; if ($this->IsArray) { $this->Type = substr($this->Name, 0, strlen($this->Name) - 5); } } $this->Elements = $el; if (!is_null($settings)) { if (isset($settings['isarray'])) { $this->IsArray = $settings['isarray']; } } }
/** * Constructor * * @param string $name The name * @param string $type Optional the type name (default: string) * @param array $settings Optional the settings hash array (default: NULL) */ public function PhpWsdlParam($name, $type = 'string', $settings = null) { PhpWsdl::Debug('New parameter ' . $name); parent::PhpWsdlObject($name, $settings); $this->Type = $type; }