Lines Matching refs:attrs

296      * @param string $attrs associative array of attributes
299 function start_element($parser, $name, $attrs) argument
302 $this->currentSchema->schemaStartElement($parser, $name, $attrs);
310 $this->currentSchema->schemaStartElement($parser, $name, $attrs);
321 if (count($attrs) > 0) {
323 foreach($attrs as $k => $v) {
337 foreach($attrs as $k => $v) {
344 $attrs = $eAttrs;
346 $attrs = array();
362 if (isset($attrs['type'])) {
363 …"msg " . $this->currentMessage . ": found part (with type) $attrs[name]: " . implode(',', $attrs));
364 $this->messages[$this->currentMessage][$attrs['name']] = $attrs['type'];
366 if (isset($attrs['element'])) {
367 …g " . $this->currentMessage . ": found part (with element) $attrs[name]: " . implode(',', $attrs));
368 $this->messages[$this->currentMessage][$attrs['name']] = $attrs['element'] . '^';
375 $this->currentPortOperation = $attrs['name'];
377 if (isset($attrs['parameterOrder'])) {
378 …$this->portTypes[$this->currentPortType][$attrs['name']]['parameterOrder'] = $attrs['parameterOrde…
386 $m = isset($attrs['message']) ? $this->getLocalPart($attrs['message']) : '';
395 if (isset($attrs['style'])) {
398 …his->bindings[$this->currentBinding] = array_merge($this->bindings[$this->currentBinding], $attrs);
401 …his->currentBinding]['operations'][$this->currentOperation][$this->opStatus]['headers'][] = $attrs;
404 if (isset($attrs['soapAction'])) {
405 …$this->currentBinding]['operations'][$this->currentOperation]['soapAction'] = $attrs['soapAction'];
407 if (isset($attrs['style'])) {
408 …>bindings[$this->currentBinding]['operations'][$this->currentOperation]['style'] = $attrs['style'];
410 if (isset($attrs['name'])) {
411 $this->currentOperation = $attrs['name'];
413 …s->bindings[$this->currentBinding]['operations'][$this->currentOperation]['name'] = $attrs['name'];
426 …->bindings[$this->currentBinding]['operations'][$this->currentOperation][$this->opStatus], $attrs);
428 …->bindings[$this->currentBinding]['operations'][$this->currentOperation][$this->opStatus] = $attrs;
436 $this->currentPort = $attrs['name'];
438 $this->ports[$this->currentPort]['binding'] = $this->getLocalPart($attrs['binding']);
442 $this->ports[$this->currentPort]['location'] = $attrs['location'];
445 … $this->bindings[ $this->ports[$this->currentPort]['binding'] ]['endpoint'] = $attrs['location'];
453 if (isset($attrs['location'])) {
454 … $this->import[$attrs['namespace']][] = array('location' => $attrs['location'], 'loaded' => false);
455 …$this->debug('parsing import ' . $attrs['namespace']. ' - ' . $attrs['location'] . ' (' . count($t…
457 … $this->import[$attrs['namespace']][] = array('location' => '', 'loaded' => true);
458 if (! $this->getPrefixFromNamespace($attrs['namespace'])) {
459 $this->namespaces['ns'.(count($this->namespaces)+1)] = $attrs['namespace'];
461 …$this->debug('parsing import ' . $attrs['namespace']. ' - [no location] (' . count($this->import[$
470 $this->messages[$attrs['name']] = array();
471 $this->currentMessage = $attrs['name'];
475 $this->portTypes[$attrs['name']] = array();
476 $this->currentPortType = $attrs['name'];
479 if (isset($attrs['name'])) {
481 if (strpos($attrs['name'], ':')) {
482 $this->currentBinding = $this->getLocalPart($attrs['name']);
484 $this->currentBinding = $attrs['name'];
487 $this->bindings[$this->currentBinding]['portType'] = $this->getLocalPart($attrs['type']);
488 $this->debug("current binding: $this->currentBinding of portType: " . $attrs['type']);
492 $this->serviceName = $attrs['name'];
497 foreach ($attrs as $name => $value) {
955 foreach($this->bindings as $bindingName => $attrs) {
956 … $binding_xml .= "\n<binding name=\"" . $bindingName . '" type="tns:' . $attrs['portType'] . '">';
957 …$binding_xml .= "\n" . ' <soap:binding style="' . $attrs['style'] . '" transport="' . $attrs['tra…
958 $portType_xml .= "\n<portType name=\"" . $attrs['portType'] . '">';
959 foreach($attrs['operations'] as $opName => $opParts) {
995 foreach($this->ports as $pName => $attrs) {
996 $xml .= "\n" . ' <port name="' . $pName . '" binding="tns:' . $attrs['binding'] . '">';
997 …$xml .= "\n" . ' <soap:address location="' . $attrs['location'] . ($debug ? '?debug=1' : '') . …
1064 foreach ($typeDef['elements'] as $name => $attrs) {
1596 foreach ($typeDef['attrs'] as $aName => $attrs) {
1603 } elseif (isset($attrs['default'])) {
1605 $xvalue[$xname] = $attrs['default'];
1662 foreach ($typeDef['elements'] as $eName => $attrs) {
1664 if (isset($attrs['default'])) {
1665 $xvalue[$eName] = $attrs['default'];
1672 && ( (!isset($attrs['nillable'])) || $attrs['nillable'] != 'true')
1674 if (isset($attrs['minOccurs']) && $attrs['minOccurs'] <> '0') {
1675 …$this->debug("apparent error: no value provided for element $eName with minOccurs=" . $attrs['minO…
1686 if (isset($attrs['form'])) {
1687 $unqualified = ($attrs['form'] == 'unqualified');
1691 …if (isset($attrs['maxOccurs']) && ($attrs['maxOccurs'] == 'unbounded' || $attrs['maxOccurs'] > 1) …
1694 if (isset($attrs['type']) || isset($attrs['ref'])) {
1696 …$xml .= $this->serializeType($eName, isset($attrs['type']) ? $attrs['type'] : $attrs['ref'], $v, $…
1704 if (isset($attrs['type']) || isset($attrs['ref'])) {
1706 …$xml .= $this->serializeType($eName, isset($attrs['type']) ? $attrs['type'] : $attrs['ref'], $v, $…
1743 …* @param array $attrs e.g. array(array('ref'=>'SOAP-ENC:arrayType','wsdl:arrayType'=>'xsd:string[]…
1748 …e',$phpType='array',$compositor='',$restrictionBase='',$elements=array(),$attrs=array(),$arrayType… argument
1764 if (count($attrs) > 0) {
1765 foreach($attrs as $n => $a){
1774 $attrs = $eAttrs;
1781 …addComplexType($name,$typeClass,$phpType,$compositor,$restrictionBase,$elements,$attrs,$arrayType);
1805 * @param array $attrs attributes that must include name and type
1809 function addElement($attrs) { argument
1811 $this->schemas[$typens][0]->addElement($attrs);