Documentation

EasyBlogViewLottie extends EasyBlogView
in package
uses JsonQueriable

Table of Contents

Properties

$paramsPrefix  : mixed
$_baseContents  : array<string|int, mixed>
Stores base contents.
$_conditions  : array<string|int, mixed>
Stores all conditions.
$_except  : array<string|int, mixed>
contains column names for except
$_isProcessed  : bool
$_map  : mixed
contain prepared data for process
$_node  : string|array<string|int, mixed>
store node path
$_rulesMap  : array<string|int, mixed>
map all conditions with methods
$_select  : array<string|int, mixed>
contains column names
$app  : mixed
$customTheme  : mixed
$my  : mixed
$params  : mixed
$props  : mixed

Methods

__construct()  : mixed
amp()  : mixed
Generate a rel tag on the header of the page
canonical()  : mixed
Generate a canonical tag on the header of the page
checkAcl()  : mixed
Allows children to check for acl
checkWebviewAccess()  : mixed
Check for webview access. Currently being use in EB Tablet
display()  : mixed
Responsible to display the entire component output
getActiveMenu()  : mixed
Retrieves the active menu
getActiveMenuParams()  : mixed
Retrieves the menu params
getDefaultParams()  : mixed
Generates a default set of menu params
getMenuSuffix()  : mixed
Retrieve the menu suffix for a page
getMessages()  : mixed
Retrieve any queued messages from the system
getPlayer()  : mixed
Retrieve the Lottie Player when a Lottie JSON file is uploaded
getRssEmail()  : mixed
Sets the rss author email
getSiteDomainName()  : mixed
Retrieve the site domain name with protocol
import()  : bool
import data from file
isJson()  : bool|array<string|int, mixed>
Check given value is valid JSON
isWebviewable()  : mixed
Experimental method to determine if the view and layout is webview-able
macro()  : bool
make macro for custom where clause
orWhere()  : $this
make WHERE clause with OR
preload()  : mixed
Generate a preload link tag on the header of the page
renderHeaders()  : mixed
Responsible to render the css files on the head
reProcess()  : $this
Our system will cache processed data and prevend multiple time processing. If you want to reprocess this method can help you
set()  : mixed
Allows child to set variables
setPageTitle()  : mixed
Responsible to modify the title whenever necessary. Inherited classes should always use this method to set the title
setPathway()  : mixed
Adds the breadcrumbs on the site
setRssFeed()  : mixed
Adds the breadcrumbs on the site
setTheme()  : mixed
Allows caller to set a custom theme
setViewBreadcrumb()  : mixed
Sets view in breadcrumbs
takeColumn()  : mixed
where()  : $this
make WHERE clause
whereBool()  : $this
make WHERE Boolean clause
whereContains()  : $this
make WHERE CONTAINS clause
whereDate()  : $this
make WHERE DATE clause
whereEndsWith()  : $this
make WHERE ENDS WITH clause
whereIn()  : $this
make WHERE IN clause
whereMatch()  : $this
make WHERE MATCH clause
whereMonth()  : $this
make WHERE month clause
whereNotIn()  : $this
make WHERE NOT IN clause
whereNotNull()  : $this
make WHERE NOT NULL clause
whereNull()  : $this
make WHERE NULL clause
whereStartsWith()  : $this
make WHERE START WITH clause
whereYear()  : $this
make WHERE Year clause
exceptColumn()  : array<string|int, mixed>
selecting specific column
getData()  : mixed
get data from node path
getDataFromFile()  : bool|string|array<string|int, mixed>
Read JSON data from file
getFromNested()  : bool|array<string|int, mixed>|mixed
Get data from nested array
isMultiArray()  : bool
Check given value is multidimensional array
makeWhere()  : $this
generator for AND and OR where
objectToArray()  : array<string|int, mixed>|mixed
Parse object to array
outputJSON()  : mixed
Renders JSON output on the page
prepare()  : $this
Prepare data from desire conditions
prepareResult()  : array<string|int, mixed>|mixed
Prepare data for result
processConditions()  : array<string|int, mixed>|string|object
process AND and OR conditions
selectColumn()  : array<string|int, mixed>
selecting specific column

Properties

$paramsPrefix

public mixed $paramsPrefix = ''

$_baseContents

Stores base contents.

protected array<string|int, mixed> $_baseContents = []

$_conditions

Stores all conditions.

protected array<string|int, mixed> $_conditions = []

$_except

contains column names for except

protected array<string|int, mixed> $_except = []

$_map

contain prepared data for process

protected mixed $_map

$_node

store node path

protected string|array<string|int, mixed> $_node = ''

$_rulesMap

map all conditions with methods

