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
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
get()
Retrieves a block handler
public
get(EasyBlogTableBlock $block) : mixed
Parameters
- $block : EasyBlogTableBlock
Tags
getAvailableBlocks()
Retrieves a list of blocks available on the site.
public
getAvailableBlocks([mixed $type = 'ebd' ]) : mixed
Parameters
- $type : mixed = 'ebd'
Tags
getBlockByType()
Retrieves a handler provided with the element
public
getBlockByType(mixed $type) : mixed
Parameters
- $type : mixed
Tags
getBlockTemplates()
Retrieves the available block template on the site
public
getBlockTemplates([mixed $options = array() ]) : mixed
Parameters
- $options : mixed = array()
Tags
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
isMobile()
Determines if this is a mobile layout
public
isMobile() : mixed
Tags
isTablet()
Determines if this is a tablet layout
public
isTablet() : mixed
Tags
legacyBlockCompatibility()
Backward compatibility from note to alert, this changes since 6.0.3
public
legacyBlockCompatibility(mixed $block) : mixed
Parameters
- $block : mixed
Tags
loadLanguage()
Helper method to load language
public
loadLanguage([mixed $admin = false ]) : mixed
Parameters
- $admin : mixed = false
Tags
renderAMPBlock()
Renders a instant block html code
public
renderAMPBlock(mixed $block[, mixed $stripTags = false ]) : mixed
Parameters
- $block : mixed
- $stripTags : mixed = false
Tags
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
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
renderDiffBlocks()
Compare and Renders the diff block
public
renderDiffBlocks(mixed $block, mixed $arrBlocks) : mixed
Parameters
- $block : mixed
- $arrBlocks : mixed
Tags
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
renderInstantBlock()
Renders a instant block html code
public
renderInstantBlock(mixed $block[, mixed $stripTags = false ]) : mixed
Parameters
- $block : mixed
- $stripTags : mixed = false
Tags
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
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