This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.  
 More...
 | 
|   | __construct () | 
|   | 
|   | store (string $a_context, int $a_user_id, string $a_name, array $a_state) | 
|   | Store table template.  More...
  | 
|   | 
|   | load (string $a_context, int $a_user_id, string $a_name) | 
|   | Get table template.  More...
  | 
|   | 
|   | delete (string $a_context, int $a_user_id, string $a_name) | 
|   | Delete table template.  More...
  | 
|   | 
|   | getNames (string $a_context, int $a_user_id) | 
|   | List templates.  More...
  | 
|   | 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. 
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Saves (mostly asynchronously) user properties of tables (e.g. filter on/off) 
- Author
 - Jörg Lützenkirchen luetz.nosp@m.enki.nosp@m.rchen.nosp@m.@lei.nosp@m.fos.c.nosp@m.om
 
- Deprecated:
 - 10
 
Definition at line 26 of file class.ilTableTemplatesStorage.php.
 
◆ __construct()
      
        
          | ilTableTemplatesStorage::__construct  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ delete()
      
        
          | ilTableTemplatesStorage::delete  | 
          ( | 
          string  | 
          $a_context,  | 
        
        
           | 
           | 
          int  | 
          $a_user_id,  | 
        
        
           | 
           | 
          string  | 
          $a_name  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Delete table template. 
Definition at line 90 of file class.ilTableTemplatesStorage.php.
References $db, and $ilDB.
   97         if ($a_context == 
"" || $a_name == 
"") {
   102             "DELETE FROM table_templates " .
   103             " WHERE name = " . 
$ilDB->quote($a_name, 
"text") .
   104             " AND user_id = " . 
$ilDB->quote($a_user_id, 
"integer") .
   105             " AND context = " . 
$ilDB->quote($a_context, 
"text")
 
 
 
 
◆ getNames()
      
        
          | ilTableTemplatesStorage::getNames  | 
          ( | 
          string  | 
          $a_context,  | 
        
        
           | 
           | 
          int  | 
          $a_user_id  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
List templates. 
Definition at line 112 of file class.ilTableTemplatesStorage.php.
References $db, and $ilDB.
  118         if ($a_context == 
"") {
   123             "SELECT name FROM table_templates " .
   124             " WHERE user_id = " . 
$ilDB->quote($a_user_id, 
"integer") .
   125             " AND context = " . 
$ilDB->quote($a_context, 
"text") .
   129         while ($rec = 
$ilDB->fetchAssoc($set)) {
   130             $result[] = $rec[
"name"];
 
 
 
 
◆ load()
      
        
          | ilTableTemplatesStorage::load  | 
          ( | 
          string  | 
          $a_context,  | 
        
        
           | 
           | 
          int  | 
          $a_user_id,  | 
        
        
           | 
           | 
          string  | 
          $a_name  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Get table template. 
Definition at line 66 of file class.ilTableTemplatesStorage.php.
References $db, and $ilDB.
   73         if ($a_context == 
"" || $a_name == 
"") {
    78             "SELECT value FROM table_templates " .
    79             " WHERE name = " . 
$ilDB->quote($a_name, 
"text") .
    80             " AND user_id = " . 
$ilDB->quote($a_user_id, 
"integer") .
    81             " AND context = " . 
$ilDB->quote($a_context, 
"text")
    83         $rec = 
$ilDB->fetchAssoc($set);
    84         return unserialize((
string) $rec[
"value"]);
 
 
 
 
◆ store()
      
        
          | ilTableTemplatesStorage::store  | 
          ( | 
          string  | 
          $a_context,  | 
        
        
           | 
           | 
          int  | 
          $a_user_id,  | 
        
        
           | 
           | 
          string  | 
          $a_name,  | 
        
        
           | 
           | 
          array  | 
          $a_state  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Store table template. 
Definition at line 39 of file class.ilTableTemplatesStorage.php.
References $db, and $ilDB.
   47         if ($a_context == 
"" || $a_name == 
"") {
    54                 "name" => array(
"text", $a_name),
    55                 "user_id" => array(
"integer", $a_user_id),
    56                 "context" => array(
"text", $a_context)),
    58                 "value" => array(
"text", serialize($a_state))
 
 
 
 
◆ $db
The documentation for this class was generated from the following file: