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
= []
$_isProcessed
protected
bool
$_isProcessed
= false
$_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
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
checkAcl()
Allows children to check for acl
public
checkAcl(mixed $rule[, mixed $default = null ]) : mixed
Parameters
- $rule : mixed
- $default : mixed = null
Tags
checkWebviewAccess()
Check for webview access. Currently being use in EB Tablet
public
checkWebviewAccess() : mixed
Tags
display()
Responsible to display the entire component output
public
display([mixed $tpl = null ]) : mixed
Parameters
- $tpl : mixed = null
Tags
getActiveMenu()
Retrieves the active menu
public
getActiveMenu() : mixed
Tags
getActiveMenuParams()
Retrieves the menu params
public
getActiveMenuParams([mixed $internalConfigPrefix = '' ]) : mixed
Parameters
- $internalConfigPrefix : mixed = ''
Tags
getDefaultParams()
Generates a default set of menu params
public
getDefaultParams() : mixed
Tags
getMenuSuffix()
Retrieve the menu suffix for a page
public
getMenuSuffix() : mixed
Tags
getMessages()
Retrieve any queued messages from the system
public
getMessages() : mixed
Tags
getPlayer()
Retrieve the Lottie Player when a Lottie JSON file is uploaded
public
getPlayer() : mixed
Tags
getRssEmail()
Sets the rss author email
public
getRssEmail(mixed $author) : mixed
Parameters
- $author : mixed
Tags
getSiteDomainName()
Retrieve the site domain name with protocol
public
getSiteDomainName([mixed $withSubfolder = true ]) : mixed
Parameters
- $withSubfolder : mixed = true
Tags
import()
import data from file
public
import([string|null $file = null ]) : bool
Parameters
- $file : string|null = null
Tags
Return values
boolisJson()
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
macro()
make macro for custom where clause
public
static macro(string $name, callable $fn) : bool
Parameters
- $name : string
- $fn : callable
Return values
boolorWhere()
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
$thispreload()
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
renderHeaders()
Responsible to render the css files on the head
public
renderHeaders() : mixed
Tags
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
$thisset()
Allows child to set variables
public
set(mixed $key[, mixed $value = '' ]) : mixed
Parameters
- $key : mixed
- $value : mixed = ''
Tags
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
setPathway()
Adds the breadcrumbs on the site
public
setPathway(mixed $title[, mixed $link = '' ]) : mixed
Parameters
- $title : mixed
- $link : mixed = ''
Tags
setRssFeed()
Adds the breadcrumbs on the site
public
setRssFeed([mixed $link = '' ]) : mixed
Parameters
- $link : mixed = ''
Tags
setTheme()
Allows caller to set a custom theme
public
setTheme(mixed $theme) : mixed
Parameters
- $theme : mixed
Tags
setViewBreadcrumb()
Sets view in breadcrumbs
public
setViewBreadcrumb([mixed $view = null ]) : mixed
Parameters
- $view : mixed = null
Tags
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
$thiswhereBool()
make WHERE Boolean clause
public
whereBool(string $key, mixed $value) : $this
Parameters
- $key : string
- $value : mixed
Return values
$thiswhereContains()
make WHERE CONTAINS clause
public
whereContains(string $key, string $value) : $this
Parameters
- $key : string
- $value : string
Return values
$thiswhereDate()
make WHERE DATE clause
public
whereDate(string $key, string $value) : $this
Parameters
- $key : string
- $value : string
Return values
$thiswhereEndsWith()
make WHERE ENDS WITH clause
public
whereEndsWith(string $key, string $value) : $this
Parameters
- $key : string
- $value : string
Return values
$thiswhereIn()
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
$thiswhereMatch()
make WHERE MATCH clause
public
whereMatch(string $key, string $value) : $this
Parameters
- $key : string
- $value : string
Return values
$thiswhereMonth()
make WHERE month clause
public
whereMonth(string $key, string $value) : $this
Parameters
- $key : string
- $value : string
Return values
$thiswhereNotIn()
make WHERE NOT IN clause
public
whereNotIn([string $key = null ][, mixed $value = [] ]) : $this
Parameters
- $key : string = null
- $value : mixed = []
Return values
$thiswhereNotNull()
make WHERE NOT NULL clause
public
whereNotNull([string $key = null ]) : $this
Parameters
- $key : string = null
Return values
$thiswhereNull()
make WHERE NULL clause
public
whereNull([string $key = null ]) : $this
Parameters
- $key : string = null
Return values
$thiswhereStartsWith()
make WHERE START WITH clause
public
whereStartsWith(string $key, string $value) : $this
Parameters
- $key : string
- $value : string
Return values
$thiswhereYear()
make WHERE Year clause
public
whereYear(string $key, string $value) : $this
Parameters
- $key : string
- $value : string
Return values
$thisexceptColumn()
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
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>|mixedisMultiArray()
Check given value is multidimensional array
protected
isMultiArray(array<string|int, mixed> $arr) : bool
Parameters
- $arr : array<string|int, mixed>
Return values
boolmakeWhere()
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
$thisobjectToArray()
Parse object to array
protected
objectToArray(object $obj) : array<string|int, mixed>|mixed
Parameters
- $obj : object
Return values
array<string|int, mixed>|mixedoutputJSON()
Renders JSON output on the page
protected
outputJSON([mixed $output = null ]) : mixed
Parameters
- $output : mixed = null
Tags
prepare()
Prepare data from desire conditions
protected
prepare() : $this
Tags
Return values
$thisprepareResult()
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>|mixedprocessConditions()
process AND and OR conditions
protected
processConditions() : array<string|int, mixed>|string|object
Tags
Return values
array<string|int, mixed>|string|objectselectColumn()
selecting specific column
protected
selectColumn(mixed $array) : array<string|int, mixed>
Parameters
- $array : mixed