PHP Class Prado\Data\SqlMap\Configuration\TSqlMapXmlConfigBuilder

Afficher le fichier Open project: pradosoft/prado

Méthodes protégées

Méthode Description
createObjectFromNode ( $node ) : Object Create an instance of an object give by the attribute named 'class' in the node and set the properties on the object given by attribute names and values.
getAbsoluteFilePath ( $basefile, $resource ) : string Gets the filename relative to the basefile.
getConfigFile ( ) : string
getElementByIdValue ( SimpleXmlDocument $document, $tag, $value ) : SimpleXmlElement Get element node by ID value (try for attribute name ID as case insensitive).
loadXmlDocument ( $filename, TSqlMapXmlConfiguration $config ) : SimpleXmlElement Load document using simple xml.
setObjectPropFromNode ( $obj, $node, $except = [] ) For each attributes (excluding attribute named in $except) set the property of the $obj given by the name of the attribute with the value of the attribute.

Method Details

createObjectFromNode() protected méthode

Create an instance of an object give by the attribute named 'class' in the node and set the properties on the object given by attribute names and values.
protected createObjectFromNode ( $node ) : Object
Résultat Object new instance of class with class name given by 'class' attribute value.

getAbsoluteFilePath() protected méthode

Gets the filename relative to the basefile.
protected getAbsoluteFilePath ( $basefile, $resource ) : string
Résultat string absolute filename.

getConfigFile() abstract protected méthode

abstract protected getConfigFile ( ) : string
Résultat string configuration file.

getElementByIdValue() protected méthode

Get element node by ID value (try for attribute name ID as case insensitive).
protected getElementByIdValue ( SimpleXmlDocument $document, $tag, $value ) : SimpleXmlElement
$document SimpleXmlDocument
Résultat SimpleXmlElement node if found, null otherwise.

loadXmlDocument() protected méthode

Load document using simple xml.
protected loadXmlDocument ( $filename, TSqlMapXmlConfiguration $config ) : SimpleXmlElement
$config TSqlMapXmlConfiguration
Résultat SimpleXmlElement xml document.

setObjectPropFromNode() protected méthode

For each attributes (excluding attribute named in $except) set the property of the $obj given by the name of the attribute with the value of the attribute.
protected setObjectPropFromNode ( $obj, $node, $except = [] )