mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-05 14:19:27 +00:00
030fe2ba74
Conflicts: application/core/FHC_Model.php application/models/Nation_model.php application/models/lehre/Studiengang_model.php application/models/lehre/Studienplan_model.php
42 lines
596 B
PHP
42 lines
596 B
PHP
<?php
|
|
|
|
class File_model extends DB_Model
|
|
{
|
|
/**
|
|
*
|
|
*/
|
|
public function __construct()
|
|
{
|
|
parent::__construct();
|
|
}
|
|
|
|
/**
|
|
*
|
|
*/
|
|
public function saveFile($file = NULL)
|
|
{
|
|
$result = FALSE;
|
|
|
|
// Checks if the operation is permitted by the API caller
|
|
// All the code should be put inside this if statement
|
|
if(isAllowed($this->getUID(), 'file'))
|
|
{
|
|
if($this->_validate($file))
|
|
{
|
|
$result = $this->_write($file);
|
|
}
|
|
}
|
|
|
|
return $result;
|
|
}
|
|
|
|
private function _validate($file = NULL)
|
|
{
|
|
return TRUE;
|
|
}
|
|
|
|
private function _write($file = NULL)
|
|
{
|
|
return TRUE;
|
|
}
|
|
} |