. */ /** * @brief Contains the diffusion_type Object * (herits of the BaseObject class) * * @file * @author Loïc Vinet - Maarch * @date $date$ * @version $Revision$ * @ingroup core */ //Loads the required class try { require_once 'modules/notifications/class/diffusion_type.php'; require_once 'core/class/ObjectControlerAbstract.php'; } catch (Exception $e) { functions::xecho($e->getMessage()) . ' // '; } /** * Class for controling docservers objects from database */ abstract class diffusion_type_controler_Abstract extends ObjectControler //implements ObjectControlerIF { /** * Get event with given event_id. * Can return null if no corresponding object. * @param $id Id of event to get * @return event */ public function getAllDiffusion() { core_tools::load_lang(); $return = array(); $xmlfile = 'modules/notifications/xml/diffusion_type.xml'; $xmlfileCustom = $_SESSION['config']['corepath'] . 'custom/' . $_SESSION['custom_override_id'] . '/' . $xmlfile; if (file_exists($xmlfileCustom)) { $xmlfile = $xmlfileCustom; } $xmldiffusion = simplexml_load_file($xmlfile); foreach($xmldiffusion->diffusion_type as $diffusion) { //