Exemplo n.º 1
0
 /**
  * Deletes the device
  * First it makes sure that all expired programs are deleted,
  * otherwise a device can not be deleted if it is assigned to a program
  */
 public function post_delete(array $args)
 {
     # make sure all closed (expired) programs are marked deleted
     # before attempting to delete a device
     com_meego_devprogram_progutils::delete_expired_programs();
     parent::post_delete($args);
 }
Exemplo n.º 2
0
 /**
  * Deletes the provider
  * First it makes sure that all devices are deleted that do not belong to
  * programs
  */
 public function post_delete(array $args)
 {
     # make sure all unused (not part of any program) devices are deleted first
     # before attempting to delete a provider
     com_meego_devprogram_provutils::delete_unused_devices();
     parent::post_delete($args);
 }