Stud.IP  jlu_3.3 Revision
StudycourseModel Class Reference
Collaboration diagram for StudycourseModel:
Collaboration graph

Static Public Member Functions

static getStudyCourses ($sci=NULL)
 
static getStudyDegrees ($sdi=NULL)
 
static deleteStudyCourse ($prof_id)
 
static deleteStudyDegree ($deg_id)
 
static getStudyCourseInfo ($prof_id=NULL)
 
static getStudyDegreeInfo ($deg_id=NULL)
 
static saveNewProfession ($prof_name, $prof_desc)
 
static saveNewDegree ($deg_name, $deg_desc)
 
static checkProfession ($prof_name)
 
static checkDegree ($deg_name)
 
static saveEditProfession ($prof_id, $prof_name, $prof_desc)
 
static saveEditDegree ($deg_id, $deg_name, $deg_desc)
 

Detailed Description

@uses DBManager

Member Function Documentation

◆ checkDegree()

static checkDegree (   $deg_name)
static

Check, if the degree already exists

Parameters
$prof_name
Returns
bool true, if exists
Here is the call graph for this function:
Here is the caller graph for this function:

◆ checkProfession()

static checkProfession (   $prof_name)
static

Check, if the profession already exists

Parameters
string$prof_name
Returns
bool true, if exists
Here is the call graph for this function:
Here is the caller graph for this function:

◆ deleteStudyCourse()

static deleteStudyCourse (   $prof_id)
static

Delete a profession

Parameters
md5$prof_id
Returns
int the number of deletet rows
Here is the call graph for this function:
Here is the caller graph for this function:

◆ deleteStudyDegree()

static deleteStudyDegree (   $deg_id)
static

Delete a degree

Parameters
md5$deg_id
Returns
int the number of deletet rows
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getStudyCourseInfo()

static getStudyCourseInfo (   $prof_id = NULL)
static

Get infos about the profession

Parameters
md5$prof_id
Returns
array() profession
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getStudyCourses()

static getStudyCourses (   $sci = NULL)
static

Get all course of study (profession with all degrees) (if $sci == null) Get one course of study (one profession with all degrees) (if $sci != null)

Parameters
md5$sciid of a studiengang
Returns
array() list of courses
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getStudyDegreeInfo()

static getStudyDegreeInfo (   $deg_id = NULL)
static

Get infos about the degree

Parameters
md5$deg_id
Returns
array() degree
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getStudyDegrees()

static getStudyDegrees (   $sdi = NULL)
static

Get all degrees (degrees with all profession) (if $sdi == null) Get one degree (one degree with all profession) (if $sdi != null)

Parameters
md5$sdi
Returns
array() list of studydegrees
Here is the call graph for this function:
Here is the caller graph for this function:

◆ saveEditDegree()

static saveEditDegree (   $deg_id,
  $deg_name,
  $deg_desc 
)
static

Save changes of the degree

Parameters
md5$deg_id
string$deg_name
string$deg_desc
Here is the call graph for this function:
Here is the caller graph for this function:

◆ saveEditProfession()

static saveEditProfession (   $prof_id,
  $prof_name,
  $prof_desc 
)
static

Save changes of the profession

Parameters
md5$prof_id
string$prof_name
string$prof_desc
Here is the call graph for this function:
Here is the caller graph for this function:

◆ saveNewDegree()

static saveNewDegree (   $deg_name,
  $deg_desc 
)
static

Create a new degree

Parameters
string$deg_namenew name of the degree
string$deg_descnew description of the degree
Here is the call graph for this function:
Here is the caller graph for this function:

◆ saveNewProfession()

static saveNewProfession (   $prof_name,
  $prof_desc 
)
static

Create a new profession

Parameters
string$prof_namenew name of the profession
string$prof_descnew description of the profession [optional]
Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following file: