Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
AttributeMetadata.php
Go to the documentation of this file.
1 <?php
8 
10 
17 {
21  public function getAttributeCode()
22  {
23  return $this->_get(self::ATTRIBUTE_CODE);
24  }
25 
29  public function getFrontendInput()
30  {
31  return $this->_get(self::FRONTEND_INPUT);
32  }
33 
37  public function getInputFilter()
38  {
39  return $this->_get(self::INPUT_FILTER);
40  }
41 
45  public function getStoreLabel()
46  {
47  return $this->_get(self::STORE_LABEL);
48  }
49 
53  public function getValidationRules()
54  {
55  return $this->_get(self::VALIDATION_RULES);
56  }
57 
61  public function getMultilineCount()
62  {
63  return $this->_get(self::MULTILINE_COUNT);
64  }
65 
69  public function isVisible()
70  {
71  return $this->_get(self::VISIBLE);
72  }
73 
77  public function isRequired()
78  {
79  return $this->_get(self::REQUIRED);
80  }
81 
85  public function getDataModel()
86  {
87  return $this->_get(self::DATA_MODEL);
88  }
89 
93  public function getOptions()
94  {
95  return $this->_get(self::OPTIONS);
96  }
97 
101  public function getFrontendClass()
102  {
103  return $this->_get(self::FRONTEND_CLASS);
104  }
105 
109  public function isUserDefined()
110  {
111  return $this->_get(self::USER_DEFINED);
112  }
113 
117  public function getSortOrder()
118  {
119  return $this->_get(self::SORT_ORDER);
120  }
121 
125  public function getFrontendLabel()
126  {
127  return $this->_get(self::FRONTEND_LABEL);
128  }
129 
133  public function getNote()
134  {
135  return $this->_get(self::NOTE);
136  }
137 
141  public function isSystem()
142  {
143  return $this->_get(self::SYSTEM);
144  }
145 
149  public function getBackendType()
150  {
151  return $this->_get(self::BACKEND_TYPE);
152  }
153 
161  {
162  return $this->setData(self::ATTRIBUTE_CODE, $attributeCode);
163  }
164 
171  public function setFrontendInput($frontendInput)
172  {
173  return $this->setData(self::FRONTEND_INPUT, $frontendInput);
174  }
175 
182  public function setInputFilter($inputFilter)
183  {
184  return $this->setData(self::INPUT_FILTER, $inputFilter);
185  }
186 
193  public function setStoreLabel($storeLabel)
194  {
195  return $this->setData(self::STORE_LABEL, $storeLabel);
196  }
197 
204  public function setValidationRules(array $validationRules)
205  {
206  return $this->setData(self::VALIDATION_RULES, $validationRules);
207  }
208 
215  public function setMultilineCount($multilineCount)
216  {
217  return $this->setData(self::MULTILINE_COUNT, $multilineCount);
218  }
219 
226  public function setIsVisible($isVisible)
227  {
228  return $this->setData(self::VISIBLE, $isVisible);
229  }
230 
237  public function setIsRequired($isRequired)
238  {
239  return $this->setData(self::REQUIRED, $isRequired);
240  }
241 
248  public function setDataModel($dataModel)
249  {
250  return $this->setData(self::DATA_MODEL, $dataModel);
251  }
252 
259  public function setOptions(array $options = null)
260  {
261  return $this->setData(self::OPTIONS, $options);
262  }
263 
270  public function setFrontendClass($frontendClass)
271  {
272  return $this->setData(self::FRONTEND_CLASS, $frontendClass);
273  }
274 
281  public function setIsUserDefined($isUserDefined)
282  {
283  return $this->setData(self::USER_DEFINED, $isUserDefined);
284  }
285 
292  public function setSortOrder($sortOrder)
293  {
294  return $this->setData(self::SORT_ORDER, $sortOrder);
295  }
296 
303  public function setFrontendLabel($frontendLabel)
304  {
305  return $this->setData(self::FRONTEND_LABEL, $frontendLabel);
306  }
307 
314  public function setNote($note)
315  {
316  return $this->setData(self::NOTE, $note);
317  }
318 
325  public function setIsSystem($isSystem)
326  {
327  return $this->setData(self::SYSTEM, $isSystem);
328  }
329 
336  public function setBackendType($backendType)
337  {
338  return $this->setData(self::BACKEND_TYPE, $backendType);
339  }
340 
344  public function getIsUsedInGrid()
345  {
346  return $this->_get(self::IS_USED_IN_GRID);
347  }
348 
352  public function getIsVisibleInGrid()
353  {
354  return $this->_get(self::IS_VISIBLE_IN_GRID);
355  }
356 
360  public function getIsFilterableInGrid()
361  {
362  return $this->_get(self::IS_FILTERABLE_IN_GRID);
363  }
364 
368  public function getIsSearchableInGrid()
369  {
370  return $this->_get(self::IS_SEARCHABLE_IN_GRID);
371  }
372 
376  public function setIsUsedInGrid($isUsedInGrid)
377  {
378  return $this->setData(self::IS_USED_IN_GRID, $isUsedInGrid);
379  }
380 
384  public function setIsVisibleInGrid($isVisibleInGrid)
385  {
386  return $this->setData(self::IS_VISIBLE_IN_GRID, $isVisibleInGrid);
387  }
388 
392  public function setIsFilterableInGrid($isFilterableInGrid)
393  {
394  return $this->setData(self::IS_FILTERABLE_IN_GRID, $isFilterableInGrid);
395  }
396 
400  public function setIsSearchableInGrid($isSearchableInGrid)
401  {
402  return $this->setData(self::IS_SEARCHABLE_IN_GRID, $isSearchableInGrid);
403  }
404 
408  public function getDefaultValue()
409  {
410  return $this->_get(self::DEFAULT_VALUE);
411  }
412 
416  public function setDefaultValue($defaultValue)
417  {
418  return $this->setData(self::DEFAULT_VALUE, $defaultValue);
419  }
420 }
$attributeCode
Definition: extend.phtml:12
$note
Definition: element.phtml:13