function handle_toggleDelete_technology_load() { $technology_id = CRequest::getInt("model_id"); $technology = CBaseManager::getWorkPlanContentSectionLoadTechnology($technology_id); $technology->markDeleted(!$technology->isMarkDeleted()); $technology->save(); }
public function actionDelete() { $object = CBaseManager::getWorkPlanContentSectionLoadTechnology(CRequest::getInt("id")); $load = $object->load_id; $object->remove(); $this->redirect("workplancontentloads.php?action=edit&id=" . $load); }