/** * 回覧を削除する * * @return boolean (true:正常/false:異常) * @access public */ function deleteCircular() { $circularId = $this->_request->getParameter('circular_id'); if (!$circularId) { return false; } $deleteParams = array('room_id' => $this->_request->getParameter('room_id'), 'circular_id' => $circularId); $result = $this->_db->deleteExecute('circular_user', $deleteParams); if ($result === false) { $this->_db->addError(); return false; } $result = $this->_db->deleteExecute('circular', $deleteParams); if ($result === false) { $this->_db->addError(); return false; } $result = $this->_db->deleteExecute('circular_choice', array("circular_id" => $circularId)); if ($result === false) { $this->_db->addError(); return false; } $result = $this->_db->deleteExecute('circular_postscript', array("circular_id" => $circularId)); if ($result === false) { $this->_db->addError(); return false; } $whatsnewAction =& $this->_container->getComponent("whatsnewAction"); $result = $whatsnewAction->delete($circularId); if ($result === false) { return false; } $this->_request->setParameter("visible_row", null); return true; }