Lines Matching refs:attrs

1241 	* @param    string $attrs associative array of attributes
1244 function schemaStartElement($parser, $name, $attrs) { argument
1267 if(count($attrs) > 0){
1268 foreach($attrs as $k => $v){
1288 foreach($attrs as $k => $v){
1294 $attrs = $eAttrs;
1296 $attrs = array();
1313 $this->appendDebug($this->varDump($attrs));
1314 if (!isset($attrs['form'])) {
1315 $attrs['form'] = $this->schemaInfo['attributeFormDefault'];
1317 if (isset($attrs['http://schemas.xmlsoap.org/wsdl/:arrayType'])) {
1323 …$attrs['http://schemas.xmlsoap.org/wsdl/:arrayType'] = $this->defaultNamespace[$pos] . ':' . $attr…
1327 if(isset($attrs['name'])){
1328 $this->attributes[$attrs['name']] = $attrs;
1329 $aname = $attrs['name'];
1330 …} elseif(isset($attrs['ref']) && $attrs['ref'] == 'http://schemas.xmlsoap.org/soap/encoding/:array…
1332 $aname = $attrs['http://schemas.xmlsoap.org/wsdl/:arrayType'];
1342 $this->complexTypes[$this->currentComplexType]['attrs'][$aname] = $attrs;
1348 if(isset($attrs['http://schemas.xmlsoap.org/wsdl/:arrayType'])){
1367 if(isset($attrs['name'])){
1370 $this->xdebug('processing named complexType '.$attrs['name']);
1372 $this->currentComplexType = $attrs['name'];
1373 $this->complexTypes[$this->currentComplexType] = $attrs;
1382 if(isset($attrs['base']) && ereg(':Array$',$attrs['base'])){
1393 $this->complexTypes[$this->currentComplexType] = $attrs;
1402 if(isset($attrs['base']) && ereg(':Array$',$attrs['base'])){
1412 if (!isset($attrs['form'])) {
1413 $attrs['form'] = $this->schemaInfo['elementFormDefault'];
1415 if(isset($attrs['type'])){
1416 $this->xdebug("processing typed element ".$attrs['name']." of type ".$attrs['type']);
1417 if (! $this->getPrefix($attrs['type'])) {
1419 $attrs['type'] = $this->defaultNamespace[$pos] . ':' . $attrs['type'];
1420 $this->xdebug('used default namespace to make type ' . $attrs['type']);
1431 $this->xdebug('arrayType for unusual array is ' . $attrs['type']);
1432 $this->complexTypes[$this->currentComplexType]['arrayType'] = $attrs['type'];
1434 $this->currentElement = $attrs['name'];
1435 $ename = $attrs['name'];
1436 } elseif(isset($attrs['ref'])){
1437 $this->xdebug("processing element as ref to ".$attrs['ref']);
1438 $this->currentElement = "ref to ".$attrs['ref'];
1439 $ename = $this->getLocalPart($attrs['ref']);
1441 $type = $this->CreateTypeName($this->currentComplexType . '_' . $attrs['name']);
1442 $this->xdebug("processing untyped element " . $attrs['name'] . ' type ' . $type);
1443 $this->currentElement = $attrs['name'];
1444 $attrs['type'] = $this->schemaTargetNamespace . ':' . $type;
1445 $ename = $attrs['name'];
1449 $this->complexTypes[$this->currentComplexType]['elements'][$ename] = $attrs;
1450 } elseif (!isset($attrs['ref'])) {
1452 $this->elements[ $attrs['name'] ] = $attrs;
1453 $this->elements[ $attrs['name'] ]['typeClass'] = 'element';
1457 $this->xdebug('enumeration ' . $attrs['value']);
1459 $this->simpleTypes[$this->currentSimpleType]['enumeration'][] = $attrs['value'];
1461 $this->complexTypes[$this->currentComplexType]['enumeration'][] = $attrs['value'];
1465 $this->xdebug('extension ' . $attrs['base']);
1467 $this->complexTypes[$this->currentComplexType]['extensionBase'] = $attrs['base'];
1471 if (isset($attrs['schemaLocation'])) {
1473 …$this->imports[$attrs['namespace']][] = array('location' => $attrs['schemaLocation'], 'loaded' => …
1476 … $this->imports[$attrs['namespace']][] = array('location' => '', 'loaded' => true);
1477 if (! $this->getPrefixFromNamespace($attrs['namespace'])) {
1478 $this->namespaces['ns'.(count($this->namespaces)+1)] = $attrs['namespace'];
1485 $this->xdebug('restriction ' . $attrs['base']);
1487 $this->simpleTypes[$this->currentSimpleType]['type'] = $attrs['base'];
1489 $this->complexTypes[$this->currentComplexType]['restrictionBase'] = $attrs['base'];
1490 if(strstr($attrs['base'],':') == ':Array'){
1496 $this->schemaInfo = $attrs;
1498 if (isset($attrs['targetNamespace'])) {
1499 $this->schemaTargetNamespace = $attrs['targetNamespace'];
1501 if (!isset($attrs['elementFormDefault'])) {
1504 if (!isset($attrs['attributeFormDefault'])) {
1512 if(isset($attrs['name'])){
1513 $this->xdebug("processing simpleType for name " . $attrs['name']);
1514 $this->currentSimpleType = $attrs['name'];
1515 $this->simpleTypes[ $attrs['name'] ] = $attrs;
1516 $this->simpleTypes[ $attrs['name'] ]['typeClass'] = 'simpleType';
1517 $this->simpleTypes[ $attrs['name'] ]['phpType'] = 'scalar';
1523 $this->simpleTypes[$this->currentSimpleType] = $attrs;
1605 foreach($this->complexTypes as $typeName => $attrs){
1608 if(isset($attrs['elements']) && (count($attrs['elements']) > 0)){
1609 foreach($attrs['elements'] as $element => $eParts){
1624 if (isset($attrs['compositor']) && ($attrs['compositor'] != '')) {
1625 …$contentStr = " <$schemaPrefix:$attrs[compositor]>\n".$contentStr." </$schemaPrefix:$attrs[compo…
1629 if(isset($attrs['attrs']) && (count($attrs['attrs']) >= 1)){
1630 foreach($attrs['attrs'] as $attr => $aParts){
1649 …ments']) && count($attrs['elements']) > 0) || (isset($attrs['attrs']) && count($attrs['attrs']) > …
1929 * @param attrs = array(
1939 …e',$phpType='array',$compositor='',$restrictionBase='',$elements=array(),$attrs=array(),$arrayType… argument
1947 'attrs' => $attrs,
1983 * @param array $attrs attributes that must include name and type
1987 function addElement($attrs) { argument
1988 if (! $this->getPrefix($attrs['type'])) {
1989 $attrs['type'] = $this->schemaTargetNamespace . ':' . $attrs['type'];
1991 $this->elements[ $attrs['name'] ] = $attrs;
1992 $this->elements[ $attrs['name'] ]['typeClass'] = 'element';
1994 $this->xdebug("addElement " . $attrs['name']);
1995 $this->appendDebug($this->varDump($this->elements[ $attrs['name'] ]));
4808 * @param string $attrs associative array of attributes
4811 function start_element($parser, $name, $attrs) argument
4814 $this->currentSchema->schemaStartElement($parser, $name, $attrs);
4822 $this->currentSchema->schemaStartElement($parser, $name, $attrs);
4833 if (count($attrs) > 0) {
4835 foreach($attrs as $k => $v) {
4849 foreach($attrs as $k => $v) {
4856 $attrs = $eAttrs;
4858 $attrs = array();
4874 if (isset($attrs['type'])) {
4875 …"msg " . $this->currentMessage . ": found part (with type) $attrs[name]: " . implode(',', $attrs));
4876 $this->messages[$this->currentMessage][$attrs['name']] = $attrs['type'];
4878 if (isset($attrs['element'])) {
4879 …g " . $this->currentMessage . ": found part (with element) $attrs[name]: " . implode(',', $attrs));
4880 $this->messages[$this->currentMessage][$attrs['name']] = $attrs['element'] . '^';
4887 $this->currentPortOperation = $attrs['name'];
4889 if (isset($attrs['parameterOrder'])) {
4890 …$this->portTypes[$this->currentPortType][$attrs['name']]['parameterOrder'] = $attrs['parameterOrde…
4898 $m = isset($attrs['message']) ? $this->getLocalPart($attrs['message']) : '';
4907 if (isset($attrs['style'])) {
4910 …his->bindings[$this->currentBinding] = array_merge($this->bindings[$this->currentBinding], $attrs);
4913 …his->currentBinding]['operations'][$this->currentOperation][$this->opStatus]['headers'][] = $attrs;
4916 if (isset($attrs['soapAction'])) {
4917 …$this->currentBinding]['operations'][$this->currentOperation]['soapAction'] = $attrs['soapAction'];
4919 if (isset($attrs['style'])) {
4920 …>bindings[$this->currentBinding]['operations'][$this->currentOperation]['style'] = $attrs['style'];
4922 if (isset($attrs['name'])) {
4923 $this->currentOperation = $attrs['name'];
4925 …s->bindings[$this->currentBinding]['operations'][$this->currentOperation]['name'] = $attrs['name'];
4938 …->bindings[$this->currentBinding]['operations'][$this->currentOperation][$this->opStatus], $attrs);
4940 …->bindings[$this->currentBinding]['operations'][$this->currentOperation][$this->opStatus] = $attrs;
4948 $this->currentPort = $attrs['name'];
4950 $this->ports[$this->currentPort]['binding'] = $this->getLocalPart($attrs['binding']);
4954 $this->ports[$this->currentPort]['location'] = $attrs['location'];
4957 … $this->bindings[ $this->ports[$this->currentPort]['binding'] ]['endpoint'] = $attrs['location'];
4965 if (isset($attrs['location'])) {
4966 … $this->import[$attrs['namespace']][] = array('location' => $attrs['location'], 'loaded' => false);
4967 …$this->debug('parsing import ' . $attrs['namespace']. ' - ' . $attrs['location'] . ' (' . count($t…
4969 … $this->import[$attrs['namespace']][] = array('location' => '', 'loaded' => true);
4970 if (! $this->getPrefixFromNamespace($attrs['namespace'])) {
4971 $this->namespaces['ns'.(count($this->namespaces)+1)] = $attrs['namespace'];
4973 …$this->debug('parsing import ' . $attrs['namespace']. ' - [no location] (' . count($this->import[$
4982 $this->messages[$attrs['name']] = array();
4983 $this->currentMessage = $attrs['name'];
4987 $this->portTypes[$attrs['name']] = array();
4988 $this->currentPortType = $attrs['name'];
4991 if (isset($attrs['name'])) {
4993 if (strpos($attrs['name'], ':')) {
4994 $this->currentBinding = $this->getLocalPart($attrs['name']);
4996 $this->currentBinding = $attrs['name'];
4999 $this->bindings[$this->currentBinding]['portType'] = $this->getLocalPart($attrs['type']);
5000 $this->debug("current binding: $this->currentBinding of portType: " . $attrs['type']);
5004 $this->serviceName = $attrs['name'];
5009 foreach ($attrs as $name => $value) {
5467 foreach($this->bindings as $bindingName => $attrs) {
5468 … $binding_xml .= "\n<binding name=\"" . $bindingName . '" type="tns:' . $attrs['portType'] . '">';
5469 …$binding_xml .= "\n" . ' <soap:binding style="' . $attrs['style'] . '" transport="' . $attrs['tra…
5470 $portType_xml .= "\n<portType name=\"" . $attrs['portType'] . '">';
5471 foreach($attrs['operations'] as $opName => $opParts) {
5507 foreach($this->ports as $pName => $attrs) {
5508 $xml .= "\n" . ' <port name="' . $pName . '" binding="tns:' . $attrs['binding'] . '">';
5509 …$xml .= "\n" . ' <soap:address location="' . $attrs['location'] . ($debug ? '?debug=1' : '') . …
5576 foreach ($typeDef['elements'] as $name => $attrs) {
6127 foreach ($typeDef['attrs'] as $aName => $attrs) {
6134 } elseif (isset($attrs['default'])) {
6136 $xvalue[$xname] = $attrs['default'];
6193 foreach ($typeDef['elements'] as $eName => $attrs) {
6195 if (isset($attrs['default'])) {
6196 $xvalue[$eName] = $attrs['default'];
6203 && ( (!isset($attrs['nillable'])) || $attrs['nillable'] != 'true')
6205 if (isset($attrs['minOccurs']) && $attrs['minOccurs'] <> '0') {
6206 …$this->debug("apparent error: no value provided for element $eName with minOccurs=" . $attrs['minO…
6217 if (isset($attrs['form'])) {
6218 $unqualified = ($attrs['form'] == 'unqualified');
6222 …if (isset($attrs['maxOccurs']) && ($attrs['maxOccurs'] == 'unbounded' || $attrs['maxOccurs'] > 1) …
6225 if (isset($attrs['type']) || isset($attrs['ref'])) {
6227 …$xml .= $this->serializeType($eName, isset($attrs['type']) ? $attrs['type'] : $attrs['ref'], $v, $…
6235 if (isset($attrs['type']) || isset($attrs['ref'])) {
6237 …$xml .= $this->serializeType($eName, isset($attrs['type']) ? $attrs['type'] : $attrs['ref'], $v, $…
6274 …* @param array $attrs e.g. array(array('ref'=>'SOAP-ENC:arrayType','wsdl:arrayType'=>'xsd:string[]…
6279 …e',$phpType='array',$compositor='',$restrictionBase='',$elements=array(),$attrs=array(),$arrayType… argument
6295 if (count($attrs) > 0) {
6296 foreach($attrs as $n => $a){
6305 $attrs = $eAttrs;
6312 …addComplexType($name,$typeClass,$phpType,$compositor,$restrictionBase,$elements,$attrs,$arrayType);
6336 * @param array $attrs attributes that must include name and type
6340 function addElement($attrs) { argument
6342 $this->schemas[$typens][0]->addElement($attrs);
6581 * @param array $attrs associative array of attributes
6584 function start_element($parser, $name, $attrs) { argument
6633 $this->message[$pos]['attrs'] = $attrs;
6637 foreach($attrs as $key => $value){
6663 } else if(isset($attrs['xmlns:'.$value_prefix])) {
6664 $this->message[$pos]['type_namespace'] = $attrs['xmlns:'.$value_prefix];
6684 } else if (isset($attrs['xmlns:'.$regs[1]])) {
6685 $this->message[$pos]['arrayTypeNamespace'] = $attrs['xmlns:'.$regs[1]];