mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-09 16:19:28 +00:00
34 lines
697 B
PHP
34 lines
697 B
PHP
<?php
|
|
|
|
class Plan_model extends DB_Model
|
|
{
|
|
//
|
|
protected $_planQuery = "SELECT DISTINCT tbl_studienplan.*
|
|
FROM lehre.tbl_studienplan JOIN lehre.tbl_studienordnung USING(studienordnung_id)
|
|
WHERE tbl_studienordnung.studiengang_kz = ?";
|
|
|
|
/**
|
|
*
|
|
*/
|
|
public function __construct()
|
|
{
|
|
parent::__construct();
|
|
}
|
|
|
|
/**
|
|
*
|
|
*/
|
|
public function getPlan($courseOfStudiesID)
|
|
{
|
|
$result = NULL;
|
|
|
|
// Checks if the operation is permitted by the API caller
|
|
// All the code should be put inside this if statement
|
|
if(isAllowed($this->getAddonID(), 'plan'))
|
|
{
|
|
$result = $this->db->query($this->_planQuery, array($courseOfStudiesID));
|
|
}
|
|
|
|
return $result;
|
|
}
|
|
} |