RepoWidget extends Repo
Register widget with vue for Mainpage
Table of Contents
Methods
- bind() : PublicActionResult
- Can't use this method for widgets - @see parent
- checkContent() : PublicActionResult
- Check content for bad substring.
- debug() : PublicActionResult
- Enable or disable widgets debug logging
- fetchData() : PublicActionResult
- getAppInfo() : PublicActionResult
- Can't use this method for widgets - @see parent
- getList() : PublicActionResult
- Get items of current app.
- register() : PublicActionResult
- Registers new block.
- unbind() : PublicActionResult
- Can't use this method for widgets - @see parent
- unregister() : PublicActionResult
- Unregister block.
Methods
bind()
Can't use this method for widgets - @see parent
public
static bind(array<string|int, mixed> $fields) : PublicActionResult
Parameters
- $fields : array<string|int, mixed>
-
Fields array.
Return values
PublicActionResultcheckContent()
Check content for bad substring.
public
static checkContent(string $content[, string $splitter = '#SANITIZE#' ]) : PublicActionResult
Parameters
- $content : string
- $splitter : string = '#SANITIZE#'
Return values
PublicActionResultdebug()
Enable or disable widgets debug logging
public
static debug(bool $enable) : PublicActionResult
Parameters
- $enable : bool
Return values
PublicActionResultfetchData()
public
static fetchData(int $blockId[, array<string|int, mixed> $params = [] ]) : PublicActionResult
Parameters
- $blockId : int
- $params : array<string|int, mixed> = []
Return values
PublicActionResultgetAppInfo()
Can't use this method for widgets - @see parent
public
static getAppInfo(string $code) : PublicActionResult
Parameters
- $code : string
-
App code.
Return values
PublicActionResultgetList()
Get items of current app.
public
static getList([array<string|int, mixed> $params = array() ]) : PublicActionResult
Parameters
- $params : array<string|int, mixed> = array()
-
Params ORM array.
Return values
PublicActionResultregister()
Registers new block.
public
static register(string $code, array<string|int, mixed> $fields[, array<string|int, mixed> $manifest = [] ]) : PublicActionResult
Parameters
- $code : string
-
Unique code of block (unique within app).
- $fields : array<string|int, mixed>
-
Block data.
- $manifest : array<string|int, mixed> = []
-
Manifest data.
Return values
PublicActionResultunbind()
Can't use this method for widgets - @see parent
public
static unbind(string $code[, string $handler = null ]) : PublicActionResult
Parameters
- $code : string
-
Placement code.
- $handler : string = null
-
Handler path (if you want delete specific).
Return values
PublicActionResultunregister()
Unregister block.
public
static unregister(string $code) : PublicActionResult
Parameters
- $code : string
-
Code of block.