mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-24 02:12:17 +00:00
Merge origin/ci into ci
Conflicts: application/core/FHC_Model.php application/models/Nation_model.php application/models/lehre/Studiengang_model.php application/models/lehre/Studienplan_model.php
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
<?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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user