BrowseCriterion
From KnowledgeTree Document Management Made Simple
Contents |
Introduction
Methods
Your class needs to implement the following methods:
__construct() or ClassName()
This constructor would do any specific initialisation for the class.
It might set $this->sDisplay it's default.
documentDisplay ($oDocument)
This is what will appear in the Advanced Search criteria list.
searchSQL ($aRequest)
This returns the part of the SQL that is part of the WHERE clause in the query.
searchJoinSQL ()
This returns the part of the SQL that is part of the JOIN clauses in the query.
Class Variables
$bString
TODO
$bContains
This is a boolean value - true or false.
In the Advanced Search, it is evident as to the implication:
- true - the matching criteria becomes 'contains' or 'does not contain'
- false - the matching criteria becomes 'equals' or 'not equal'
$bHandleNot
This is a boolean value - true or false.
The value of this impacts on $bContains.
If $bHandleNot is false, then $bContains does not have to cater for the 'not' condition
$sDocumentField
This is the field that will be referenced from the $sSearchTable.
$sSortField
The results will be sorted according to this field.
$sNamespace
Each criteria option should have its own unique namespace.
$sSearchTable
This is a reference to the table or alias on which the fields are referenced.
$iID
TODO
$aLookup
TODO
$bFolderCriterion
TODO
$aOptions
TODO
$bVisible
TODO
Example
TODO
del.icio.us
reddit

