SearchManager
in package
Search manager
Tags
Table of Contents
Properties
- $act : mixed
- $em : object
- Doctrine entity manager
- $license : License
- License object
- $pos : int
- Position for paging
- $template : Sigma
- Template object
- $term : string
- Search term
Methods
- __construct() : mixed
- Constructor
- getPage() : mixed
- Parse page
- getSearchResults() : mixed
- Gets the search results.
- countSearchedPages() : int
- Get amount of pages with search term in slug, title, content title, module name, command name or content
- getSearchedPages() : array<string|int, mixed>
- Gets the searched pages as array.
- getSearchQueryBuilder() : QueryBuilder
- Gets the search query builder.
- sortPages() : int
- sort function
Properties
$act
protected
mixed
$act
$em
Doctrine entity manager
private
object
$em
= null
Tags
$license
License object
private
License
$license
= null
$pos
Position for paging
private
int
$pos
= 0
Tags
$template
Template object
private
Sigma
$template
= null
$term
Search term
private
string
$term
= ''
Tags
Methods
__construct()
Constructor
public
__construct(string &$act, Sigma $tpl, License $license) : mixed
Parameters
getPage()
Parse page
public
getPage() : mixed
getSearchResults()
Gets the search results.
public
getSearchResults() : mixed
Return values
mixed —Parsed content.
countSearchedPages()
Get amount of pages with search term in slug, title, content title, module name, command name or content
private
countSearchedPages() : int
Return values
int —$countPages
getSearchedPages()
Gets the searched pages as array.
private
getSearchedPages() : array<string|int, mixed>
Return values
array<string|int, mixed> —$pages \Cx\Core\ContentManager\Model\Entity\Page
getSearchQueryBuilder()
Gets the search query builder.
private
getSearchQueryBuilder() : QueryBuilder
Searches for slug, title and content title by the given search term.
Return values
QueryBuilder —$qb
sortPages()
sort function
private
sortPages(Page $pageA, Page $pageB) : int