Render html component
{{ component(name, params, type) }}
Property | Type | Description | Default | |
---|---|---|---|---|
name | string | required | Html component name | |
params | array | optional | Component parameters | |
type | string | optional | Component type (arikaim, html, static) | arikaim |
Site url
{{ url(path, full, language) }}
Property | Type | Description | Default | |
---|---|---|---|---|
path | string | optional | Url path | |
bool | full | optional | Full or relative url. | false |
language | string | optional | Lnguage code |
Current page url
{{ currentUrl(full) }}
Property | Type | Description | Default | |
---|---|---|---|---|
bool | full | optional | Full or relative url. | true |
Load UI library file
{{ loadLibraryFile(name, fileName) }}
Property | Type | Description | Default | |
---|---|---|---|---|
string | name | required | UI Library name. | |
string | fileName | required | UI Library file name. |
Get current page language.
{{ getLanguage() }}
Create paginator.
{{ paginate(source, namespace, ) }}
Property | Type | Description | Default | |
---|---|---|---|---|
object|array|json | source | required | Data source | |
string|null | namespace | optional | Paginator namespace | |
int|null | pageSize | optional | Page size | 25 |
int|null | currentPage | optional | Current page. | 1 |
Clear saved paginator.
{{ clearPaginator(namespace) }}
Property | Type | Description | Default | |
---|---|---|---|---|
string|null | namespace | required | Paginator namespace |
Get saved paginator.
{{ getPaginator(namespace) }}
Property | Type | Description | Default | |
---|---|---|---|---|
string|null | namespace | required | Paginator namespace |
Get rows per page.
{{ getRowsPerPage(namespace) }}
Property | Type | Description | Default | |
---|---|---|---|---|
string|null | namespace | required | Paginator namespace |
Get view type.
{{ getViewType(namespace, default) }}
Property | Type | Description | Default | |
---|---|---|---|---|
string|null | namespace | required | Paginator namespace | |
string|null | default | optinal | Default view type | table |
Apply search fields to db query builder.
{{ applySearch(queryBuilder, namespace) }}
Property | Type | Description | Default | |
---|---|---|---|---|
Builder|Model | queryBuilder | required | Laravel ORM Query Builder or Db Model | table |
string|null | namespace | required | Search fields namespace |
Create search filed and save to session.
{{ createSearch(queryBuilder, namespace) }}
Property | Type | Description | Default | |
---|---|---|---|---|
string | field | required | Db table column name | |
string|null | namespace | optinal | Search fields namespace | |
string|null | operator | optinal | Search operator | |
string|null | queryOperator | optinal | Search query operator | |
mixed | searchFieldName | optinal | Search field name | search_text |
Get search value.
{{ searchValue(field, namespace, default) }}
Property | Type | Description | Default | |
---|---|---|---|---|
string | field | required | Search field name. | |
string|null | namespace | optinal | Search fields namespace | |
mixed | default | optinal | Search operator |
Get saved search.
{{ getSearch(namespace) }}
Property | Type | Description | Default | |
---|---|---|---|---|
string|null | namespace | optinal | Search fields namespace |
Get saved order by fields list.
{{ getOrderBy(namespace) }}
Property | Type | Description | Default | |
---|---|---|---|---|
string|null | namespace | optinal | OrderBy fields namespace |
Apply OrderBy to db query builder or model.
{{ applyOrderBy(queryBuilder, namespace) }}
Property | Type | Description | Default | |
---|---|---|---|---|
Builder|model | queryBuilder | required | Laravel ORM query builder | |
string|null | namespace | optinal | OrderBy fields namespace |
Create Laravel ORM db model instance.
{{ createModel(class, extensionName, showError) }}
Property | Type | Description | Default | |
---|---|---|---|---|
string | class | required | Model class name | |
string|null | extensionName | optinal | Extension name | |
bool | showError | optinal | Show error. | false |
Show query builder sql.
{{ showSql(builder) }}
Property | Type | Description | Default | |
---|---|---|---|---|
Builder | builder | required | Laravel ORm query builder |
Get file type.
{{ getFileType(fileName) }}
Property | Type | Description | Default | |
---|---|---|---|---|
string | fileName | required | File name. |
Get service instance from service container.
{{ service(name) }}
Property | Type | Description | Default | |
---|---|---|---|---|
string | name | required | Service instance name. |
Date format filter.
{{ timestamp|dateFormat(formatName) }}
Property | Type | Description | |
---|---|---|---|
formatName | string | optional | Format name or empty for default format. |
Return | string |
Time format filter.
{{ timestamp|timeFormat(formatName) }}
Property | Type | Description | |
---|---|---|---|
formatName | string | optional | Format name or empty for default format. |
Return | string |
Date time format filter.
{{ timestamp|dateTimeFormat(formatName) }}
Property | Type | Description | |
---|---|---|---|
formatName | string | optional | Format name or empty for default format. |
Return | string |
We use cookies to personalise content, analyse our traffic and ensure that we give you the best experience on our website.