|
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
| validateData ($agreementData) | |
| beforeSave () | |
| getAgreementId () | |
| setAgreementId ($id) | |
| getName () | |
| setName ($name) | |
| getContent () | |
| setContent ($content) | |
| getContentHeight () | |
| setContentHeight ($height) | |
| getCheckboxText () | |
| setCheckboxText ($text) | |
| getIsActive () | |
| setIsActive ($status) | |
| getIsHtml () | |
| setIsHtml ($isHtml) | |
| getMode () | |
| setMode ($mode) | |
| getExtensionAttributes () | |
| setExtensionAttributes (\Magento\CheckoutAgreements\Api\Data\AgreementExtensionInterface $extensionAttributes) | |
Public Member Functions inherited from AbstractExtensibleModel | |
| __construct (\Magento\Framework\Model\Context $context, \Magento\Framework\Registry $registry, ExtensionAttributesFactory $extensionFactory, AttributeValueFactory $customAttributeFactory, \Magento\Framework\Model\ResourceModel\AbstractResource $resource=null, \Magento\Framework\Data\Collection\AbstractDb $resourceCollection=null, array $data=[]) | |
| getCustomAttributes () | |
| getCustomAttribute ($attributeCode) | |
| setCustomAttributes (array $attributes) | |
| setCustomAttribute ($attributeCode, $attributeValue) | |
| setData ($key, $value=null) | |
| unsetData ($key=null) | |
| getData ($key='', $index=null) | |
| setId ($value) | |
| __sleep () | |
| __wakeup () | |
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) | |
Protected Member Functions | |
| _construct () | |
Protected Member Functions inherited from AbstractExtensibleModel | |
| filterCustomAttributes ($data) | |
| initializeCustomAttributes () | |
| convertCustomAttributeValues (array &$customAttributes) | |
| getCustomAttributesCodes () | |
| _setExtensionAttributes (\Magento\Framework\Api\ExtensionAttributesInterface $extensionAttributes) | |
| _getExtensionAttributes () | |
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 | |
| $allowedCssUnits = ['px', 'pc', 'pt', 'ex', 'em', 'mm', 'cm', 'in', '%'] | |
Protected Attributes inherited from AbstractExtensibleModel | |
| $extensionAttributesFactory | |
| $extensionAttributes | |
| $customAttributeFactory | |
| $customAttributesCodes = null | |
| $customAttributesChanged = false | |
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 | |
Data Fields inherited from CustomAttributesDataInterface | |
| const | CUSTOM_ATTRIBUTES = 'custom_attributes' |
Data Fields inherited from ExtensibleDataInterface | |
| const | EXTENSION_ATTRIBUTES_KEY = 'extension_attributes' |
Data Fields inherited from AgreementInterface | |
| const | AGREEMENT_ID = 'agreement_id' |
| const | NAME = 'name' |
| const | CONTENT = 'content' |
| const | CONTENT_HEIGHT = 'content_height' |
| const | CHECKBOX_TEXT = 'checkbox_text' |
| const | IS_ACTIVE = 'is_active' |
| const | IS_HTML = 'is_html' |
| const | MODE = 'mode' |
Static Protected Attributes inherited from DataObject | |
| static | $_underscoreCache = [] |
Definition at line 10 of file Agreement.php.
|
protected |
| beforeSave | ( | ) |
Processing object before save data
Definition at line 51 of file Agreement.php.
| getAgreementId | ( | ) |
#- Returns the agreement ID.
Implements AgreementInterface.
Definition at line 72 of file Agreement.php.
| getCheckboxText | ( | ) |
Returns the agreement checkbox text.
Implements AgreementInterface.
Definition at line 136 of file Agreement.php.
| getContent | ( | ) |
Returns the agreement content.
Implements AgreementInterface.
Definition at line 104 of file Agreement.php.
| getContentHeight | ( | ) |
Returns the agreement content height, which is an optional CSS property.
Implements AgreementInterface.
Definition at line 120 of file Agreement.php.
| getExtensionAttributes | ( | ) |
{Retrieve existing extension attributes object or create a new one.
Implements AgreementInterface.
Definition at line 202 of file Agreement.php.
| getIsActive | ( | ) |
Returns the agreement status.
Implements AgreementInterface.
Definition at line 152 of file Agreement.php.
| getIsHtml | ( | ) |
Returns the agreement content type.
Implements AgreementInterface.
Definition at line 168 of file Agreement.php.
| getMode | ( | ) |
Returns the agreement applied mode.
Implements AgreementInterface.
Definition at line 184 of file Agreement.php.
| getName | ( | ) |
Returns the agreement name.
Implements AgreementInterface.
Definition at line 88 of file Agreement.php.
| setAgreementId | ( | $id | ) |
Sets the agreement ID.
| int | $id |
Implements AgreementInterface.
Definition at line 80 of file Agreement.php.
| setCheckboxText | ( | $text | ) |
Sets the agreement checkbox text.
| string | $text |
Implements AgreementInterface.
Definition at line 144 of file Agreement.php.
| setContent | ( | $content | ) |
Sets the agreement content.
| string | $content |
Implements AgreementInterface.
Definition at line 112 of file Agreement.php.
| setContentHeight | ( | $height | ) |
Sets the agreement content height, which is an optional CSS property.
| string | null | $height |
Implements AgreementInterface.
Definition at line 128 of file Agreement.php.
| setExtensionAttributes | ( | \Magento\CheckoutAgreements\Api\Data\AgreementExtensionInterface | $extensionAttributes | ) |
{Set an extension attributes object.
| \Magento\CheckoutAgreements\Api\Data\AgreementExtensionInterface | $extensionAttributes |
| \Magento\CheckoutAgreements\Api\Data\AgreementExtensionInterface | $extensionAttributes |
Implements AgreementInterface.
Definition at line 213 of file Agreement.php.
| setIsActive | ( | $status | ) |
Sets the agreement status.
| bool | $status |
Implements AgreementInterface.
Definition at line 160 of file Agreement.php.
| setIsHtml | ( | $isHtml | ) |
Sets the agreement content type.
| bool | $isHtml |
Implements AgreementInterface.
Definition at line 176 of file Agreement.php.
| setMode | ( | $mode | ) |
Sets the agreement applied mode.
| int | $mode |
Implements AgreementInterface.
Definition at line 192 of file Agreement.php.
| setName | ( | $name | ) |
Sets the agreement name.
| string | $name |
Implements AgreementInterface.
Definition at line 96 of file Agreement.php.
| validateData | ( | $agreementData | ) |
| \Magento\Framework\DataObject | $agreementData |
Definition at line 32 of file Agreement.php.
|
protected |
Definition at line 17 of file Agreement.php.