dokeos
[ class tree: dokeos ] [ index: dokeos ] [ all elements ]

Class: GradebookDataGenerator

Source Location: /main/gradebook/lib/gradebook_data_generator.class.php

Class Overview


Class to select, sort and transform object data into array data,


Author(s):

  • Bert Stepp�

Variables

Constants

Methods



Class Details

[line 8]
Class to select, sort and transform object data into array data,

used for the general gradebook view




Tags:

author:  Bert Stepp�


[ Top ]


Class Variables

$items =

[line 22]



Tags:

access:  private

Type:   mixed


[ Top ]



Class Methods


method build_date_column [line 206]

void build_date_column( $item)



Tags:

access:  private


Parameters:

   $item  

[ Top ]

method build_result_column [line 176]

void build_result_column( $item, $ignore_score_color)



Tags:

access:  private


Parameters:

   $item  
   $ignore_score_color  

[ Top ]

constructor GradebookDataGenerator [line 25]

GradebookDataGenerator GradebookDataGenerator( [ $cats = array()], [ $evals = array()], [ $links = array()])



Parameters:

   $cats  
   $evals  
   $links  

[ Top ]

method get_certificate_link [line 113]

void get_certificate_link( object Item $item)

Returns the link to the certificate generation, if the score is enough, otherwise returns an empty string. This only works with categories.



Parameters:

object Item   $item  

[ Top ]

method get_data [line 57]

array get_data( [ $sorting = 0], [ $start = 0], [ $count = null], [ $ignore_score_color = false])

Get actual array data



Tags:

return:  2-dimensional array - each array contains the elements: 0: cat/eval/link object 1: item name 2: description 3: weight 4: date 5: student's score (if student logged in)
access:  public


Parameters:

   $sorting  
   $start  
   $count  
   $ignore_score_color  

[ Top ]

method get_total_items_count [line 39]

void get_total_items_count( )

Get total number of items (rows)



Tags:

access:  public


[ Top ]

method sort_by_date [line 164]

void sort_by_date( $item1, $item2)



Parameters:

   $item1  
   $item2  

[ Top ]

method sort_by_description [line 148]

void sort_by_description( $item1, $item2)



Parameters:

   $item1  
   $item2  

[ Top ]

method sort_by_name [line 132]

void sort_by_name( $item1, $item2)



Parameters:

   $item1  
   $item2  

[ Top ]

method sort_by_type [line 140]

void sort_by_type( $item1, $item2)



Parameters:

   $item1  
   $item2  

[ Top ]

method sort_by_weight [line 156]

void sort_by_weight( $item1, $item2)



Parameters:

   $item1  
   $item2  

[ Top ]


Class Constants

GDG_SORT_ASC =  32

[line 18]


[ Top ]

GDG_SORT_DATE =  16

[line 16]


[ Top ]

GDG_SORT_DESC =  64

[line 19]


[ Top ]

GDG_SORT_DESCRIPTION =  4

[line 14]


[ Top ]

GDG_SORT_NAME =  2

[line 13]


[ Top ]

GDG_SORT_TYPE =  1

[line 12]


[ Top ]

GDG_SORT_WEIGHT =  8

[line 15]


[ Top ]



Documentation generated on Thu, 12 Jun 2008 13:34:30 -0500 by phpDocumentor 1.4.1