PMA\libraries\StorageEngine::getPage PHP Метод

getPage() публичный Метод

Generates the requested information page
public getPage ( string $id ) : string
$id string page id
Результат string html output
    public function getPage($id)
    {
        if (!array_key_exists($id, $this->getInfoPages())) {
            return '';
        }
        $id = 'getPage' . $id;
        return $this->{$id}();
    }

Usage Example

 /**
  * Return HTML for a given Storage Engine
  *
  * @param StorageEngine $engine storage engine
  *
  * @return string
  */
 private function _getHtmlForServerEngine($engine)
 {
     $pageOutput = !empty($_REQUEST['page']) ? $engine->getPage($_REQUEST['page']) : '';
     /**
      * Displays details about a given Storage Engine
      */
     return Template::get('server/engines/engine')->render(array('title' => $engine->getTitle(), 'helpPage' => $engine->getMysqlHelpPage(), 'comment' => $engine->getComment(), 'infoPages' => $engine->getInfoPages(), 'support' => $engine->getSupportInformationMessage(), 'variables' => $engine->getHtmlVariables(), 'pageOutput' => $pageOutput));
 }