Lines Matching refs:attrs

1145 	* @param    string $attrs associative array of attributes
1148 function schemaStartElement($parser, $name, $attrs) { argument
1171 if(count($attrs) > 0){
1172 foreach($attrs as $k => $v){
1192 foreach($attrs as $k => $v){
1198 $attrs = $eAttrs;
1200 $attrs = array();
1217 $this->appendDebug($this->varDump($attrs));
1218 if (!isset($attrs['form'])) {
1219 $attrs['form'] = $this->schemaInfo['attributeFormDefault'];
1221 if (isset($attrs['http://schemas.xmlsoap.org/wsdl/:arrayType'])) {
1227 …$attrs['http://schemas.xmlsoap.org/wsdl/:arrayType'] = $this->defaultNamespace[$pos] . ':' . $attr…
1231 if(isset($attrs['name'])){
1232 $this->attributes[$attrs['name']] = $attrs;
1233 $aname = $attrs['name'];
1234 …} elseif(isset($attrs['ref']) && $attrs['ref'] == 'http://schemas.xmlsoap.org/soap/encoding/:array…
1236 $aname = $attrs['http://schemas.xmlsoap.org/wsdl/:arrayType'];
1246 $this->complexTypes[$this->currentComplexType]['attrs'][$aname] = $attrs;
1252 if(isset($attrs['http://schemas.xmlsoap.org/wsdl/:arrayType'])){
1271 if(isset($attrs['name'])){
1272 $this->xdebug('processing named complexType '.$attrs['name']);
1274 $this->currentComplexType = $attrs['name'];
1275 $this->complexTypes[$this->currentComplexType] = $attrs;
1284 if(isset($attrs['base']) && ereg(':Array$',$attrs['base'])){
1294 $this->complexTypes[$this->currentComplexType] = $attrs;
1303 if(isset($attrs['base']) && ereg(':Array$',$attrs['base'])){
1316 if (!isset($attrs['form'])) {
1317 $attrs['form'] = $this->schemaInfo['elementFormDefault'];
1319 if(isset($attrs['type'])){
1320 $this->xdebug("processing typed element ".$attrs['name']." of type ".$attrs['type']);
1321 if (! $this->getPrefix($attrs['type'])) {
1323 $attrs['type'] = $this->defaultNamespace[$pos] . ':' . $attrs['type'];
1324 $this->xdebug('used default namespace to make type ' . $attrs['type']);
1335 $this->xdebug('arrayType for unusual array is ' . $attrs['type']);
1336 $this->complexTypes[$this->currentComplexType]['arrayType'] = $attrs['type'];
1338 $this->currentElement = $attrs['name'];
1339 $this->elements[ $attrs['name'] ] = $attrs;
1340 $this->elements[ $attrs['name'] ]['typeClass'] = 'element';
1341 $ename = $attrs['name'];
1342 } elseif(isset($attrs['ref'])){
1343 $this->xdebug("processing element as ref to ".$attrs['ref']);
1344 $this->currentElement = "ref to ".$attrs['ref'];
1345 $ename = $this->getLocalPart($attrs['ref']);
1347 $this->xdebug("processing untyped element ".$attrs['name']);
1348 $this->currentElement = $attrs['name'];
1349 $this->elements[ $attrs['name'] ] = $attrs;
1350 $this->elements[ $attrs['name'] ]['typeClass'] = 'element';
1351 $attrs['type'] = $this->schemaTargetNamespace . ':' . $attrs['name'] . '_ContainedType';
1352 $this->elements[ $attrs['name'] ]['type'] = $attrs['type'];
1353 $ename = $attrs['name'];
1356 $this->complexTypes[$this->currentComplexType]['elements'][$ename] = $attrs;
1360 $this->xdebug('enumeration ' . $attrs['value']);
1362 $this->simpleTypes[$this->currentSimpleType]['enumeration'][] = $attrs['value'];
1364 $this->complexTypes[$this->currentComplexType]['enumeration'][] = $attrs['value'];
1368 $this->xdebug('extension ' . $attrs['base']);
1370 $this->complexTypes[$this->currentComplexType]['extensionBase'] = $attrs['base'];
1374 if (isset($attrs['schemaLocation'])) {
1376 …$this->imports[$attrs['namespace']][] = array('location' => $attrs['schemaLocation'], 'loaded' => …
1379 … $this->imports[$attrs['namespace']][] = array('location' => '', 'loaded' => true);
1380 if (! $this->getPrefixFromNamespace($attrs['namespace'])) {
1381 $this->namespaces['ns'.(count($this->namespaces)+1)] = $attrs['namespace'];
1388 $this->xdebug('restriction ' . $attrs['base']);
1390 $this->simpleTypes[$this->currentSimpleType]['type'] = $attrs['base'];
1392 $this->complexTypes[$this->currentComplexType]['restrictionBase'] = $attrs['base'];
1393 if(strstr($attrs['base'],':') == ':Array'){
1399 $this->schemaInfo = $attrs;
1401 if (isset($attrs['targetNamespace'])) {
1402 $this->schemaTargetNamespace = $attrs['targetNamespace'];
1404 if (!isset($attrs['elementFormDefault'])) {
1407 if (!isset($attrs['attributeFormDefault'])) {
1415 if(isset($attrs['name'])){
1416 $this->xdebug("processing simpleType for name " . $attrs['name']);
1417 $this->currentSimpleType = $attrs['name'];
1418 $this->simpleTypes[ $attrs['name'] ] = $attrs;
1419 $this->simpleTypes[ $attrs['name'] ]['typeClass'] = 'simpleType';
1420 $this->simpleTypes[ $attrs['name'] ]['phpType'] = 'scalar';
1425 $this->simpleTypes[$this->currentSimpleType] = $attrs;
1507 foreach($this->complexTypes as $typeName => $attrs){
1510 if(isset($attrs['elements']) && (count($attrs['elements']) > 0)){
1511 foreach($attrs['elements'] as $element => $eParts){
1526 if (isset($attrs['compositor']) && ($attrs['compositor'] != '')) {
1527 …$contentStr = " <$schemaPrefix:$attrs[compositor]>\n".$contentStr." </$schemaPrefix:$attrs[compo…
1531 if(isset($attrs['attrs']) && (count($attrs['attrs']) >= 1)){
1532 foreach($attrs['attrs'] as $attr => $aParts){
1551 …ments']) && count($attrs['elements']) > 0) || (isset($attrs['attrs']) && count($attrs['attrs']) > …
1725 foreach($attrs as $attName => $data){
1818 * @param attrs = array(
1828 …e',$phpType='array',$compositor='',$restrictionBase='',$elements=array(),$attrs=array(),$arrayType… argument
1836 'attrs' => $attrs,
1872 * @param array $attrs attributes that must include name and type
1876 function addElement($attrs) { argument
1877 if (! $this->getPrefix($attrs['type'])) {
1878 $attrs['type'] = $this->schemaTargetNamespace . ':' . $attrs['type'];
1880 $this->elements[ $attrs['name'] ] = $attrs;
1881 $this->elements[ $attrs['name'] ]['typeClass'] = 'element';
1883 $this->xdebug("addElement " . $attrs['name']);
1884 $this->appendDebug($this->varDump($this->elements[ $attrs['name'] ]));
4330 * @param string $attrs associative array of attributes
4333 function start_element($parser, $name, $attrs) argument
4336 $this->currentSchema->schemaStartElement($parser, $name, $attrs);
4344 $this->currentSchema->schemaStartElement($parser, $name, $attrs);
4355 if (count($attrs) > 0) {
4357 foreach($attrs as $k => $v) {
4371 foreach($attrs as $k => $v) {
4378 $attrs = $eAttrs;
4380 $attrs = array();
4396 if (isset($attrs['type'])) {
4397 …this->debug("msg " . $this->currentMessage . ": found part $attrs[name]: " . implode(',', $attrs));
4398 $this->messages[$this->currentMessage][$attrs['name']] = $attrs['type'];
4400 if (isset($attrs['element'])) {
4401 …this->debug("msg " . $this->currentMessage . ": found part $attrs[name]: " . implode(',', $attrs));
4402 $this->messages[$this->currentMessage][$attrs['name']] = $attrs['element'];
4409 $this->currentPortOperation = $attrs['name'];
4411 if (isset($attrs['parameterOrder'])) {
4412 …$this->portTypes[$this->currentPortType][$attrs['name']]['parameterOrder'] = $attrs['parameterOrde…
4420 $m = isset($attrs['message']) ? $this->getLocalPart($attrs['message']) : '';
4429 if (isset($attrs['style'])) {
4432 …his->bindings[$this->currentBinding] = array_merge($this->bindings[$this->currentBinding], $attrs);
4435 …his->currentBinding]['operations'][$this->currentOperation][$this->opStatus]['headers'][] = $attrs;
4438 if (isset($attrs['soapAction'])) {
4439 …$this->currentBinding]['operations'][$this->currentOperation]['soapAction'] = $attrs['soapAction'];
4441 if (isset($attrs['style'])) {
4442 …>bindings[$this->currentBinding]['operations'][$this->currentOperation]['style'] = $attrs['style'];
4444 if (isset($attrs['name'])) {
4445 $this->currentOperation = $attrs['name'];
4447 …s->bindings[$this->currentBinding]['operations'][$this->currentOperation]['name'] = $attrs['name'];
4460 …->bindings[$this->currentBinding]['operations'][$this->currentOperation][$this->opStatus], $attrs);
4462 …->bindings[$this->currentBinding]['operations'][$this->currentOperation][$this->opStatus] = $attrs;
4470 $this->currentPort = $attrs['name'];
4472 $this->ports[$this->currentPort]['binding'] = $this->getLocalPart($attrs['binding']);
4476 $this->ports[$this->currentPort]['location'] = $attrs['location'];
4479 … $this->bindings[ $this->ports[$this->currentPort]['binding'] ]['endpoint'] = $attrs['location'];
4487 if (isset($attrs['location'])) {
4488 … $this->import[$attrs['namespace']][] = array('location' => $attrs['location'], 'loaded' => false);
4489 …$this->debug('parsing import ' . $attrs['namespace']. ' - ' . $attrs['location'] . ' (' . count($t…
4491 … $this->import[$attrs['namespace']][] = array('location' => '', 'loaded' => true);
4492 if (! $this->getPrefixFromNamespace($attrs['namespace'])) {
4493 $this->namespaces['ns'.(count($this->namespaces)+1)] = $attrs['namespace'];
4495 …$this->debug('parsing import ' . $attrs['namespace']. ' - [no location] (' . count($this->import[$
4504 $this->messages[$attrs['name']] = array();
4505 $this->currentMessage = $attrs['name'];
4509 $this->portTypes[$attrs['name']] = array();
4510 $this->currentPortType = $attrs['name'];
4513 if (isset($attrs['name'])) {
4515 if (strpos($attrs['name'], ':')) {
4516 $this->currentBinding = $this->getLocalPart($attrs['name']);
4518 $this->currentBinding = $attrs['name'];
4521 $this->bindings[$this->currentBinding]['portType'] = $this->getLocalPart($attrs['type']);
4522 $this->debug("current binding: $this->currentBinding of portType: " . $attrs['type']);
4526 $this->serviceName = $attrs['name'];
4531 foreach ($attrs as $name => $value) {
4688 * 'attrs' => array() // refs to attributes array
4725 if (isset($etype['attrs'])) {
4726 $t['attrs'] = $etype['attrs'];
4953 foreach($this->bindings as $bindingName => $attrs) {
4954 … $binding_xml .= "\n<binding name=\"" . $bindingName . '" type="tns:' . $attrs['portType'] . '">';
4955 …$binding_xml .= '<soap:binding style="' . $attrs['style'] . '" transport="' . $attrs['transport'] …
4956 $portType_xml .= "\n<portType name=\"" . $attrs['portType'] . '">';
4957 foreach($attrs['operations'] as $opName => $opParts) {
4993 foreach($this->ports as $pName => $attrs) {
4994 $xml .= '<port name="' . $pName . '" binding="tns:' . $attrs['binding'] . '">';
4995 $xml .= '<soap:address location="' . $attrs['location'] . ($debug ? '?debug=1' : '') . '"/>';
5483 foreach ($typeDef['attrs'] as $aName => $attrs) {
5490 } elseif (isset($attrs['default'])) {
5492 $xvalue[$xname] = $attrs['default'];
5549 foreach ($typeDef['elements'] as $eName => $attrs) {
5551 if (isset($attrs['default'])) {
5552 $xvalue[$eName] = $attrs['default'];
5559 && ( (!isset($attrs['nillable'])) || $attrs['nillable'] != 'true')
5561 if (isset($attrs['minOccurs']) && $attrs['minOccurs'] <> '0') {
5562 …$this->debug("apparent error: no value provided for element $eName with minOccurs=" . $attrs['minO…
5573 if (isset($attrs['form'])) {
5574 $unqualified = ($attrs['form'] == 'unqualified');
5578 …if (isset($attrs['maxOccurs']) && ($attrs['maxOccurs'] == 'unbounded' || $attrs['maxOccurs'] > 1) …
5581 if (isset($attrs['type']) || isset($attrs['ref'])) {
5583 …$xml .= $this->serializeType($eName, isset($attrs['type']) ? $attrs['type'] : $attrs['ref'], $v, $…
5591 if (isset($attrs['type']) || isset($attrs['ref'])) {
5593 …$xml .= $this->serializeType($eName, isset($attrs['type']) ? $attrs['type'] : $attrs['ref'], $v, $…
5635 …e',$phpType='array',$compositor='',$restrictionBase='',$elements=array(),$attrs=array(),$arrayType… argument
5649 if (count($attrs) > 0) {
5650 foreach($attrs as $n => $a){
5659 $attrs = $eAttrs;
5666 …addComplexType($name,$typeClass,$phpType,$compositor,$restrictionBase,$elements,$attrs,$arrayType);
5690 * @param array $attrs attributes that must include name and type
5694 function addElement($attrs) { argument
5696 $this->schemas[$typens][0]->addElement($attrs);
5933 * @param array $attrs associative array of attributes
5936 function start_element($parser, $name, $attrs) { argument
5985 $this->message[$pos]['attrs'] = $attrs;
5989 foreach($attrs as $key => $value){
6012 } else if(isset($attrs['xmlns:'.$value_prefix])) {
6013 $this->message[$pos]['type_namespace'] = $attrs['xmlns:'.$value_prefix];
6032 } else if (isset($attrs['xmlns:'.$regs[1]])) {
6033 $this->message[$pos]['arrayTypeNamespace'] = $attrs['xmlns:'.$regs[1]];