Stud.IP  2.4 Revision 48548
 All Data Structures Namespaces Files Functions Variables Groups Pages
AdminList Class Reference
Collaboration diagram for AdminList:
Collaboration graph

Public Member Functions

 __construct ()
 search ()
 getSearchResults ($new_search=false)
 getSelectTemplate ($course_id)
 getTopLinkTemplate ($course_id)

Static Public Member Functions

static getInstance ()

Protected Attributes

 $results = array()

Static Protected Attributes

static $instance = null

Detailed Description

Singleton class for the admin search list. This is a singleton-class because the result set is dependend on the session.

Get the results dependend on the current session with AdminList::getInstance()->getSearchResults(); It also returns templates for a select-box or navigation-arrows with AdminList::getInstance()->getSelectTemplate() or AdminList::getInstance()->getTopLinkTemplate()

Author
Rasmus Fuhse fuhse.nosp@m.@dat.nosp@m.a-que.nosp@m.st.d.nosp@m.e

Constructor & Destructor Documentation

__construct ( )

constructor that starts the first search for this instance

Here is the call graph for this function:

Member Function Documentation

static getInstance ( )
static

returns an AdminList singleton object

Returns
AdminList

Here is the caller graph for this function:

getSearchResults (   $new_search = false)

returns the search results of this instance

Parameters
bool$new_search,:if true a new search will be forced, default to false
Returns
array of associative arrays (seminare.*, Institute.Name, startsem, endsem)

Here is the call graph for this function:

getSelectTemplate (   $course_id)

returns a template for a selectbox with the current list of the adminsearch

Parameters
string$course_id: Seminar_id of the course that should be selected in the select-box
Returns
Flexi_Template
getTopLinkTemplate (   $course_id)

returns a template for "back" and "forward" links on top of admin-pages

Parameters
string$course_id
Returns
Flexi_Template
search ( )

Saves a search-result-set of seminars depending on the parameters of the session to the AdminList object.

Here is the call graph for this function:

Here is the caller graph for this function:

Field Documentation

$instance = null
staticprotected
$results = array()
protected

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