public static function BotchaModel::fetchQueryResult in BOTCHA Spam Prevention 6.2
5 calls to BotchaModel::fetchQueryResult()
- BotchaFormModel::getForms in model/
botcha_form.model.inc - BotchaModel::getRecipebooksForms in model/
botcha.model.inc - BotchaModel::getRecipebooksRecipes in model/
botcha.model.inc - BotchaRecipebookModel::getRecipebooks in model/
botcha_recipebook.model.inc - BotchaRecipeModel::getRecipes in model/
botcha_recipe.model.inc
File
- model/
botcha.model.inc, line 132
Class
Code
public static function fetchQueryResult($result_query, $key = 'id') {
$result = array();
while ($result_row = db_fetch_object($result_query)) {
$result[$result_row->{$key}] = $result_row;
}
return $result;
}