/** * Delete tag relationships * * @param AbstractController $controller * @param Application $application * @return void */ public static function delete(AbstractController $controller, Application $application) { if ($_POST && isset($_POST['process_content']) && isset($_POST['content_process_action']) && $_POST['content_process_action'] == -3) { foreach ($_POST['process_content'] as $id) { $c2t = new Table\TagItems(); $c2t->delete(['content_id' => (int) $id]); } } }