Inpsyde\MultilingualPress\Database\WPDBTableInstaller::get_options PHP Метод

get_options() приватный Метод

Returns the SQL string for the table options.
private get_options ( ) : string
Результат string
    private function get_options()
    {
        if (isset($this->options)) {
            return $this->options;
        }
        $options = 'DEFAULT CHARACTER SET ';
        // MultilingualPress requires multibyte encoding for native names of languages.
        $options .= empty($this->db->charset) || false === stripos($this->db->charset, 'utf') ? 'utf8' : $this->db->charset;
        if (!empty($this->db->collate)) {
            $options .= ' COLLATE ' . $this->db->collate;
        }
        $this->options = $options;
        return $this->options;
    }