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

Go to the source code of this file.

Namespaces

namespace  COURSE

Functions

 delete_course ($code)
 is_registered_to ($user_id, $course_id)
 pr_star_replace ($string)

Function Documentation

delete_course ( code  ) 

delete a course of the plateform

TODO detect failure with claro_failure

Parameters:
string $cid
Returns:
boolean TRUE if suceed boolean FALSE otherwise.

Definition at line 47 of file admin.lib.inc.php.

is_registered_to ( user_id,
course_id 
)

to know if user is registered to a course or not

Author:
Hugues Peeters <peeters@ipm.ucl.ac.be>
Parameters:
int id of user in DB
int id of course in DB
Returns:
boolean true if user is enrolled false otherwise

Definition at line 173 of file admin.lib.inc.php.

pr_star_replace ( string  ) 

Transfrom a key word into a usable key word ina SQL : "*" must be replaced by "%" and "%" by "\%"

Parameters:
the string to transform
Returns:
the string modified

Definition at line 192 of file admin.lib.inc.php.

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