FacturaScripts

MegaSearch extends MegaSearch Uses ExtensionsTrait

Class created by Core/Base/PluginManager

Table of Contents

$extensions Stores class extensions. array
$query This variable contains the input text as the $query parameter to be used to filter the model data string|bool
$results Results by page array
$sections More sections to search in array
$className Name of the class of the controller (although its in inheritance from this class, the name of the final class we will have here) string
$dataBase It provides direct access to the database. DataBase
$empresa Selected company. Empresa
$multiRequestProtection MultiRequestProtection
$permissions User permissions on this controller. ControllerPermissions
$request Request on which we can get data. Request
$response HTTP Response object. Response
$template Name of the file for the template. string|bool
$title Title of the page. string
$uri Given uri, default is empty. string
$user User logged in. User|bool
__call() Executes the first matched extension. mixed
addExtension() mixed
pipe() mixed
getPageData() Return the basic data for this page. array
privateCore() Runs the controller's private logic. mixed
pageSearch() Proceeds to search in the whole page mixed
search() Presform all initial searches. mixed
__construct() Initialize all objects and properties. mixed
getTemplate() Return the template to use for this controller. string|bool
publicCore() Execute the public part of the controller. mixed
redirect() Redirect to an url or controller. mixed
setTemplate() Set the template to use for this controller. bool
toolBox() ToolBox
url() Return the URL of the actual controller. string
checkPHPversion() mixed
getClassName() Return the name of the controller. string

Properties

$extensions

Stores class extensions.

protected static array $extensions = []

$query

This variable contains the input text as the $query parameter to be used to filter the model data

public string|bool $query

$sections

More sections to search in

public array $sections

$className

Name of the class of the controller (although its in inheritance from this class, the name of the final class we will have here)

private string $className

$request

Request on which we can get data.

public Request $request

$response

HTTP Response object.

protected Response $response

$template

Name of the file for the template.

private string|bool $template

$uri

Given uri, default is empty.

public string $uri

Methods

__call()

Executes the first matched extension.

public __call( $name : string [, $arguments : array = [] ] ) : mixed
Parameters
$name : string
$arguments : array = []
Tags
throws
Return values
mixed

addExtension()

public static addExtension( $extension : mixed ) : mixed
Parameters
$extension : mixed
Return values
mixed

pipe()

public pipe( $name : string , ...$arguments : array ) : mixed
Parameters
$name : string
$arguments : array
Return values
mixed

getPageData()

Return the basic data for this page.

public getPageData( ) : array
Return values
array

pageSearch()

Proceeds to search in the whole page

protected pageSearch( ) : mixed
Return values
mixed

search()

Presform all initial searches.

protected search( ) : mixed
Return values
mixed

__construct()

Initialize all objects and properties.

public __construct( $className : string [, $uri : string = '' ] ) : mixed
Parameters
$className : string
$uri : string = ''
Return values
mixed

getTemplate()

Return the template to use for this controller.

public getTemplate( ) : string|bool
Return values
string|bool

publicCore()

Execute the public part of the controller.

public publicCore( &$response : Response ) : mixed
Parameters
$response : Response
Return values
mixed

redirect()

Redirect to an url or controller.

public redirect( $url : string , $delay : int ) : mixed
Parameters
$url : string
$delay : int
Return values
mixed

setTemplate()

Set the template to use for this controller.

public setTemplate( $template : string|bool ) : bool
Parameters
$template : string|bool
Return values
bool

url()

Return the URL of the actual controller.

public url( ) : string
Return values
string

checkPHPversion()

private checkPHPversion( $min : float ) : mixed
Parameters
$min : float
Return values
mixed

getClassName()

Return the name of the controller.

protected getClassName( ) : string
Return values
string

Search results