public function isLocalType($type)
    {
        if (preg_match('/:/', $type)) {
            list($ns, $typeName) = explode(":", $type);
            if ($ns == $this->targetNsPrefix || $ns == $this->xmlSchemaPreffix) {
                return true; // Local type
            } else {
                return false;
            }
        } else {
            // @todo - No namespace - local type
            return true;
        }
    }
public function isLocalType($type)
    {
        if (preg_match('/:/', $type)) {
            list($ns, $typeName) = explode(":", $type);
            if ($ns == $this->targetNsPrefix || $ns == $this->xmlSchemaPreffix) {
                return true; // Local type
            } else {
                return false;
            }
        } else {
            // @todo - No namespace - local type
            return true;
        }
    }
public function isLocalType ( $ type ) { if ( preg_match ( '/:/' , $ type ) ) { list ( $ ns , $ typeName ) = explode ( ":" , $ type ) ; if ( $ ns == $ this -> targetNsPrefix || $ ns == $ this -> xmlSchemaPreffix ) { return true ; // Local type } else { return false ; } } else { // @todo - No namespace - local type return true ; } }
Return true if given type is local, false in case the type is not from xsd or tns namespaces

@param string $type QName type name

@return boolean
Return true if given type is local false in case the type is not from xsd or tns namespaces