claroline/claroline/inc/lib/course.lib.inc.php File Reference

Go to the source code of this file.

Namespaces

namespace  COURSE

Functions

 delete_directory ($dir)
 create_select_box_language ($selected=NULL)
 language_exists ()
 build_editable_cat_table ($selectedCat=null, $separator=">")
 claro_get_cat_list ()
 claro_get_cat_flat_list ($separator= ' > ')
 get_full_path ($categories, $catcode=NULL, $separator= ' > ')
 claro_get_lang_flat_list ()
 claro_get_course_manager_id ($cid=NULL)

Function Documentation

build_editable_cat_table ( selectedCat = null,
separator = ">" 
)

build the <option> element with categories where we can create/have courses

Parameters:
the code of the preselected categorie
the separator used between a cat and its paretn cat to display in the <select>
Returns:
echo all the <option> elements needed for a <select>.

Definition at line 120 of file course.lib.inc.php.

claro_get_cat_flat_list ( separator = ',
 
)

Definition at line 188 of file course.lib.inc.php.

claro_get_cat_list (  ) 

build the <option> element with categories where we can create/have courses

Parameters:
the code of the preselected categorie
the separator used between a cat and its paretn cat to display in the <select>
Returns:
echo all the <option> elements needed for a <select>.

Definition at line 175 of file course.lib.inc.php.

claro_get_course_manager_id ( cid = NULL  ) 

return all manager id of a course

Parameters:
string $cid course id
Returns:
array(int) array of int

Definition at line 298 of file course.lib.inc.php.

claro_get_lang_flat_list (  ) 

Definition at line 271 of file course.lib.inc.php.

create_select_box_language ( selected = NULL  ) 

Create a command to create a selectBox with the language

Parameters:
string $selected the language selected
Returns:
the command to create the selectBox
Todo:
merge this with claro_disp_select_box

Definition at line 57 of file course.lib.inc.php.

delete_directory ( dir  ) 

Delete a directory

Parameters:
string $dir the directory deleting
Returns:
boolean whether success true

Definition at line 27 of file course.lib.inc.php.

get_full_path ( categories,
catcode = NULL,
separator = ',
 
)

Recursive function to get the full categories path of a specified categorie

Parameters:
table of all the categories, 2 dimension tables, first dimension for cat codes, second for names, parent's cat code.
$catcode string the categorie we want to have its full path from root categorie
$separator string
Returns:
void

Definition at line 233 of file course.lib.inc.php.

language_exists (  ) 

Return an array with the language

Returns:
an array with the language

Definition at line 83 of file course.lib.inc.php.

Generated on Tue Jun 8 12:28:37 2010 for Claroline API by  doxygen 1.6.3