public function __construct()
 {
     parent::__construct();
     $this->db =& $GLOBALS['phpgw']->db;
     $this->booking_bo = CreateObject('booking.bobooking');
     $this->building_bo = CreateObject('booking.bobuilding');
     $this->event_bo = CreateObject('booking.boevent');
     $this->group_bo = CreateObject('booking.bogroup');
     $this->send = CreateObject('phpgwapi.send');
 }
 function update($settings)
 {
     $this->authorize('write', $settings);
     foreach (booking_async_task::getAvailableTasks() as $task_class) {
         $task = booking_async_task::create($task_class);
         $task->disable();
         if ($settings[str_replace('.', '_', "{$task_class}_enabled")] === true) {
             $task->enable();
         }
     }
 }