예제 #1
0
 function cleanDBonPurge()
 {
     $temp = new PluginResourcesResource_Item();
     $temp->deleteByCriteria(array('plugin_resources_resources_id' => $this->fields['id']));
     $temp = new PluginResourcesChoice();
     $temp->deleteByCriteria(array('plugin_resources_resources_id' => $this->fields['id']));
     $temp = new PluginResourcesTask();
     $temp->deleteByCriteria(array('plugin_resources_resources_id' => $this->fields['id']), 1);
     $temp = new PluginResourcesEmployee();
     $temp->deleteByCriteria(array('plugin_resources_resources_id' => $this->fields['id']));
     $temp = new PluginResourcesReportConfig();
     $temp->deleteByCriteria(array('plugin_resources_resources_id' => $this->fields['id']));
     $temp = new PluginResourcesChecklist();
     $temp->deleteByCriteria(array('plugin_resources_resources_id' => $this->fields['id']));
     $temp = new PluginResourcesResourceResting();
     $temp->deleteByCriteria(array('plugin_resources_resources_id' => $this->fields['id']));
     $temp = new PluginResourcesResourceHoliday();
     $temp->deleteByCriteria(array('plugin_resources_resources_id' => $this->fields['id']));
 }