getStorageEngines() публичный статический Метод

Returns array of storage engines
public static getStorageEngines ( ) : string[]
Результат string[] array of storage engines
Пример #1
0
/**
 * setup HTML for server all Engines information
 *
 * @return string
 */
function PMA_getHtmlForAllServerEngines()
{
    /**
     * Displays the table header
     */
    $html = '<table class="noclick">' . "\n" . '<thead>' . "\n" . '<tr><th>' . __('Storage Engine') . '</th>' . "\n" . '    <th>' . __('Description') . '</th>' . "\n" . '</tr>' . "\n" . '</thead>' . "\n" . '<tbody>' . "\n";
    /**
     * Listing the storage engines
     */
    $odd_row = true;
    foreach (StorageEngine::getStorageEngines() as $engine => $details) {
        $html .= '<tr class="' . ($odd_row ? 'odd' : 'even') . ($details['Support'] == 'NO' || $details['Support'] == 'DISABLED' ? ' disabled' : '') . ($details['Support'] == 'DEFAULT' ? ' marked' : '') . '">' . "\n" . '    <td><a rel="newpage" href="server_engines.php' . PMA_URL_getCommon(array('engine' => $engine)) . '">' . "\n" . '            ' . htmlspecialchars($details['Engine']) . "\n" . '        </a></td>' . "\n" . '    <td>' . htmlspecialchars($details['Comment']) . '</td>' . "\n" . '</tr>' . "\n";
        $odd_row = !$odd_row;
    }
    unset($odd_row, $engine, $details);
    $html .= '</tbody>' . "\n" . '</table>' . "\n";
    return $html;
}
 /**
  * Return HTML with all Storage Engine information
  *
  * @return string
  */
 private function _getHtmlForAllServerEngines()
 {
     return Template::get('server/engines/engines')->render(array('engines' => StorageEngine::getStorageEngines()));
 }
 /**
  * Returns true if given engine name is supported/valid, otherwise false
  *
  * @param string $engine name of engine
  *
  * @static
  * @return boolean whether $engine is valid or not
  */
 public static function isValid($engine)
 {
     if ($engine == "PBMS") {
         return true;
     }
     $storage_engines = StorageEngine::getStorageEngines();
     return isset($storage_engines[$engine]);
 }