App\Search

Inherited from cmsApplication_Basic

Protected Attributes

protected $enabled_apps 

Public Methods

public __construct()
public viewOpenSearchXML()
public viewMainPage()
Frontend: view the main page. Usually loads view.main.template.php
public arrayinterpretFriendlyURL(string $urlpath)
Returns an array of command, given $urlpath.
public stringcreateFriendlyURL(string $str)
create SEO friendly URL. Format is action={...}¶m1={....}¶m2={...}
public getObjectSearchResultsAndCount($keyword, $fieldnames='title, , , $from_cache=true)
public searchByKeyWord($keyword, $pg=1, $sortby='', $sortdirection='ASC', $from_cache=false, $standard_criteria='status=1')
for ($i = 0; $i < $total_count; $i++) $items[$i]['object'] = $obj;
public getNumberOfListingsPerPage()
public booleanRun(string $command)
Runs command. If return value is true, then it will be displayed as a full page If return value is false, AJAX method is assumed