Prado\Data\SqlMap\Configuration\TSqlMapXmlConfigBuilder::createObjectFromNode PHP Method

createObjectFromNode() protected method

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
return 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());
    }