default
[ class tree: default ] [ index: default ] [ all elements ]

Class: Common

Source Location: /mikebevz/xsd2php/Common.php

Class Overview


Common data


Author(s):

Version:

  • 0.0.1

Variables

Methods


Child classes:

Bind
Bind XML to PHP binding
Php2Xml
PHP to XML converter
PHPClass
PHP Class representation
Wsdl
Common data
Xsd2Php
Generate PHP classes based on XSD schema

Class Details

[line 28]
Common data



Tags:

author:  Mike Bevz <myb@mikebevz.com>
version:  0.0.1


[ Top ]


Class Variables

$basicTypes = array('decimal', 'base64Binary', 'normalizedString', 
                                'dateTime', 'date', 'boolean',
                                'positiveInteger', 'anySimpleType',
                                'anyURI', 'byte', 'double', 'duration', 
                                //'ENTITIES', 'ENTITY', - not sure about those
                                'float', 'gDay', 'gMonth', 'gMonthDay', 'gYear', 'gYearMonth',
                                'hexBinary', 
                                //'ID', 'IDREFS', 'IDREF', - not sure 
                                'int', 'integer', 'language', 'long',
                                'negativeInteger', 'nonPositiveInteger', 'nonNegativeInteger',
                                //'Name', 'NSName', 'NMTOKEN', 'NMTOKENS', 'NOTATION',
                                'QName', 'short', 'string', 'time', 'token',
                                'unsignedByte', 'unsignedInt', 'unsignedLong', 'unsignedShort'
                                )

[line 32]



Tags:

access:  public

Type:   mixed


[ Top ]

$debug =  false

[line 73]



Tags:

access:  public

Type:   mixed


[ Top ]

$dom =

[line 79]

Dom document



Tags:

access:  public

Type:   DOMDocument


[ Top ]

$lastNsKey =  0

[line 71]



Tags:

access:  public

Type:   mixed


[ Top ]

$namespaces =  null

[line 69]



Tags:

access:  public

Type:   mixed


[ Top ]

$phpTypes = array(
        'int', 'integer', 'float', 'string', 'boolean', 'bool', 'object'
    )

[line 47]



Tags:

access:  public

Type:   mixed


[ Top ]

$reservedWords = array (
        'and', 'or', 'xor', '__FILE__', 'exception',
        '__LINE__', 'array', 'as', 'break', 'case',
        'class', 'const', 'continue', 'declare', 'default',
        'die', 'do', 'echo', 'else', 'elseif',
        'empty', 'enddeclare', 'endfor', 'endforeach', 'endif',
        'endswitch', 'endwhile', 'eval', 'exit', 'extends',
        'for', 'foreach', 'function', 'global', 'if',
        'include', 'include_once', 'isset', 'list', 'new',
        'print', 'require', 'require_once', 'return', 'static',
        'switch', 'unset', 'use', 'var', 'while', 
        '__FUNCTION__', '__CLASS__', '__METHOD__', 'final', 'php_user_filter',
        'interface', 'implements', 'instanceof', 'public', 'private',
        'protected', 'abstract', 'clone', 'try', 'catch',
        'throw', 'this', 'final', '__NAMESPACE__', 'namespace', 'goto',
        '__DIR__'
    )

[line 51]



Tags:

access:  public

Type:   mixed


[ Top ]



Class Methods


method getDocNamespaces [line 81]

void getDocNamespaces( $dom)



Tags:

access:  public


Parameters:

   $dom  

[ Top ]

method getNsCode [line 235]

void getNsCode( $longNs, [ $rt = false])



Tags:

access:  public


Parameters:

   $longNs  
   $rt  

[ Top ]

method isQName [line 127]

void isQName( $name)



Tags:

access:  public


Parameters:

   $name  

[ Top ]

method normalizeType [line 261]

string normalizeType( mixed $type)

Convert XMLSchema data type to PHP data type



Tags:

access:  public


Parameters:

mixed   $type   XML Schema data type

[ Top ]

method parseDocComments [line 172]

array parseDocComments( string $comments)

Parse Doc comments



Tags:

access:  public


Parameters:

string   $comments  

[ Top ]

method parseParamDocs [line 201]

void parseParamDocs( $string)



Tags:

access:  public


Parameters:

   $string  

[ Top ]

method parseQName [line 112]

array($namespace, parseQName( string $qname, [boolean $resolveNamespace = false])



Tags:

access:  public


Parameters:

string   $qname   QName string (fx, ns1:Name)
boolean   $resolveNamespace   [optional] Resolve namespace code to full form

[ Top ]

method parseReturnDocs [line 220]

void parseReturnDocs( $string)



Tags:

access:  public


Parameters:

   $string  

[ Top ]

method phpTypeToSoap [line 315]

void phpTypeToSoap( $phpType)



Tags:

access:  public


Parameters:

   $phpType  

[ Top ]

method resolveNamespace [line 149]

string resolveNamespace( unknown_type $shortNs)

Resolve short namespace to long, or return the same code if not found



Tags:

return:  Long namespace
access:  public


Parameters:

unknown_type   $shortNs  

[ Top ]

method urnToPhpName [line 136]

void urnToPhpName( $urn)



Tags:

access:  public


Parameters:

   $urn  

[ Top ]


Documentation generated on Tue, 01 Feb 2011 22:29:28 +0100 by phpDocumentor 1.4.3