/** * Load a single NarroSuggestion object, * by TextId, LanguageId, SuggestionValueMd5 Index(es) * @param integer $intTextId * @param integer $intLanguageId * @param string $strSuggestionValueMd5 * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query * @return NarroSuggestion */ public static function LoadByTextIdLanguageIdSuggestionValueMd5($intTextId, $intLanguageId, $strSuggestionValueMd5, $objOptionalClauses = null) { return NarroSuggestion::QuerySingle(QQ::AndCondition(QQ::Equal(QQN::NarroSuggestion()->TextId, $intTextId), QQ::Equal(QQN::NarroSuggestion()->LanguageId, $intLanguageId), QQ::Equal(QQN::NarroSuggestion()->SuggestionValueMd5, $strSuggestionValueMd5)), $objOptionalClauses); }
/** * Get the most recent suggestion for a context made by a list of users * * @param integer $intContextId * @param integer $intTextId * @param integer $intUserId * @return NarroSuggestion */ protected function GetUserListSuggestion($intContextId, $intTextId, $intUserId) { return NarroSuggestion::QuerySingle(QQ::AndCondition(QQ::In(QQN::NarroSuggestion()->UserId, $this->arrExportAuthorList), QQ::Equal(QQN::NarroSuggestion()->TextId, $intTextId), QQ::Equal(QQN::NarroSuggestion()->LanguageId, $this->objTargetLanguage->LanguageId))); }