src/UC/LeftMenu.php
private function _LoadXml() {
        $xml = new \DOMDocument;
        $filename = "APP_ROOT_DIR" . \Puzzlout\Framework\Enums\ApplicationFolderName::AppsFolderName . $this->app->name() . '/Config/menus.xml';
        if (file_exists($filename)) {
            $xml->load($filename);
        } else {
            throw new \Exception("In " . __CLASS__ . "->" . __METHOD__);
        }
        return $xml->getElementsByTagName("main_menu");
    }
private function _LoadXml() {
        $xml = new \DOMDocument;
        $filename = "APP_ROOT_DIR" . \Puzzlout\Framework\Enums\ApplicationFolderName::AppsFolderName . $this->app->name() . '/Config/menus.xml';
        if (file_exists($filename)) {
            $xml->load($filename);
        } else {
            throw new \Exception("In " . __CLASS__ . "->" . __METHOD__);
        }
        return $xml->getElementsByTagName("main_menu");
    }
private function _LoadXml ( ) { $ xml = new \ DOMDocument ; $ filename = "APP_ROOT_DIR" . \ Puzzlout \ Framework \ Enums \ ApplicationFolderName :: AppsFolderName . $ this -> app -> name ( ) . '/Config/menus.xml' ; if ( file_exists ( $ filename ) ) { $ xml -> load ( $ filename ) ; } else { throw new \ Exception ( "In " . __CLASS__ . "->" . __METHOD__ ) ; } return $ xml -> getElementsByTagName ( "main_menu" ) ; }
Load the left menu from xml and returns the data to process
The list of DOMElementNode is the list of main menus to display

@return type DOMELementNodeList
@throws Exception when file is not found
Load the left menu from xml and returns the data to process The list of DOMElementNode is the list of main menus to display