/** * 回覧先グループを登録する * * @return boolean (true:正常/false:異常) * @access public */ function entryGroupMember() { $groupId = $this->_request->getParameter('group_id'); $groupName = $this->_request->getParameter('group_name'); $groupMember = $this->_request->getParameter('group_member'); $returnVal = ""; if ($groupId) { $setParams = array('group_name' => $groupName, 'group_member' => $groupMember); $whereParams = array('user_id' => $this->_user_id, 'group_id' => $groupId); $result = $this->_db->updateExecute('circular_group', $setParams, $whereParams, true); if ($result === false) { $this->_db->addError(); return false; } return true; } else { $myRoomPage = $this->_session->getParameter('_self_myroom_page'); $insertParams = array('user_id' => $this->_user_id, 'group_name' => $groupName, 'group_member' => $groupMember, 'room_id' => $myRoomPage['page_id']); $groupId = $this->_db->insertExecute('circular_group', $insertParams, true, 'group_id'); if ($groupId === false) { $this->_db->addError(); return false; } return $groupId; } }