mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-02 04:39:28 +00:00
5a5a22e0d5
- Added permission fs/dms to dump.sql and fhcomplete.php - Added FilesystemLib to read and write from/in filesystem - Added FS_Model to manage filesystem with the same permission system of DB_Model - Added more models to handle the Dms - Modified Dms controller to use the new models
33 lines
504 B
PHP
33 lines
504 B
PHP
<?php
|
|
|
|
class Dms_model extends DB_Model
|
|
{
|
|
/**
|
|
* Constructor
|
|
*/
|
|
public function __construct()
|
|
{
|
|
parent::__construct();
|
|
$this->dbTable = 'campus.tbl_dms';
|
|
$this->pk = 'dms_id';
|
|
}
|
|
|
|
/**
|
|
*
|
|
*/
|
|
public function filterFields($dms)
|
|
{
|
|
$fieldsArray = array('oe_kurzbz', 'dokument_kurzbz', 'kategorie_kurzbz');
|
|
$returnArray = array();
|
|
|
|
foreach ($fieldsArray as $value)
|
|
{
|
|
if (isset($dms[$value]))
|
|
{
|
|
$returnArray[$value] = $dms[$value];
|
|
}
|
|
}
|
|
|
|
return $returnArray;
|
|
}
|
|
} |