Stud.IP  5.4
LVGroupsWizardStep Class Reference
Inheritance diagram for LVGroupsWizardStep:
CourseWizardStep

Public Member Functions

 getStepTemplate ($values, $stepnumber, $temp_id)
 
 get_selection ($course_id)
 
 getLVGroupTreeLevel ($parentId, $parentClass)
 
 searchLVGroupTree ($searchterm)
 
 getLVGroupDetails ($id)
 
 getAncestorTree ($id)
 
 alterValues ($values)
 
 validate ($values)
 
 storeValues ($course, $values)
 
 isRequired ($values)
 
 is_locked ($values)
 
 copy ($course, $values)
 

Static Public Member Functions

static isCourseId ($id)
 

Member Function Documentation

◆ alterValues()

alterValues (   $values)

Catch form submits other than "previous" and "next" and handle the given values. This is only important for no-JS situations.

Parameters
Array$valuescurrently set values for the wizard.
Returns
bool

Implements CourseWizardStep.

◆ copy()

copy (   $course,
  $values 
)

Copy values for study areas wizard step from given course.

Parameters
Course$course
Array$values

Implements CourseWizardStep.

◆ get_selection()

get_selection (   $course_id)

Returns a LvGruppen-Selection object for a given course ID.

Parameters
stringeither the MD5ish ID of a course or something falsy to indicate a course that is currently being created
Returns
mixed LvGruppen-Selection object representing the selection form

◆ getAncestorTree()

getAncestorTree (   $id)

◆ getLVGroupDetails()

getLVGroupDetails (   $id)

◆ getLVGroupTreeLevel()

getLVGroupTreeLevel (   $parentId,
  $parentClass 
)

◆ getStepTemplate()

getStepTemplate (   $values,
  $stepnumber,
  $temp_id 
)

Returns the Flexi template for entering the necessary values for this step.

Parameters
Array$valuesPre-set values
int$stepnumberwhich number has the current step in the wizard?
String$temp_idtemporary ID for wizard workflow
Returns
String a Flexi template for getting needed data.

Implements CourseWizardStep.

◆ is_locked()

is_locked (   $values)

◆ isCourseId()

static isCourseId (   $id)
static

Every (non-empty) string is a valid course ID except the string '-'

Parameters
mixedthe value to check
Returns
bool TRUE if it is courseID-ish, FALSE otherwise

◆ isRequired()

isRequired (   $values)

Checks if the current step needs to be executed according to already given values.

Parameters
Array$valuesvalues specified from previous steps
Returns
bool Is the current step required for a new course?

Implements CourseWizardStep.

◆ searchLVGroupTree()

searchLVGroupTree (   $searchterm)

◆ storeValues()

storeValues (   $course,
  $values 
)

Stores the given values to the given course.

Parameters
Course$coursethe course to store values for
Array$valuesvalues to set
Returns
Course The course object with updated values.

Implements CourseWizardStep.

◆ validate()

validate (   $values)

Validates if given values are sufficient for completing the current course wizard step and switch to another one. If not, all errors are collected and shown via PageLayout::postMessage.

Parameters
mixed$valuesArray of stored values
Returns
bool Everything ok?

Implements CourseWizardStep.


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