PHP Class Goetas\Xsd\XsdToPhp\AbstractConverter

显示文件 Open project: goetas/xsd2php Class Usage Examples

Protected Properties

Property Type Description
$aliasCache
$baseSchemas
$baseTypes
$namespaces
$typeAliases

Public Methods

Method Description
__construct ( Goetas\Xsd\XsdToPhp\Naming\NamingStrategy $namingStrategy )
addAliasMap ( $ns, $name, callable $handler )
addAliasMapType ( $ns, $name, $type )
addNamespace ( $namesapce, $phpNamespace )
convert ( array $schemas )
getTypeAlias ( $type, GoetasWebservices\XML\XSDReader\Schema\Schema $schemapos = null )

Protected Methods

Method Description
cleanName ( $name )
getNamingStrategy ( ) : Goetas\Xsd\XsdToPhp\Naming\NamingStrategy
isArrayElement ( $element ) : GoetasWebservices\XML\XSDReader\Schema\Element\ElementSingle | null
isArrayNestedElement ( GoetasWebservices\XML\XSDReader\Schema\Type\Type $type ) : GoetasWebservices\XML\XSDReader\Schema\Element\ElementSingle | null
isArrayType ( GoetasWebservices\XML\XSDReader\Schema\Type\Type $type ) : GoetasWebservices\XML\XSDReader\Schema\Type\Type | null

Method Details

__construct() public method

public __construct ( Goetas\Xsd\XsdToPhp\Naming\NamingStrategy $namingStrategy )
$namingStrategy Goetas\Xsd\XsdToPhp\Naming\NamingStrategy

addAliasMap() public method

public addAliasMap ( $ns, $name, callable $handler )
$handler callable

addAliasMapType() public method

public addAliasMapType ( $ns, $name, $type )

addNamespace() public method

public addNamespace ( $namesapce, $phpNamespace )

cleanName() protected method

protected cleanName ( $name )

convert() abstract public method

abstract public convert ( array $schemas )
$schemas array

getNamingStrategy() protected method

protected getNamingStrategy ( ) : Goetas\Xsd\XsdToPhp\Naming\NamingStrategy
return Goetas\Xsd\XsdToPhp\Naming\NamingStrategy

getTypeAlias() public method

public getTypeAlias ( $type, GoetasWebservices\XML\XSDReader\Schema\Schema $schemapos = null )
$schemapos GoetasWebservices\XML\XSDReader\Schema\Schema

isArrayElement() protected method

protected isArrayElement ( $element ) : GoetasWebservices\XML\XSDReader\Schema\Element\ElementSingle | null
return GoetasWebservices\XML\XSDReader\Schema\Element\ElementSingle | null

isArrayNestedElement() protected method

protected isArrayNestedElement ( GoetasWebservices\XML\XSDReader\Schema\Type\Type $type ) : GoetasWebservices\XML\XSDReader\Schema\Element\ElementSingle | null
$type GoetasWebservices\XML\XSDReader\Schema\Type\Type
return GoetasWebservices\XML\XSDReader\Schema\Element\ElementSingle | null

isArrayType() protected method

protected isArrayType ( GoetasWebservices\XML\XSDReader\Schema\Type\Type $type ) : GoetasWebservices\XML\XSDReader\Schema\Type\Type | null
$type GoetasWebservices\XML\XSDReader\Schema\Type\Type
return GoetasWebservices\XML\XSDReader\Schema\Type\Type | null

Property Details

$aliasCache protected_oe property

protected $aliasCache

$baseSchemas protected_oe property

protected $baseSchemas

$baseTypes protected_oe property

protected $baseTypes

$namespaces protected_oe property

protected $namespaces

$typeAliases protected_oe property

protected $typeAliases