Stud.IP  trunk Revision
EvalCommon Class Reference
Collaboration diagram for EvalCommon:
Collaboration graph

Static Public Member Functions

static createTitle ($title, $iconURL="", $padding=0)
 
static createImage ($imgURL, $imgALT, $extra="")
 
static createEvalShowJS ( $isPreview=NO, $as_object=YES)
 
static createEvalShowLink ($evalID, $content, $isPreview=NO, $as_object=YES)
 
static createReportMessage ($text, $imgURL, $cssClass)
 
static showErrorReport (&$object, $errortitle="")
 
static createErrorReport (&$object, $errortitle="")
 
static getRangeID ()
 
static date2timestamp ($day, $month, $year, $hour=0, $minute=0, $second=0)
 

Member Function Documentation

◆ createErrorReport()

static createErrorReport ( $object,
  $errortitle = "" 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ createEvalShowJS()

static createEvalShowJS (   $isPreview = NO,
  $as_object = YES 
)
static

Creates the Javascript static function, which will open an evaluation popup

◆ createEvalShowLink()

static createEvalShowLink (   $evalID,
  $content,
  $isPreview = NO,
  $as_object = YES 
)
static

Creates a link, which will open an evaluation popup

Here is the call graph for this function:

◆ createImage()

static createImage (   $imgURL,
  $imgALT,
  $extra = "" 
)
static

Creates a simple image for the normal top of an modulepage

Parameters
string$imgURLThe URL for the icon
string$imgALTThe description for the icon
Here is the caller graph for this function:

◆ createReportMessage()

static createReportMessage (   $text,
  $imgURL,
  $cssClass 
)
static

Creates a reportmessage

Parameters
string$textThe text to show
string$imgURLThe image to show
string$cssClassThe css class for the text
Here is the caller graph for this function:

◆ createTitle()

static createTitle (   $title,
  $iconURL = "",
  $padding = 0 
)
static

Creates this funny blue title bar

Parameters
string$titleThe title
string$iconURLThe URL for the icon

◆ date2timestamp()

static date2timestamp (   $day,
  $month,
  $year,
  $hour = 0,
  $minute = 0,
  $second = 0 
)
static

Checks and transforms a date into a UNIX (r)(tm) timestamp public

Parameters
integer$dayThe day
integer$monthThe month
integer$yearThe year
integer$hourThe hour (optional)
integer$minuteThe minute (optional)
integer$secondThe second (optional)
Returns
integer If an error occurs -> -1. Otherwise the UNIX-timestamp
Here is the caller graph for this function:

◆ getRangeID()

static getRangeID ( )
static

Returns the rangeID

Here is the call graph for this function:

◆ showErrorReport()

static showErrorReport ( $object,
  $errortitle = "" 
)
static

Creates an errormessage from an object

Parameters
objectStudipObejct $object A Stud.IP-object
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: