type required default (none)Object type to search. Required. AA currently supports only datovka (records of messages sent to Czech state data boxes). Any other or unknown value returns an empty string; passing no arguments at all to oids raises a PHP error, so always give the type.
modules optional default related modules of the current siteSlice or module ids (dash-separated) whose objects to search. Empty means the object owners related to the current site. Pass ids to widen or narrow the scope.
conds optional default (none)A d- condition string of field-operator-value triplets over the object fields. For datovka the fields include state, conf, dbIDRecipient and the dm envelope fields, for example d-state-==-1 to keep only sent messages.
sort optional default (none)Object field name(s) to order the result by, ascending by default or descending with a trailing dash, for example state- to sort by state descending. Several fields may be combined.
delimiter optional default dash -String placed between the returned ids. Defaults to a dash. Use json to get the ids as a JSON array instead. With no matching object the result is an empty string regardless of delimiter.
restrict_ids optional default (none)A known set of object ids to intersect the search with. The result keeps only objects that are both in this set and match the other conditions. Empty means no restriction.
limit optional default 0 (all)Caps the number of ids returned. A positive value keeps the first N, a negative value keeps the last N. Zero or empty returns all matches.
{oids:unknown}
{oids:datovka}
{oids:datovka::d-state-==-1}
{oids:datovka:::state-}
{oids:datovka::::json}
{oids:datovka::::-::-3}
{oitem:datovka:{oids:datovka}:_#STATETXT:<br>}