PHP 클래스 Prado\Data\SqlMap\Configuration\TSqlMapXmlConfigBuilder

파일 보기 프로젝트 열기: pradosoft/prado

보호된 메소드들

메소드 설명
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.

메소드 상세

createObjectFromNode() 보호된 메소드

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
리턴 Object new instance of class with class name given by 'class' attribute value.

getAbsoluteFilePath() 보호된 메소드

Gets the filename relative to the basefile.
protected getAbsoluteFilePath ( $basefile, $resource ) : string
리턴 string absolute filename.

getConfigFile() 추상적인 보호된 메소드

abstract protected getConfigFile ( ) : string
리턴 string configuration file.

getElementByIdValue() 보호된 메소드

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

loadXmlDocument() 보호된 메소드

Load document using simple xml.
protected loadXmlDocument ( $filename, TSqlMapXmlConfiguration $config ) : SimpleXmlElement
$config TSqlMapXmlConfiguration
리턴 SimpleXmlElement xml document.

setObjectPropFromNode() 보호된 메소드

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 = [] )