public function addCustomHints(Query
$query,
$index = null,
$straightJoin = false,
$sqlNoCache = false
) { $query->
setHint(Query::HINT_CUSTOM_OUTPUT_WALKER, ForceIndexWalker::
class);
if ($straightJoin === true
) { $query->
setHint(ForceIndexWalker::HINT_STRAIGHT_JOIN, true
);
} if ($index !== null
) { $query->
setHint(ForceIndexWalker::HINT_FORCE_INDEX,
$index);
} if ($sqlNoCache === true
) { $query->
setHint(ForceIndexWalker::HINT_SQL_NO_CACHE, true
);
}