Documentation

EasyBlogBlocks extends EasyBlog
in package

Table of Contents

Properties

$app  : mixed
$config  : mixed
$db  : mixed
$doc  : mixed
$input  : mixed
$jconfig  : mixed
$lang  : mixed
$my  : mixed
$string  : mixed

Methods

__construct()  : mixed
createBlock()  : mixed
Creates a new block
format()  : mixed
Formats blocks in the blog post.
get()  : mixed
Retrieves a block handler
getAvailableBlocks()  : mixed
Retrieves a list of blocks available on the site.
getBlockByType()  : mixed
Retrieves a handler provided with the element
getBlockTemplates()  : mixed
Retrieves the available block template on the site
getError()  : mixed
getErrors()  : mixed
hasError()  : mixed
hasErrors()  : mixed
install()  : mixed
Install new blocks
isMobile()  : mixed
Determines if this is a mobile layout
isTablet()  : mixed
Determines if this is a tablet layout
legacyBlockCompatibility()  : mixed
Backward compatibility from note to alert, this changes since 6.0.3
loadLanguage()  : mixed
Helper method to load language
renderAMPBlock()  : mixed
Renders a instant block html code
renderBlockContainer()  : mixed
Renders the block container to be used with the composer
renderBlockData()  : mixed
Renders the inline block data which can be used by the js later.
renderDiffBlocks()  : mixed
Compare and Renders the diff block
renderEditableBlock()  : mixed
Renders editable block html codes
renderInstantBlock()  : mixed
Renders a instant block html code
renderNestedAMPBlocks()  : mixed
renderNestedBlocks()  : mixed
renderNestedInstantBlocks()  : mixed
renderViewableBlock()  : mixed
Renders a block html code
setError()  : mixed
getBlockContent()  : mixed
helper function to get block html for diff

Properties

$app

public mixed $app = \null

$config

public mixed $config = \null

$db

public mixed $db = \null

$doc

public mixed $doc = \null

$input

public mixed $input = \null

$jconfig

public mixed $jconfig = \null

$lang

public mixed $lang = \null

$my

public mixed $my = \null

$string

public mixed $string = \null

Methods

__construct()

public __construct() : mixed

createBlock()

Creates a new block

public createBlock(mixed $type[, mixed $data = array() ][, mixed $props = array() ]) : mixed
Parameters
$type : mixed
$data : mixed = array()
$props : mixed = array()
Tags
since
5.0
access

public

format()

Formats blocks in the blog post.

public format(EasyBlogPost &$blog, mixed $blocks[, mixed $type = 'list' ]) : mixed
Parameters
$blog : EasyBlogPost
$blocks : mixed
$type : mixed = 'list'
Tags
since
4.0
access

public

getAvailableBlocks()

Retrieves a list of blocks available on the site.

public getAvailableBlocks([mixed $type = 'ebd' ]) : mixed
Parameters
$type : mixed = 'ebd'
Tags
since
5.0
access

public

getBlockByType()

Retrieves a handler provided with the element

public getBlockByType(mixed $type) : mixed
Parameters
$type : mixed
Tags
since
5.1
access

public

getBlockTemplates()

Retrieves the available block template on the site

public getBlockTemplates([mixed $options = array() ]) : mixed
Parameters
$options : mixed = array()
Tags
since
6.0.0
access

public

getError()

public getError() : mixed

getErrors()

public getErrors() : mixed

hasError()

public hasError() : mixed

hasErrors()

public hasErrors() : mixed

install()

Install new blocks

public install(mixed $file) : mixed
Parameters
$file : mixed
Tags
since
5.1
access

public

isMobile()

Determines if this is a mobile layout

public isMobile() : mixed
Tags
since
5.1
access

public

isTablet()

Determines if this is a tablet layout

public isTablet() : mixed
Tags
since
5.3
access

public

legacyBlockCompatibility()

Backward compatibility from note to alert, this changes since 6.0.3

public legacyBlockCompatibility(mixed $block) : mixed
Parameters
$block : mixed
Tags
since
6.0.4
access

public

loadLanguage()

Helper method to load language

public loadLanguage([mixed $admin = false ]) : mixed
Parameters
$admin : mixed = false
Tags
since
5.0
access

public

renderAMPBlock()

Renders a instant block html code

public renderAMPBlock(mixed $block[, mixed $stripTags = false ]) : mixed
Parameters
$block : mixed
$stripTags : mixed = false
Tags
since
5.0
access

public

renderBlockContainer()

Renders the block container to be used with the composer

public renderBlockContainer(mixed $mode, mixed $block, mixed $blockHtml[, mixed $postTemplateIsLocked = false ][, mixed $blockTemplateId = false ]) : mixed
Parameters
$mode : mixed
$block : mixed
$blockHtml : mixed
$postTemplateIsLocked : mixed = false
$blockTemplateId : mixed = false
Tags
since
5.0
access

public

renderBlockData()

Renders the inline block data which can be used by the js later.

public renderBlockData(mixed $block[, mixed $handler = null ]) : mixed

The data consists of a textarea with json encoded meta data from the block

Parameters
$block : mixed
$handler : mixed = null
Tags
since
5.0
access

public

renderDiffBlocks()

Compare and Renders the diff block

public renderDiffBlocks(mixed $block, mixed $arrBlocks) : mixed
Parameters
$block : mixed
$arrBlocks : mixed
Tags
since
5.0
access

public

renderEditableBlock()

Renders editable block html codes

public renderEditableBlock(mixed $block[, mixed $renderData = true ][, mixed $postTemplateIsLocked = false ][, mixed $blockTemplateId = false ]) : mixed
Parameters
$block : mixed
$renderData : mixed = true
$postTemplateIsLocked : mixed = false
$blockTemplateId : mixed = false
Tags
since
5.0
access

public

renderInstantBlock()

Renders a instant block html code

public renderInstantBlock(mixed $block[, mixed $stripTags = false ]) : mixed
Parameters
$block : mixed
$stripTags : mixed = false
Tags
since
5.0
access

public

renderNestedAMPBlocks()

public renderNestedAMPBlocks(mixed $block, mixed $blockHtml[, mixed $stripTags = false ]) : mixed
Parameters
$block : mixed
$blockHtml : mixed
$stripTags : mixed = false

renderNestedBlocks()

public renderNestedBlocks(mixed $mode, mixed $block, mixed $blockHtml[, mixed $stripTags = false ][, mixed $useRelative = false ][, mixed $postTemplateIsLocked = false ]) : mixed
Parameters
$mode : mixed
$block : mixed
$blockHtml : mixed
$stripTags : mixed = false
$useRelative : mixed = false
$postTemplateIsLocked : mixed = false

renderNestedInstantBlocks()

public renderNestedInstantBlocks(mixed $block, mixed $blockHtml[, mixed $stripTags = false ]) : mixed
Parameters
$block : mixed
$blockHtml : mixed
$stripTags : mixed = false

renderViewableBlock()

Renders a block html code

public renderViewableBlock(mixed $block[, mixed $stripTags = false ][, mixed $useRelative = false ]) : mixed
Parameters
$block : mixed
$stripTags : mixed = false
$useRelative : mixed = false
Tags
since
5.1
access

public

setError()

public setError(mixed $msg) : mixed
Parameters
$msg : mixed

getBlockContent()

helper function to get block html for diff

private getBlockContent(mixed $block) : mixed
Parameters
$block : mixed
Tags
since
5.1
access

public


        
On this page

Search results