protected static array<string|int, mixed> $_rulesMap = ['=' => 'equal', 'eq' => 'equal', '==' => 'strictEqual', 'seq' => 'strictEqual', '!=' => 'notEqual', 'neq' => 'notEqual', '!==' => 'strictNotEqual', 'sneq' => 'strictNotEqual', '>' => 'greaterThan', 'gt' => 'greaterThan', '<' => 'lessThan', 'lt' => 'lessThan', '>=' => 'greaterThanOrEqual', 'gte' => 'greaterThanOrEqual', '<=' => 'lessThanOrEqual', 'lte' => 'lessThanOrEqual', 'in' => 'in', 'notin' => 'notIn', 'null' => 'isNull', 'notnull' => 'isNotNull', 'startswith' => 'startWith', 'endswith' => 'endWith', 'match' => 'match', 'contains' => 'contains', 'dates' => 'dateEqual', 'month' => 'monthEqual', 'year' => 'yearEqual']

$_select

contains column names

protected array<string|int, mixed> $_select = []

$app

protected mixed $app = \null

$customTheme

protected mixed $customTheme = \null

$my

protected mixed $my = \null

$params

protected mixed $params = \null

$props

protected mixed $props = []

Methods

__construct()

public __construct() : mixed

amp()

Generate a rel tag on the header of the page

public amp(mixed $url[, mixed $route = true ]) : mixed
Parameters
$url : mixed
$route : mixed = true
Tags
since
5.1
access

public

canonical()

Generate a canonical tag on the header of the page

public canonical(mixed $url[, mixed $route = true ][, mixed $external = true ]) : mixed
Parameters
$url : mixed
$route : mixed = true
$external : mixed = true
Tags
since
5.1
access

public

checkAcl()

Allows children to check for acl

public checkAcl(mixed $rule[, mixed $default = null ]) : mixed
Parameters
$rule : mixed
$default : mixed = null
Tags
since
5.1
access

public

checkWebviewAccess()

Check for webview access. Currently being use in EB Tablet

public checkWebviewAccess() : mixed
Tags
since
6.0.0
access

public

display()

Responsible to display the entire component output

public display([mixed $tpl = null ]) : mixed
Parameters
$tpl : mixed = null
Tags
since
5.1
access

public

getActiveMenu()

Retrieves the active menu

public getActiveMenu() : mixed
Tags
since
5.0
access

public

getActiveMenuParams()

Retrieves the menu params

public getActiveMenuParams([mixed $internalConfigPrefix = '' ]) : mixed
Parameters
$internalConfigPrefix : mixed = ''
Tags
since
6.0.0
access

public

getDefaultParams()

Generates a default set of menu params

public getDefaultParams() : mixed
Tags
since
6.0.0
access

public

getMenuSuffix()

Retrieve the menu suffix for a page

public getMenuSuffix() : mixed
Tags
since
5.1
access

public

getMessages()

Retrieve any queued messages from the system

public getMessages() : mixed
Tags
since
5.1
access

public

getPlayer()

Retrieve the Lottie Player when a Lottie JSON file is uploaded

public getPlayer() : mixed
Tags
since
6.0.0
access

public

getRssEmail()

Sets the rss author email

public getRssEmail(mixed $author) : mixed
Parameters
$author : mixed
Tags
since
5.1
access

public

getSiteDomainName()

Retrieve the site domain name with protocol

public getSiteDomainName([mixed $withSubfolder = true ]) : mixed
Parameters
$withSubfolder : mixed = true
Tags
since
6.0.11
access

public

isJson()

Check given value is valid JSON

public isJson(string $value[, bool $isReturnMap = false ]) : bool|array<string|int, mixed>
Parameters
$value : string
$isReturnMap : bool = false
Return values
bool|array<string|int, mixed>

isWebviewable()

Experimental method to determine if the view and layout is webview-able

public isWebviewable() : mixed
Tags
since
6.0.0
access

public

macro()

make macro for custom where clause

public static macro(string $name, callable $fn) : bool
Parameters
$name : string
$fn : callable
Return values
bool

orWhere()

make WHERE clause with OR

public orWhere([string $key = null ][, string $condition = null ][, mixed $value = null ]) : $this
Parameters
$key : string = null
$condition : string = null
$value : mixed = null
Return values
$this

preload()

Generate a preload link tag on the header of the page

public preload(mixed $src, mixed $type[, mixed $options = [] ]) : mixed
Parameters
$src : mixed
$type : mixed
$options : mixed = []
Tags
since
6.0.0
access

public

renderHeaders()

Responsible to render the css files on the head

public renderHeaders() : mixed
Tags
since
5.1
access

public

reProcess()

Our system will cache processed data and prevend multiple time processing. If you want to reprocess this method can help you

public reProcess() : $this
Return values
$this

set()

Allows child to set variables

public set(mixed $key[, mixed $value = '' ]) : mixed
Parameters
$key : mixed
$value : mixed = ''
Tags
since
5.1
access

public

setPageTitle()

Responsible to modify the title whenever necessary. Inherited classes should always use this method to set the title

public setPageTitle(mixed $title[, mixed $pagination = null ][, mixed $addSitePrefix = false ]) : mixed
Parameters
$title : mixed
$pagination : mixed = null
$addSitePrefix : mixed = false
Tags
since
5.0
access

public

setPathway()

Adds the breadcrumbs on the site

