longyi c9405dd336 vendor 5 years ago
..
Argument c9405dd336 vendor 5 years ago
Collection c9405dd336 vendor 5 years ago
Form c9405dd336 vendor 5 years ago
Helper c9405dd336 vendor 5 years ago
Test c9405dd336 vendor 5 years ago
Tree c9405dd336 vendor 5 years ago
Wysiwyg c9405dd336 vendor 5 years ago
etc c9405dd336 vendor 5 years ago
AbstractCriteria.php c9405dd336 vendor 5 years ago
AbstractDataObject.php c9405dd336 vendor 5 years ago
AbstractSearchCriteriaBuilder.php c9405dd336 vendor 5 years ago
AbstractSearchResult.php c9405dd336 vendor 5 years ago
Collection.php c9405dd336 vendor 5 years ago
CollectionDataSourceInterface.php c9405dd336 vendor 5 years ago
CollectionModifier.php c9405dd336 vendor 5 years ago
CollectionModifierInterface.php c9405dd336 vendor 5 years ago
DataArray.php c9405dd336 vendor 5 years ago
Form.php c9405dd336 vendor 5 years ago
FormFactory.php c9405dd336 vendor 5 years ago
Graph.php c9405dd336 vendor 5 years ago
ObjectFactory.php c9405dd336 vendor 5 years ago
OptionSourceInterface.php c9405dd336 vendor 5 years ago
README.md c9405dd336 vendor 5 years ago
Schema.php c9405dd336 vendor 5 years ago
SearchResultInterface.php c9405dd336 vendor 5 years ago
SearchResultIterator.php c9405dd336 vendor 5 years ago
SearchResultIteratorFactory.php c9405dd336 vendor 5 years ago
SearchResultProcessor.php c9405dd336 vendor 5 years ago
SearchResultProcessorFactory.php c9405dd336 vendor 5 years ago
SearchResultProcessorInterface.php c9405dd336 vendor 5 years ago
Structure.php c9405dd336 vendor 5 years ago
Tree.php c9405dd336 vendor 5 years ago
TreeFactory.php c9405dd336 vendor 5 years ago
ValueSourceInterface.php c9405dd336 vendor 5 years ago

README.md

Data

Data library provides support to form, data interpreters and some data structures that support database and layout

Form

Forms hold entity data and provide way to render data out. This library provides a list of different type form elements.

Data Interpreters

Data interpreter is responsible for computation of effective value, i.e. evaluation of input data. Each individual interpreter recognizes only one particular type of input data. Magento\Framework\Data\Argument\Interpreter\Composite is used to dynamically choose which of underlying interpreters to delegate evaluation to. Child interpreters can be registered in it via constructor and later on through the adder method of its public interface. Each sub-interpreter is associated with a unique name during adding to the composite. In order to make a decision of which interpreter to use, input data has to carry an extra metadata – data key carrying name of an interpreter to use. Metadata value is intended for the composite interpreter only, thus it's not passed down to underlying interpreters. Data interpreters are used for handling DI arguments and layout arguments.

Supported Data Structures

Data Collections

Data Collection is traversable, countable, ordered list. Class Magento\Framework\Data\Collection is at the top of the collections hierarchy. Every collection in the system is its descendant, directly or indirectly.

  • Database Data Collections are used to load items from a database. Two fetching strategies are supported in this library:

    • Cache fetching strategy - retrieve data from cache
    • Query fetching strategy - retrieve data from database
  • Filesystem Data Collection is used to scan a folder for files and/or folders.

DataArray

DataArray is data container with array access.

Graph

Graph is a graph data structure with some basic validation of nodes and search features.

Tree

Tree is a tree data structure. It is used to hold database data.

Structure

Structure is a hierarchical data structure of elements. A structure contains elements; elements can be grouped into groups under the structure. It is used in layout.