NodeListStrategy Class Reference
Detailed Description
NodeListStrategy implements a list of entities that is retrieved from the store, where the keys are the object ids and the values are the display values.
Configuration examples:
// list all authors
{"type":"node","types":["Author"]}
// list all authors and books
{"type":"node","types":["Author","Book"]}
// list all authors with name starting with A (see StringQuery)
{"type":"node","types":["Author"],"query":"Author.name LIKE 'A%'"}
Definition at line 41 of file NodeListStrategy.php.
Inheritance diagram for NodeListStrategy:
Public Member Functions | |
__construct (Cache $dynamicCache) | |
getList ($options, $valuePattern=null, $key=null, $language=null) | |
isStatic ($options) | |
Public Attributes | |
const | CACHE_SECTION = 'nodeliststrategy' |
Protected Attributes | |
$cache = null | |
Constructor & Destructor Documentation
◆ __construct()
__construct | ( | Cache | $dynamicCache | ) |
Constructor.
- Parameters
-
$dynamicCache Cache instance
Definition at line 51 of file NodeListStrategy.php.
Member Function Documentation
◆ getList()
getList | ( | $options, | |
$valuePattern = null , |
|||
$key = null , |
|||
$language = null |
|||
) |
- See also
- ListStrategy::getList $options is an associative array with keys 'types' and 'query' (optional)
Implements ListStrategy.
Definition at line 59 of file NodeListStrategy.php.
◆ isStatic()
isStatic | ( | $options | ) |
- See also
- ListStrategy::isStatic
Implements ListStrategy.
Definition at line 125 of file NodeListStrategy.php.
Member Data Documentation
◆ CACHE_SECTION
const CACHE_SECTION = 'nodeliststrategy' |
Definition at line 43 of file NodeListStrategy.php.
◆ $cache
|
protected |
Definition at line 45 of file NodeListStrategy.php.