Example #1
0
 function setUp()
 {
     parent::setUp();
     require_code('flagrant');
     $this->flag_id = add_flagrant('test', 3, 'Welcome to ocPortal', 1);
     $this->assertTrue('Welcome to ocPortal' == $GLOBALS['SITE_DB']->query_value('text', 'notes', array('id' => $this->flag_id)));
 }
Example #2
0
 /**
  * Standard aed_module add actualiser.
  *
  * @return ID_TEXT		The entry added
  */
 function add_actualisation()
 {
     $message = post_param('message');
     $notes = post_param('notes', '');
     $validated = post_param_integer('validated', 0);
     return strval(add_flagrant($message, post_param_integer('days'), $notes, $validated));
 }