Example #1
0
 public function tableManagerContent(\Core\Request $request, $table)
 {
     $params = array();
     switch (strtolower($table)) {
         case "user":
             $params = array("iduser" => array("alias" => "Id", "link" => true), "nom" => array("alias" => "Nom"), "role" => array("alias" => "Role"), "password" => array("alias" => "Mot de passe", "link" => false, "confirm" => true, "type" => "password", "showInTable" => false, "updateIfNull" => false, "valueFn" => "md5"), "datetime" => array("showInTable" => false), "date" => array("showInTable" => false), "time" => array("showInTable" => false), "float" => array("showInTable" => false), "description" => array("showInTable" => true, "editor" => "tinymce"), "pays" => array("showInTable" => false));
             break;
         default:
             break;
     }
     $tm = \Core\Module::create("core/Admin/TableManager", array("database" => "mysql", "table" => $table, "columns" => $params));
     return $tm->render();
 }
Example #2
0
<?php

$params = $self->getUsersConfig();
$table = $params["roleTable"];
$database = $params["database"];
$db = \Core\Db::create($database);
$fields = $db->describe($table);
$tblParams = array();
foreach ($fields as $field => $aField) {
    $tblParams[$field] = array("showInTable" => false);
}
$tblParams[$params["roleId"]] = array("alias" => "", "link" => true);
$tblParams[$params["roleField"]] = array("alias" => "Role", "link" => true);
echo \Core\Module::create("core/Admin/TableManager", array("database" => $database, "table" => $table, "columns" => $tblParams))->render();
Example #3
0
 public static function login(\Core\Request $param)
 {
     $obj = \Core\Module::create(static::$module_path);
     $obj->loginAction();
     echo $obj->render();
 }
Example #4
0
 public static function deleteController(\Core\Request $param)
 {
     $obj = \Core\Module::create(static::$module_path);
     $obj->delete();
     echo $obj->render();
 }