private function BotchaAdminTestCase::getBotchaPointSettingFromDatabase in BOTCHA Spam Prevention 7
Same name and namespace in other branches
- 6 botcha.test \BotchaAdminTestCase::getBotchaPointSettingFromDatabase()
Helper function to get the BOTCHA point setting straight from the database.
Parameters
string $form_id:
Return value
stdClass object
2 calls to BotchaAdminTestCase::getBotchaPointSettingFromDatabase()
- BotchaAdminTestCase::testBotchaPointAdministration in ./
botcha.test - Method for testing the BOTCHA point administration
- BotchaAdminTestCase::testBotchaPointAdministrationByNonAdmin in ./
botcha.test - Method for testing the BOTCHA point administration
File
- ./
botcha.test, line 731 - Tests for BOTCHA module.
Class
Code
private function getBotchaPointSettingFromDatabase($form_id) {
$result = db_query("SELECT * FROM {botcha_points} WHERE form_id = :form_id", array(
':form_id' => $form_id,
))
->fetchObject();
return $result;
}