nyroFwk  0.2
my/module/elements/controller.class.php
Go to the documentation of this file.
1 <?php
2 
4 
5  protected function renderAdminMenu(array $prm = null) {
6  $links = array();
7  if (security::getInstance()->isLogged()) {
8  $db = db::getInstance();
9  $tables = $db->getTables();
10  foreach($tables as $t) {
11  if (!strpos($t, '_') && !strpos($t, db::getCfg('i18n')))
12  $links[$t] = request::uriDef(array('module'=>$t, 'action'=>'', 'param'=>''));
13  }
14  }
15  $this->setViewVar('linksTable', $links);
16  }
17 }
static getInstance()
setViewVar($name, $value)
static getCfg($key)
Definition: db.class.php:125
static uriDef(array $prm=array(), array $use=array('lang', 'module', 'action', 'param', 'out'))
static getInstance($cfg=null)
Definition: db.class.php:58
Generated on Sun Oct 15 2017 22:25:20 for nyroFwk by doxygen 1.8.13