Метод |
Описание |
|
__construct ( array $paramarray = [] ) |
Constructor for the Block class. |
|
__get ( string $name ) : mixed |
Overrides QueryRecord __get to implement custom object properties |
|
__isset ( string $name ) : boolean |
Overrides QueryRecord __isset, returns whether this Block has the named
data. Falls back to QueryRecord's __isset. |
|
__set ( string $name, mixed $value ) : mixed |
Overrides QueryRecord __set to implement custom object properties |
|
__toString ( ) : string |
Convert this block into a string, just in case there isn't a template associated to this block type |
|
add_to_area ( string $area, integer $order = null, string $scope = null ) |
Add this block to a particular area in the theme |
|
content_type ( ) : array |
Return the content types that this object represents |
|
default_fields ( ) : array |
Return the defined database columns for a Block. |
|
delete ( ) |
Delete this block |
|
fetch ( Theme $theme ) : string |
Render and return the block content |
|
field_load ( string $key ) : mixed |
Load the form value from the block |
|
field_save ( string $key, mixed $value ) |
Saves form fields that are tied to this block. Implements FormStorage. |
|
get_form ( ) : FormUI |
Get the form used to update this block |
|
insert ( ) : boolean | null |
Insert this block into the database |
|
save_block ( FormUI $form ) : boolean |
Display a standard success message upon saving the form |
|
unserialize_data ( ) |
Unserialize the stored block data |
|
update ( ) : boolean | null |
Update this block in the database |
|