Prado\Data\SqlMap\Configuration\TSqlMapXmlConfigBuilder::createObjectFromNode PHP 메소드

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.
    protected function createObjectFromNode($node)
    {
        if (isset($node['class'])) {
            $obj = Prado::createComponent((string) $node['class']);
            $this->setObjectPropFromNode($obj, $node, array('class'));
            return $obj;
        }
        throw new TSqlMapConfigurationException('sqlmap_node_class_undef', $node, $this->getConfigFile());
    }