RainLab\Translate\Classes\Translator::isConfigured PHP Метод

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

Check if this plugin is installed and the database is available, stores the result in the session for efficiency.
public isConfigured ( ) : boolean
Результат boolean
    public function isConfigured()
    {
        if ($this->isConfigured !== null) {
            return $this->isConfigured;
        }
        if (Session::has(self::SESSION_CONFIGURED)) {
            $result = true;
        } elseif (App::hasDatabase() && Schema::hasTable('rainlab_translate_locales')) {
            Session::put(self::SESSION_CONFIGURED, true);
            $result = true;
        } else {
            $result = false;
        }
        return $this->isConfigured = $result;
    }