-
Notifications
You must be signed in to change notification settings - Fork 35
icms_view_block_Object
Raimondas Rimkevičius edited this page Mar 9, 2020
·
1 revision
Notice: Wiki was automatic generated from project sources as project API documentation. Do not edit manually!
ImpressCMS Core Block Object Class
- Class name: icms_view_block_Object
- Namespace:
- Parent class: icms_ipf_Object
const BLOCK_TYPE_SYSTEM = S
const BLOCK_TYPE_MODULE = M
const BLOCK_TYPE_CUSTOM = C
const BLOCK_TYPE_DUPLICATED = K
const BLOCK_TYPE_LEGACY_DUPLICATED = D
const BLOCK_TYPE_LEGACY_CUSTOM = E
const CONTENT_TYPE_HTML = H
const CONTENT_TYPE_PHP = P
const CONTENT_TYPE_AUTO_FORMAT = S
const CONTENT_TYPE_NO_AUTO_FORMAT = T
public array $visiblein = []
Visible areas for block
- Visibility: public
public string name
Name
- Visibility: public
public int bid
Block ID
- Visibility: public
public int mid
Module ID
- Visibility: public
public int func_num
- Visibility: public
public string title
Title
- Visibility: public
public string content
Content
- Visibility: public
public int side
Side
- Visibility: public
public int weight
Weight used for sorting positions
- Visibility: public
public int visible
Is visible?
- Visibility: public
public string block_type
Type
- Visibility: public
public string c_type
- Visibility: public
public int isactive
Is active?
- Visibility: public
public string dirname
Directory name
- Visibility: public
public string func_file
Function file
- Visibility: public
public string show_func
Show function
- Visibility: public
public string edit_func
Edit function
- Visibility: public
public string template
Template
- Visibility: public
public int bcachetime
Cache time
- Visibility: public
public int last_modified
When it was last modified?
- Visibility: public
public string options
Options
- Visibility: public
mixed icms_view_block_Object::__construct(handler, mixed data)
Constructor for the block object
- Visibility: public
- handler mixed
- data mixed
mixed icms_view_block_Object::setVar(mixed name, mixed value, mixed options)
- Visibility: public
- name mixed
- value mixed
- options mixed
string|bool icms_view_block_Object::getOptions()
(HTML-) form for setting the options of the block
- Visibility: public
mixed icms_view_block_Object::getVar(mixed name, mixed format)
- Visibility: public
- name mixed
- format mixed
array icms_view_block_Object::buildBlock()
Builds the block
- Visibility: public
bool icms_view_block_Object::isCustom()
Gets if block is of type custom
For backward compatibility
- Visibility: public
array|bool|mixed|string|string[] icms_view_block_Object::getContent(string format, string c_type)
Gets content for block
- Visibility: public
- format string - <p>Block type</p>
- c_type string - <p>Content type</p>