Lines Matching refs:attrs

173 	* @param    string $attrs associative array of attributes
176 function schemaStartElement($parser, $name, $attrs) { argument
199 if(count($attrs) > 0){
200 foreach($attrs as $k => $v){
220 foreach($attrs as $k => $v){
226 $attrs = $eAttrs;
228 $attrs = array();
245 $this->appendDebug($this->varDump($attrs));
246 if (!isset($attrs['form'])) {
247 $attrs['form'] = $this->schemaInfo['attributeFormDefault'];
249 if (isset($attrs['http://schemas.xmlsoap.org/wsdl/:arrayType'])) {
255 …$attrs['http://schemas.xmlsoap.org/wsdl/:arrayType'] = $this->defaultNamespace[$pos] . ':' . $attr…
259 if(isset($attrs['name'])){
260 $this->attributes[$attrs['name']] = $attrs;
261 $aname = $attrs['name'];
262 …} elseif(isset($attrs['ref']) && $attrs['ref'] == 'http://schemas.xmlsoap.org/soap/encoding/:array…
264 $aname = $attrs['http://schemas.xmlsoap.org/wsdl/:arrayType'];
274 $this->complexTypes[$this->currentComplexType]['attrs'][$aname] = $attrs;
280 if(isset($attrs['http://schemas.xmlsoap.org/wsdl/:arrayType'])){
299 if(isset($attrs['name'])){
302 $this->xdebug('processing named complexType '.$attrs['name']);
304 $this->currentComplexType = $attrs['name'];
305 $this->complexTypes[$this->currentComplexType] = $attrs;
314 if(isset($attrs['base']) && ereg(':Array$',$attrs['base'])){
325 $this->complexTypes[$this->currentComplexType] = $attrs;
334 if(isset($attrs['base']) && ereg(':Array$',$attrs['base'])){
344 if (!isset($attrs['form'])) {
345 $attrs['form'] = $this->schemaInfo['elementFormDefault'];
347 if(isset($attrs['type'])){
348 $this->xdebug("processing typed element ".$attrs['name']." of type ".$attrs['type']);
349 if (! $this->getPrefix($attrs['type'])) {
351 $attrs['type'] = $this->defaultNamespace[$pos] . ':' . $attrs['type'];
352 $this->xdebug('used default namespace to make type ' . $attrs['type']);
363 $this->xdebug('arrayType for unusual array is ' . $attrs['type']);
364 $this->complexTypes[$this->currentComplexType]['arrayType'] = $attrs['type'];
366 $this->currentElement = $attrs['name'];
367 $ename = $attrs['name'];
368 } elseif(isset($attrs['ref'])){
369 $this->xdebug("processing element as ref to ".$attrs['ref']);
370 $this->currentElement = "ref to ".$attrs['ref'];
371 $ename = $this->getLocalPart($attrs['ref']);
373 $type = $this->CreateTypeName($this->currentComplexType . '_' . $attrs['name']);
374 $this->xdebug("processing untyped element " . $attrs['name'] . ' type ' . $type);
375 $this->currentElement = $attrs['name'];
376 $attrs['type'] = $this->schemaTargetNamespace . ':' . $type;
377 $ename = $attrs['name'];
381 $this->complexTypes[$this->currentComplexType]['elements'][$ename] = $attrs;
382 } elseif (!isset($attrs['ref'])) {
384 $this->elements[ $attrs['name'] ] = $attrs;
385 $this->elements[ $attrs['name'] ]['typeClass'] = 'element';
389 $this->xdebug('enumeration ' . $attrs['value']);
391 $this->simpleTypes[$this->currentSimpleType]['enumeration'][] = $attrs['value'];
393 $this->complexTypes[$this->currentComplexType]['enumeration'][] = $attrs['value'];
397 $this->xdebug('extension ' . $attrs['base']);
399 $this->complexTypes[$this->currentComplexType]['extensionBase'] = $attrs['base'];
403 if (isset($attrs['schemaLocation'])) {
405 …$this->imports[$attrs['namespace']][] = array('location' => $attrs['schemaLocation'], 'loaded' => …
408 … $this->imports[$attrs['namespace']][] = array('location' => '', 'loaded' => true);
409 if (! $this->getPrefixFromNamespace($attrs['namespace'])) {
410 $this->namespaces['ns'.(count($this->namespaces)+1)] = $attrs['namespace'];
417 $this->xdebug('restriction ' . $attrs['base']);
419 $this->simpleTypes[$this->currentSimpleType]['type'] = $attrs['base'];
421 $this->complexTypes[$this->currentComplexType]['restrictionBase'] = $attrs['base'];
422 if(strstr($attrs['base'],':') == ':Array'){
428 $this->schemaInfo = $attrs;
430 if (isset($attrs['targetNamespace'])) {
431 $this->schemaTargetNamespace = $attrs['targetNamespace'];
433 if (!isset($attrs['elementFormDefault'])) {
436 if (!isset($attrs['attributeFormDefault'])) {
444 if(isset($attrs['name'])){
445 $this->xdebug("processing simpleType for name " . $attrs['name']);
446 $this->currentSimpleType = $attrs['name'];
447 $this->simpleTypes[ $attrs['name'] ] = $attrs;
448 $this->simpleTypes[ $attrs['name'] ]['typeClass'] = 'simpleType';
449 $this->simpleTypes[ $attrs['name'] ]['phpType'] = 'scalar';
455 $this->simpleTypes[$this->currentSimpleType] = $attrs;
537 foreach($this->complexTypes as $typeName => $attrs){
540 if(isset($attrs['elements']) && (count($attrs['elements']) > 0)){
541 foreach($attrs['elements'] as $element => $eParts){
556 if (isset($attrs['compositor']) && ($attrs['compositor'] != '')) {
557 …$contentStr = " <$schemaPrefix:$attrs[compositor]>\n".$contentStr." </$schemaPrefix:$attrs[compo…
561 if(isset($attrs['attrs']) && (count($attrs['attrs']) >= 1)){
562 foreach($attrs['attrs'] as $attr => $aParts){
581 …ments']) && count($attrs['elements']) > 0) || (isset($attrs['attrs']) && count($attrs['attrs']) > …
861 * @param attrs = array(
871 …e',$phpType='array',$compositor='',$restrictionBase='',$elements=array(),$attrs=array(),$arrayType… argument
879 'attrs' => $attrs,
915 * @param array $attrs attributes that must include name and type
919 function addElement($attrs) { argument
920 if (! $this->getPrefix($attrs['type'])) {
921 $attrs['type'] = $this->schemaTargetNamespace . ':' . $attrs['type'];
923 $this->elements[ $attrs['name'] ] = $attrs;
924 $this->elements[ $attrs['name'] ]['typeClass'] = 'element';
926 $this->xdebug("addElement " . $attrs['name']);
927 $this->appendDebug($this->varDump($this->elements[ $attrs['name'] ]));