Defines a table which can be searched against using the front-end search
This is the code documentation for the SproutCMS project
Search documentation |
class SearchHandlerDefines a table which can be searched against using the front-end search
Variables
Functions
public __constructvoid $SearchHandler->__construct ( string $table , string $ctlr_name ); This function does not have a description public addHavingvoid $SearchHandler->addHaving ( mixed $val ); Adds a having clause to this search handler. Having clauses should refer to the main table using the alias 'main' e.g. $handler->addHaving("main.active = 1") public addJoinvoid $SearchHandler->addJoin ( mixed $val ); Adds a join to this search handler. Inner joins should refer to the main table using the alias 'main' e.g. $handler->addJoin("INNER JOIN categories ON categories.item_id = main.id") public addWherevoid $SearchHandler->addWhere ( mixed $val ); Adds a where clause to this search handler. Where clauses should refer to the main table using the alias 'main' e.g. $handler->addWhere("main.active = 1") public getCtlrNameunknown $SearchHandler->getCtlrName ( ); Gets the controller name, e.g. PageController public getHavingunknown $SearchHandler->getHaving ( ); Gets all having clauses which should be added to the search query public getJoinsunknown $SearchHandler->getJoins ( ); Gets all joins which should be added to the search query public getMainTableunknown $SearchHandler->getMainTable ( ); Gets the table name for the main table, e.g. pages public getTableunknown $SearchHandler->getTable ( ); Gets the table name for the keywords table, e.g. page_keywords public getWhereunknown $SearchHandler->getWhere ( ); Gets all where clauses which should be added to the search query public setCtlrNamevoid $SearchHandler->setCtlrName ( mixed $val ); Sets the controller name, e.g. PageController. The specified controller must implement the FrontEndSearch interface. public setTablevoid $SearchHandler->setTable ( mixed $val ); Sets the table name for the keywords table, e.g. page_keywords |
Powered by Pelzini, version 0.9.0 |
Documentation is made available under the
GNU Free Documentation License 1.2. Generated: Monday, 3rd April, 2023 at 02:59 pm |