|
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
| beforeSave () | |
| getIdentities () | |
| getId () | |
| getIdentifier () | |
| getTitle () | |
| getContent () | |
| getCreationTime () | |
| getUpdateTime () | |
| isActive () | |
| setId ($id) | |
| setIdentifier ($identifier) | |
| setTitle ($title) | |
| setContent ($content) | |
| setCreationTime ($creationTime) | |
| setUpdateTime ($updateTime) | |
| setIsActive ($isActive) | |
| getStores () | |
| getAvailableStatuses () | |
Public Member Functions inherited from AbstractModel | |
| __construct (\Magento\Framework\Model\Context $context, \Magento\Framework\Registry $registry, \Magento\Framework\Model\ResourceModel\AbstractResource $resource=null, \Magento\Framework\Data\Collection\AbstractDb $resourceCollection=null, array $data=[]) | |
| __sleep () | |
| __wakeup () | |
| setIdFieldName ($name) | |
| getIdFieldName () | |
| getId () | |
| setId ($value) | |
| isDeleted ($isDeleted=null) | |
| hasDataChanges () | |
| setData ($key, $value=null) | |
| unsetData ($key=null) | |
| setDataChanges ($value) | |
| getOrigData ($key=null) | |
| setOrigData ($key=null, $data=null) | |
| dataHasChangedFor ($field) | |
| getResourceName () | |
| getResourceCollection () | |
| getCollection () | |
| load ($modelId, $field=null) | |
| beforeLoad ($identifier, $field=null) | |
| afterLoad () | |
| isSaveAllowed () | |
| setHasDataChanges ($flag) | |
| save () | |
| afterCommitCallback () | |
| isObjectNew ($flag=null) | |
| beforeSave () | |
| validateBeforeSave () | |
| getCacheTags () | |
| cleanModelCache () | |
| afterSave () | |
| delete () | |
| beforeDelete () | |
| afterDelete () | |
| afterDeleteCommit () | |
| getResource () | |
| getEntityId () | |
| setEntityId ($entityId) | |
| clearInstance () | |
| getStoredData () | |
| getEventPrefix () | |
Public Member Functions inherited from DataObject | |
| __construct (array $data=[]) | |
| addData (array $arr) | |
| setData ($key, $value=null) | |
| unsetData ($key=null) | |
| getData ($key='', $index=null) | |
| getDataByPath ($path) | |
| getDataByKey ($key) | |
| setDataUsingMethod ($key, $args=[]) | |
| getDataUsingMethod ($key, $args=null) | |
| hasData ($key='') | |
| toArray (array $keys=[]) | |
| convertToArray (array $keys=[]) | |
| toXml (array $keys=[], $rootName='item', $addOpenTag=false, $addCdata=true) | |
| convertToXml (array $arrAttributes=[], $rootName='item', $addOpenTag=false, $addCdata=true) | |
| toJson (array $keys=[]) | |
| convertToJson (array $keys=[]) | |
| toString ($format='') | |
| __call ($method, $args) | |
| isEmpty () | |
| serialize ($keys=[], $valueSeparator='=', $fieldSeparator=' ', $quote='"') | |
| debug ($data=null, &$objects=[]) | |
| offsetSet ($offset, $value) | |
| offsetExists ($offset) | |
| offsetUnset ($offset) | |
| offsetGet ($offset) | |
Data Fields | |
| const | CACHE_TAG = 'cms_b' |
| const | STATUS_ENABLED = 1 |
| const | STATUS_DISABLED = 0 |
Data Fields inherited from BlockInterface | |
| const | BLOCK_ID = 'block_id' |
| const | IDENTIFIER = 'identifier' |
| const | TITLE = 'title' |
| const | CONTENT = 'content' |
| const | CREATION_TIME = 'creation_time' |
| const | UPDATE_TIME = 'update_time' |
| const | IS_ACTIVE = 'is_active' |
Protected Member Functions | |
| _construct () | |
Protected Member Functions inherited from AbstractModel | |
| _construct () | |
| _init ($resourceModel) | |
| _setResourceModel ($resourceName, $collectionName=null) | |
| _getResource () | |
| _getEventData () | |
| _beforeLoad ($modelId, $field=null) | |
| _afterLoad () | |
| _hasModelChanged () | |
| _getValidatorBeforeSave () | |
| _createValidatorBeforeSave () | |
| _getValidationRulesBeforeSave () | |
| _clearReferences () | |
| _clearData () | |
Protected Member Functions inherited from DataObject | |
| _getData ($key) | |
| _underscore ($name) | |
Protected Attributes | |
| $_cacheTag = self::CACHE_TAG | |
| $_eventPrefix = 'cms_block' | |
Protected Attributes inherited from AbstractModel | |
| $_eventPrefix = 'core_abstract' | |
| $_eventObject = 'object' | |
| $_idFieldName = 'id' | |
| $_hasDataChanges = false | |
| $_origData | |
| $_isDeleted = false | |
| $_resource | |
| $_resourceCollection | |
| $_resourceName | |
| $_collectionName | |
| $_cacheTag = false | |
| $_dataSaveAllowed = true | |
| $_isObjectNew = null | |
| $_validatorBeforeSave = null | |
| $_eventManager | |
| $_cacheManager | |
| $_registry | |
| $_logger | |
| $_appState | |
| $_actionValidator | |
| $storedData = [] | |
Protected Attributes inherited from DataObject | |
| $_data = [] | |
Additional Inherited Members | |
Static Protected Attributes inherited from DataObject | |
| static | $_underscoreCache = [] |
CMS block model
@method Block setStoreId(array $storeId) @method array getStoreId()
| beforeSave | ( | ) |
Prevent blocks recursion
Definition at line 57 of file Block.php.
| getAvailableStatuses | ( | ) |
| getContent | ( | ) |
Retrieve block content
Implements BlockInterface.
Definition at line 117 of file Block.php.
| getCreationTime | ( | ) |
Retrieve block creation time
Implements BlockInterface.
Definition at line 127 of file Block.php.
| getId | ( | ) |
| getIdentifier | ( | ) |
Retrieve block identifier
Implements BlockInterface.
Definition at line 97 of file Block.php.
| getIdentities | ( | ) |
| getTitle | ( | ) |
Retrieve block title
Implements BlockInterface.
Definition at line 107 of file Block.php.
| getUpdateTime | ( | ) |
Retrieve block update time
Implements BlockInterface.
Definition at line 137 of file Block.php.
| isActive | ( | ) |
| setContent | ( | $content | ) |
Set content
| string | $content |
Implements BlockInterface.
Definition at line 191 of file Block.php.
| setCreationTime | ( | $creationTime | ) |
Set creation time
| string | $creationTime |
Implements BlockInterface.
Definition at line 202 of file Block.php.
| setId | ( | $id | ) |
Set ID
| int | $id |
Implements BlockInterface.
Definition at line 158 of file Block.php.
| setIdentifier | ( | $identifier | ) |
Set identifier
| string | $identifier |
Implements BlockInterface.
Definition at line 169 of file Block.php.
| setIsActive | ( | $isActive | ) |
Set is active
| bool | int | $isActive |
Implements BlockInterface.
Definition at line 224 of file Block.php.
| setTitle | ( | $title | ) |
Set title
| string | $title |
Implements BlockInterface.
Definition at line 180 of file Block.php.
| setUpdateTime | ( | $updateTime | ) |
Set update time
| string | $updateTime |
Implements BlockInterface.
Definition at line 213 of file Block.php.