BlocksManager
in package
Class BlocksManager
Table of Contents
- $blocks : mixed
- $disabledBlocks : mixed
- $enabledBlocks : mixed
- __construct() : mixed
- BlockManager constructor.
- addBlock() : mixed
- block_categories() : mixed
- block_categories_all() : mixed
- getBlocks() : mixed
- getDisabledBlocks() : mixed
- getEnabledBlocks() : mixed
- hasDisabledBlocks() : mixed
- hasEnabledBlocks() : mixed
- hasGetwidBlocks() : mixed
- Determine whether a post or content string has Getwid blocks.
- hasGetwidNestedBlocks() : mixed
- includeBlocks() : mixed
- require_block() : mixed
Properties
$blocks
private
mixed
$blocks
= array()
$disabledBlocks
private
mixed
$disabledBlocks
= array()
$enabledBlocks
private
mixed
$enabledBlocks
= array()
Methods
__construct()
BlockManager constructor.
public
__construct() : mixed
Return values
mixed —addBlock()
public
addBlock(mixed $block) : mixed
Parameters
- $block : mixed
Return values
mixed —block_categories()
public
block_categories(mixed $categories, mixed $post) : mixed
Parameters
- $categories : mixed
- $post : mixed
Return values
mixed —block_categories_all()
public
block_categories_all(mixed $block_categories, mixed $editor_context) : mixed
Parameters
- $block_categories : mixed
- $editor_context : mixed
Return values
mixed —getBlocks()
public
getBlocks() : mixed
Return values
mixed —getDisabledBlocks()
public
getDisabledBlocks() : mixed
Return values
mixed —getEnabledBlocks()
public
getEnabledBlocks() : mixed
Return values
mixed —hasDisabledBlocks()
public
hasDisabledBlocks() : mixed
Return values
mixed —hasEnabledBlocks()
public
hasEnabledBlocks() : mixed
Return values
mixed —hasGetwidBlocks()
Determine whether a post or content string has Getwid blocks.
public
hasGetwidBlocks() : mixed
Return values
mixed —hasGetwidNestedBlocks()
public
hasGetwidNestedBlocks() : mixed
Return values
mixed —includeBlocks()
public
includeBlocks() : mixed
Return values
mixed —require_block()
private
require_block(mixed $block_file_name) : mixed
Parameters
- $block_file_name : mixed