/home/dkp/claroline/claroline/inc/lib/claro_main.lib.php

collects and manage failures occuring during script execution The main purpose is allowing to manage the display messages externaly from functions or objects. This strengthens encapsulation principle

function my_function() { if ($succeeds) return true; else return claro_failure::set_failure('my_failure_type'); }

if ( my_function() ) { SOME CODE ... } else { $failure_type = claro_failure::get_last_failure() }

Author:
Hugues Peeters <hugues.peeters@claroline.net>
Generated on Tue Jun 8 12:28:34 2010 for Claroline API by  doxygen 1.6.3