protected function _copyVariables($object)
    {
        // Store for _updateVariable
        $this->_copyDestinations[] = $object;

        // Extra object
        $object->escort = $this;

        foreach ($this->getContainer() as $key => $value) {
            // Prevent self referencing
            if ($value !== $object) {
                // \MUtil_Echo::r(get_class($value), $key);
                // echo get_class($value) . ' => ' . $key . '<br/>';
                $object->$key = $value;
            }
        }

        // viewRenderer is not in the container so has to be copied separately
        foreach (get_object_vars($this) as $name => $value) {
            if ('_' != $name[0]) {
                // \MUtil_Echo::r(get_class($value), $key);
                $object->$name = $value;
            }
        }
    }
protected function _copyVariables($object)
    {
        // Store for _updateVariable
        $this->_copyDestinations[] = $object;

        // Extra object
        $object->escort = $this;

        foreach ($this->getContainer() as $key => $value) {
            // Prevent self referencing
            if ($value !== $object) {
                // \MUtil_Echo::r(get_class($value), $key);
                // echo get_class($value) . ' => ' . $key . '<br/>';
                $object->$key = $value;
            }
        }

        // viewRenderer is not in the container so has to be copied separately
        foreach (get_object_vars($this) as $name => $value) {
            if ('_' != $name[0]) {
                // \MUtil_Echo::r(get_class($value), $key);
                $object->$name = $value;
            }
        }
    }
protected function _copyVariables ( $ object ) { // Store for _updateVariable $ this -> _copyDestinations [ ] = $ object ; // Extra object $ object -> escort = $ this ; foreach ( $ this -> getContainer ( ) as $ key => $ value ) { // Prevent self referencing if ( $ value !== $ object ) { // \MUtil_Echo::r(get_class($value), $key); // echo get_class($value) . ' => ' . $key . '<br/>'; $ object -> $ key = $ value ; } } // viewRenderer is not in the container so has to be copied separately foreach ( get_object_vars ( $ this ) as $ name => $ value ) { if ( '_' != $ name [ 0 ] ) { // \MUtil_Echo::r(get_class($value), $key); $ object -> $ name = $ value ; } } }
Function to maintain uniformity of access to variables from the bootstrap object.
Copies all variables to the target object.

@param Object $object An object who gets all variables from this object.
@return void
Function to maintain uniformity of access to variables from the bootstrap object . Copies all variables to the target object .