Home Features Demos Download Installation User Manual Developer Manual Relation function Credits

Anmelden

inc/functions/query.php

query(arguments) returns a database search as table.

See Query function on the syntax to use.

User rights: If used in a normal page, the function has access to pages in transcluded namespaces. If used in a template page, the function has access to all pages.

Utility functions

array_sort_func($a,$b=NULL)

Custom compare function handling NUMERIC and DESC.

array_sort($keys)

Custom multisort function used by Query.

swQueryTupleExpression($row, $term)

Expression evaluator handling fields (in row), numeric constants and some operators in RPN form.

Allowed operators are: + - / * . (concat) :: (concat ::) ABS SIGN COPY POP SWAP

swQuerySetKey($set, $term)

Calculates and sets key for rows of a table using term.

swCleanTupleFieldOrder($rows)

Makes sure that all rows have the same order of fields. Input rows may have not all keys or not in the same order. Rowkey is maintained.

swUniqueTuples($set)

Enforces unique tuples on the set like in relational algebra.

swQuery($args)

Wrapper for query function, searches everywhere and returns table.

Renames columns in a table

File structure inc folder inc/functions folder