public function getGlobals($withExtensions = false)
    {
        $globals = $this->globals;

        if ($withExtensions) {
            $temp = [];

            foreach ((array) $this->getExtensions() as $extension) {
                $temp = array_merge($temp, (array) $extension->getGlobals());
            }

            $globals = array_merge($temp, $globals);
        }

        return $globals;
    }
public function getGlobals($withExtensions = false)
    {
        $globals = $this->globals;

        if ($withExtensions) {
            $temp = [];

            foreach ((array) $this->getExtensions() as $extension) {
                $temp = array_merge($temp, (array) $extension->getGlobals());
            }

            $globals = array_merge($temp, $globals);
        }

        return $globals;
    }
public function getGlobals ( $ withExtensions = false ) { $ globals = $ this -> globals ; if ( $ withExtensions ) { $ temp = [ ] ; foreach ( ( array ) $ this -> getExtensions ( ) as $ extension ) { $ temp = array_merge ( $ temp , ( array ) $ extension -> getGlobals ( ) ) ; } $ globals = array_merge ( $ temp , $ globals ) ; } return $ globals ; }
Method to get property Globals

@param bool $withExtensions

@return array
Method to get property Globals