classes/phing/RuntimeConfigurable.php
public function maybeConfigure(Project $project)
    {
        if ($this->proxyConfigured) {
            return;
        }

        $id = null;

        // DataType configured in ProjectConfigurator
        //        if ( is_a($this->wrappedObject, "DataType") )
        //            return;

        if ($this->attributes || (isset($this->characters) && $this->characters != '')) {
            ProjectConfigurator::configure($this->wrappedObject, $this->attributes, $project);

            if (isset($this->attributes["id"])) {
                $id = $this->attributes["id"];
            }

            if (isset($this->characters) && $this->characters != '') {
                ProjectConfigurator::addText($project, $this->wrappedObject, (string) $this->characters);
            }
            if ($id !== null) {
                $project->addReference($id, $this->wrappedObject);
            }
        }

        /*if ( is_array($this->children) && !empty($this->children) ) {
            // Configure all child of this object ...
            foreach ($this->children as $child) {
                $child->maybeConfigure($project);
                ProjectConfigurator::storeChild($project, $this->wrappedObject, $child->wrappedObject, strtolower($child->getElementTag()));
            }
        }*/

        $this->proxyConfigured = true;
    }
public function maybeConfigure(Project $project)
    {
        if ($this->proxyConfigured) {
            return;
        }

        $id = null;

        // DataType configured in ProjectConfigurator
        //        if ( is_a($this->wrappedObject, "DataType") )
        //            return;

        if ($this->attributes || (isset($this->characters) && $this->characters != '')) {
            ProjectConfigurator::configure($this->wrappedObject, $this->attributes, $project);

            if (isset($this->attributes["id"])) {
                $id = $this->attributes["id"];
            }

            if (isset($this->characters) && $this->characters != '') {
                ProjectConfigurator::addText($project, $this->wrappedObject, (string) $this->characters);
            }
            if ($id !== null) {
                $project->addReference($id, $this->wrappedObject);
            }
        }

        /*if ( is_array($this->children) && !empty($this->children) ) {
            // Configure all child of this object ...
            foreach ($this->children as $child) {
                $child->maybeConfigure($project);
                ProjectConfigurator::storeChild($project, $this->wrappedObject, $child->wrappedObject, strtolower($child->getElementTag()));
            }
        }*/

        $this->proxyConfigured = true;
    }
public function maybeConfigure ( Project $ project ) { if ( $ this -> proxyConfigured ) { return ; } $ id = null ; // DataType configured in ProjectConfigurator //        if ( is_a($this->wrappedObject, "DataType") ) //            return; if ( $ this -> attributes || ( isset ( $ this -> characters ) && $ this -> characters != '' ) ) { ProjectConfigurator :: configure ( $ this -> wrappedObject , $ this -> attributes , $ project ) ; if ( isset ( $ this -> attributes [ "id" ] ) ) { $ id = $ this -> attributes [ "id" ] ; } if ( isset ( $ this -> characters ) && $ this -> characters != '' ) { ProjectConfigurator :: addText ( $ project , $ this -> wrappedObject , ( string ) $ this -> characters ) ; } if ( $ id !== null ) { $ project -> addReference ( $ id , $ this -> wrappedObject ) ; } } /*if ( is_array($this->children) && !empty($this->children) ) {
            // Configure all child of this object ...
            foreach ($this->children as $child) {
                $child->maybeConfigure($project);
                ProjectConfigurator::storeChild($project, $this->wrappedObject, $child->wrappedObject, strtolower($child->getElementTag()));
            }
        }*/ $ this -> proxyConfigured = true ; }
Configure the wrapped element and all children.

@param Project $project

@return void

@throws BuildException
@throws Exception
Configure the wrapped element and all children .