public setPathway(mixed $title[, mixed $link = '' ]) : mixed
Parameters
$title : mixed
$link : mixed = ''
Tags
since
5.1
access

public

setRssFeed()

Adds the breadcrumbs on the site

public setRssFeed([mixed $link = '' ]) : mixed
Parameters
$link : mixed = ''
Tags
since
5.1
access

public

setTheme()

Allows caller to set a custom theme

public setTheme(mixed $theme) : mixed
Parameters
$theme : mixed
Tags
since
5.1
access

public

setViewBreadcrumb()

Sets view in breadcrumbs

public setViewBreadcrumb([mixed $view = null ]) : mixed
Parameters
$view : mixed = null
Tags
since
5.1
access

public

takeColumn()

public takeColumn(mixed $array) : mixed
Parameters
$array : mixed

where()

make WHERE clause

public where(string $key[, string $condition = null ][, mixed $value = null ]) : $this
Parameters
$key : string
$condition : string = null
$value : mixed = null
Return values
$this

whereBool()

make WHERE Boolean clause

public whereBool(string $key, mixed $value) : $this
Parameters
$key : string
$value : mixed
Return values
$this

whereContains()

make WHERE CONTAINS clause

public whereContains(string $key, string $value) : $this
Parameters
$key : string
$value : string
Return values
$this

whereDate()

make WHERE DATE clause

public whereDate(string $key, string $value) : $this
Parameters
$key : string
$value : string
Return values
$this

whereEndsWith()

make WHERE ENDS WITH clause

public whereEndsWith(string $key, string $value) : $this
Parameters
$key : string
$value : string
Return values
$this

whereIn()

make WHERE IN clause

public whereIn([string $key = null ][, array<string|int, mixed> $value = [] ]) : $this
Parameters
$key : string = null
$value : array<string|int, mixed> = []
Return values
$this

whereMatch()

make WHERE MATCH clause

public whereMatch(string $key, string $value) : $this
Parameters
$key : string
$value : string
Return values
$this

whereMonth()

make WHERE month clause

public whereMonth(string $key, string $value) : $this
Parameters
$key : string
$value : string
Return values
$this

whereNotIn()

make WHERE NOT IN clause

public whereNotIn([string $key = null ][, mixed $value = [] ]) : $this
Parameters
$key : string = null
$value : mixed = []
Return values
$this

whereNotNull()

make WHERE NOT NULL clause

public whereNotNull([string $key = null ]) : $this
Parameters
$key : string = null
Return values
$this

whereNull()

make WHERE NULL clause

public whereNull([string $key = null ]) : $this
Parameters
$key : string = null
Return values
$this

whereStartsWith()

make WHERE START WITH clause

public whereStartsWith(string $key, string $value) : $this
Parameters
$key : string
$value : string
Return values
$this

whereYear()

make WHERE Year clause

public whereYear(string $key, string $value) : $this
Parameters
$key : string
$value : string
Return values
$this

exceptColumn()

selecting specific column

protected exceptColumn(mixed $array) : array<string|int, mixed>
Parameters
$array : mixed
Return values
array<string|int, mixed>

getData()

get data from node path

protected getData() : mixed

getDataFromFile()

Read JSON data from file

protected getDataFromFile(string $file[, string $type = 'application/json' ]) : bool|string|array<string|int, mixed>
Parameters
$file : string
$type : string = 'application/json'
Tags
throws
FileNotFoundException
throws
InvalidJsonException
Return values
bool|string|array<string|int, mixed>

getFromNested()

Get data from nested array

protected getFromNested(mixed $map, mixed $node) : bool|array<string|int, mixed>|mixed
Parameters
$map : mixed

array

$node : mixed

string

Return values
bool|array<string|int, mixed>|mixed

isMultiArray()

Check given value is multidimensional array

protected isMultiArray(array<string|int, mixed> $arr) : bool
Parameters
$arr : array<string|int, mixed>
Return values
bool

makeWhere()

generator for AND and OR where

protected makeWhere(string $key[, string $condition = null ][, mixed $value = null ]) : $this
Parameters
$key : string
$condition : string = null
$value : mixed = null
Return values
$this

objectToArray()

Parse object to array

protected objectToArray(object $obj) : array<string|int, mixed>|mixed
Parameters
$obj : object
Return values
array<string|int, mixed>|mixed

outputJSON()

Renders JSON output on the page

protected outputJSON([mixed $output = null ]) : mixed
Parameters
$output : mixed = null
Tags
since
5.1
access

public

prepareResult()

Prepare data for result

protected prepareResult(mixed $data, bool $isObject) : array<string|int, mixed>|mixed
Parameters
$data : mixed
$isObject : bool
Return values
array<string|int, mixed>|mixed

processConditions()

process AND and OR conditions

protected processConditions() : array<string|int, mixed>|string|object
Tags
throws
ConditionNotAllowedException
Return values
array<string|int, mixed>|string|object

selectColumn()

selecting specific column

protected selectColumn(mixed $array) : array<string|int, mixed>
Parameters
$array : mixed
Return values
array<string|int, mixed>

        
On this page

Search results