public function addElement($attrs)
    {
        if (!$this->getPrefix($attrs['type'])) {
            $attrs['type'] = $this->schemaTargetNamespace . ':' . $attrs['type'];
        }
        $this->elements[$attrs['name']] = $attrs;
        $this->elements[$attrs['name']]['typeClass'] = 'element';

        $this->xdebug("addElement " . $attrs['name']);
        $this->appendDebug($this->varDump($this->elements[$attrs['name']]));
    }
public function addElement($attrs)
    {
        if (!$this->getPrefix($attrs['type'])) {
            $attrs['type'] = $this->schemaTargetNamespace . ':' . $attrs['type'];
        }
        $this->elements[$attrs['name']] = $attrs;
        $this->elements[$attrs['name']]['typeClass'] = 'element';

        $this->xdebug("addElement " . $attrs['name']);
        $this->appendDebug($this->varDump($this->elements[$attrs['name']]));
    }
public function addElement ( $ attrs ) { if ( ! $ this -> getPrefix ( $ attrs [ 'type' ] ) ) { $ attrs [ 'type' ] = $ this -> schemaTargetNamespace . ':' . $ attrs [ 'type' ] ; } $ this -> elements [ $ attrs [ 'name' ] ] = $ attrs ; $ this -> elements [ $ attrs [ 'name' ] ] [ 'typeClass' ] = 'element' ; $ this -> xdebug ( "addElement " . $ attrs [ 'name' ] ) ; $ this -> appendDebug ( $ this -> varDump ( $ this -> elements [ $ attrs [ 'name' ] ] ) ) ; }
adds an element to the schema

@param array $attrs attributes that must include name and type
@see nusoap_xmlschema
@access public
adds an element to the schema