nyroFwk
0.2
var
www
users
nyrofwk
src
my
module
elements
my/module/elements/controller.class.php
Go to the documentation of this file.
1
<?php
2
3
class
module_elements_controller
extends
module_abstract
{
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
}
security\getInstance
static getInstance()
Definition:
security.class.php:37
module_abstract
Definition:
module/abstract.class.php:10
module_elements_controller
Definition:
my/module/elements/controller.class.php:3
module_elements_controller\renderAdminMenu
renderAdminMenu(array $prm=null)
Definition:
my/module/elements/controller.class.php:5
module_abstract\setViewVar
setViewVar($name, $value)
Definition:
module/abstract.class.php:186
db\getCfg
static getCfg($key)
Definition:
db.class.php:125
request\uriDef
static uriDef(array $prm=array(), array $use=array('lang', 'module', 'action', 'param', 'out'))
Definition:
request.class.php:579
db\getInstance
static getInstance($cfg=null)
Definition:
db.class.php:58
Generated on Sun Oct 15 2017 22:25:20 for nyroFwk by
1.8.13