예제 #1
0
 /**
  * Konstruktor
  */
 public function __construct()
 {
     parent::__construct();
     $this->session = \fpcm\classes\baseconfig::$fpcmSession;
     $this->headline = $this->language->translate('WELCOME_HEADLINE', array('{{username}}' => $this->session->currentUser->getDisplayname()));
     $this->content = $this->language->translate('WELCOME_CONTENT', array('{{profilelink}}' => 'index.php?module=system/profile'));
     $this->name = 'welcome';
     $this->position = 1;
 }
예제 #2
0
 public function __construct()
 {
     parent::__construct();
     $classname = get_class();
     $this->headline = $this->language->translate('FPCM_EXAMPLE_HEADLINE');
     $this->content = 'This is an example dashboard conatiner from example module!';
     $this->name = strtolower($classname);
     $this->position = 10;
 }
예제 #3
0
 /**
  * Konstruktor
  */
 public function __construct()
 {
     parent::__construct();
     $this->systemUpdates = new \fpcm\model\updater\system();
     $this->runCheck();
     $this->tableContent[] = '<tr><td colspan="2" class="fpcm-small-text"><p>' . $this->language->translate('UPDATE_VERSIONCHECK_NOTES') . '</p><td><tr>';
     $this->headline = $this->language->translate('SYSTEM_UPDATE');
     $this->content = implode(PHP_EOL, array('<table class="fpcm-ui-table fpcm-dashboard-updates fpcm-ui-center">', implode(PHP_EOL, $this->tableContent), '</table>'));
     $this->name = 'updatecheck';
     $this->position = 3;
     $this->height = 0;
 }
예제 #4
0
 /**
  * Konstruktor
  */
 public function __construct()
 {
     $this->cacheName = 'syscheck';
     $this->cacheModule = self::CACHE_M0DULE_DASHBOARD;
     parent::__construct();
     $this->runCheck();
     $this->headline = $this->language->translate('SYSTEM_CHECK');
     $this->content = implode(PHP_EOL, array('<table class="fpcm-ui-table fpcm-small-text2" style="overflow:auto;">', implode(PHP_EOL, $this->tableContent), '</table>'));
     $this->name = 'syscheck';
     $this->position = 5;
     $this->height = 1;
 }
예제 #5
0
 /**
  * Konstruktor
  */
 public function __construct()
 {
     $this->cacheName = 'fpcmnews';
     $this->cacheModule = self::CACHE_M0DULE_DASHBOARD;
     parent::__construct();
     if ($this->cache->isExpired()) {
         $this->renderContent();
     } else {
         $this->content = $this->cache->read();
     }
     $this->headline = $this->language->translate('RECENT_FPCMNEWS');
     $this->name = 'fpcmnews';
     $this->position = 7;
     $this->height = 1;
 }
예제 #6
0
 /**
  * Konstruktor
  */
 public function __construct()
 {
     $this->cacheName = 'userlist';
     $this->cacheModule = self::CACHE_M0DULE_DASHBOARD;
     parent::__construct();
     $this->cache = new \fpcm\classes\cache($this->cacheName, self::CACHE_M0DULE_DASHBOARD);
     if ($this->cache->isExpired()) {
         $this->renderContent();
     } else {
         $this->content = $this->cache->read();
     }
     $this->headline = $this->language->translate('DASHBOARD_USERLIST');
     $this->name = 'userlist';
     $this->position = 8;
     $this->height = 0;
 }
예제 #7
0
 /**
  * Konstruktor
  */
 public function __construct()
 {
     $this->cacheName = 'recentcomments';
     parent::__construct();
     $session = \fpcm\classes\baseconfig::$fpcmSession;
     $this->currentUser = $session->getUserId();
     $this->isAdmin = $session->getCurrentUser()->isAdmin();
     $this->permissions = new \fpcm\model\system\permissions($session->currentUser->getRoll());
     $this->cache = new \fpcm\classes\cache($this->cacheName . '_' . $this->currentUser, self::CACHE_M0DULE_DASHBOARD);
     if ($this->cache->isExpired()) {
         $this->renderContent();
     } else {
         $this->content = $this->cache->read();
     }
     $this->headline = $this->language->translate('RECENT_COMMENTS');
     $this->name = 'recentcomments';
     $this->position = 4;
 }