/** * Return RTContext object from database row. * @param $row array * @return RTContext */ function &_returnContextFromRow(&$row) { $context = new RTContext(); $context->setContextId($row['context_id']); $context->setVersionId($row['version_id']); $context->setTitle($row['title']); $context->setAbbrev($row['abbrev']); $context->setDescription($row['description']); $context->setCitedBy($row['cited_by']); $context->setAuthorTerms($row['author_terms']); $context->setGeoTerms($row['geo_terms']); $context->setDefineTerms($row['define_terms']); $context->setOrder($row['seq']); if (!HookRegistry::call('RTDAO::_returnContextFromRow', array(&$context, &$row))) { $searchesIterator =& $this->getSearches($row['context_id']); $context->setSearches($searchesIterator->toArray()); } return $context; }