App\Core_BlockManager

Inherited from cmsApplication_CategorizedList

Protected Attributes

protected $block_visibilities= []

Protected Methods

protected getAllBlockVisibilities()
Cache block visibilities for current context $SystemDB

Public Methods

public __construct()
public getCurrentMenuId()
public getBlockCountInCategory($category_name)
public getBlocksByCategoryName($category_name)
public displayBlocksByCategoryName($category_name)
public booleangetSingleBlock(type $block_name)
$SystemDB App $CurrentUser
public displaySingleBlock($block_name)
public displayBlockByCategoryNameRerun($title)
public viewMainPage()
Frontend: view the main page. Usually loads view.main.template.php
public intgetExistingBlockCategoryIDWithName(string $title)
Returns category ID# if a block with this name exists. Returns 0 otherwise $SystemDB
public arraygetValidationErrorListBeforeSaveCategory(array $datavalues)
Returns an array of error list if there's an error during save category
public arraymodifyDataValuesBeforeSaveCategory(array $datavalues)
Override default modify category data before save
public modifyDataValuesBeforeSaveItem(array $datavalues)
Override default modify item data before save
public arraygetBlockVisibility(int $id, bool $use_cached_result=false)
Returns block association $SystemDB
public isBlockVisibleInThisMenuId($id, $menu_id)
public booleanfindDuplicateItems(array $data)
Given an associative array $data, find possible duplicate from item's table
public booleanRun(string $command)
Runs command. If return value is true, then it will be displayed as a full page If return value is false, AJAX method is assumed