SettingsController::home PHP Метод

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

public home ( )
    public function home()
    {
        $this->addJsFile('settings.js');
        $this->title(t('Dashboard'));
        $this->RequiredAdminPermissions = ['Garden.Settings.View', 'Garden.Settings.Manage', 'Garden.Community.Manage'];
        $this->fireEvent('DefineAdminPermissions');
        $this->permission($this->RequiredAdminPermissions, false);
        $this->setHighlightRoute('dashboard/settings');
        $UserModel = Gdn::userModel();
        // Get recently active users
        $this->ActiveUserData = $UserModel->getActiveUsers(5);
        // Check for updates
        $this->addUpdateCheck();
        $this->addDefinition('ExpandText', t('more'));
        $this->addDefinition('CollapseText', t('less'));
        // Fire an event so other applications can add some data to be displayed
        $this->fireEvent('DashboardData');
        Gdn_Theme::section('DashboardHome');
        $this->setData('IsWidePage', true);
        $this->render('index');
    }