Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

It is left to the developer to add the list of participants to CORE. In ./application/modules/core/models/Feedback.php::getParticipants you have to provide the $participants array. Use the same format as the debug example. As Here is an example of how CORE hooks into the TERENA registration system we use:

Code Block
$config = new Zend_Config_Ini(
    APPLICATION_PATH.'/configs/web.ini',
    'development'
);
$db = Zend_Db::factory($config->resources->multidb->webshop);

$query = "select fname, lname, email from vw_prodpart
where product_id IN (57,58,59) and order_status NOT IN ('canceled', 'unpaid', 'pending', 'refund')";

$participants = $db->query($query)->fetchAll();

...