- METHODS FOR TARGETS
RT::SearchBuilder::AddAndSort - base class for 'add and sort' collections
As it's about sorting then collection is sorted by SortOrder field.
Takes id of an object and limits collection.
Takes a collection object and optional list of object ids. Limits the collection to records not added to listed objects or if the list is empty then any object. Use 0 (zero) to mean global.
"LimitTargetToNotAdded" with reverse meaning. Takes the same arguments.
Joins collection to this table using left join, limits joined table by ids if those are provided.
Returns alias of the joined table. Join is cached and re-used for multiple calls.
Joins target collection to this table using TargetField.
Takes New and Left arguments. Use New to avoid caching and re-using this join. Use Left to create LEFT JOIN rather than inner.← Back to index