class NoDependencyIterator in Deploy - Content Staging 7.2
Same name and namespace in other branches
Iterator class for when there are no dependencies to iterate through.
Hierarchy
- class \EntityDependencyIterator implements \RecursiveIterator
- class \DeployIterator
- class \NoDependencyIterator
- class \DeployIterator
Expanded class hierarchy of NoDependencyIterator
1 string reference to 'NoDependencyIterator'
- deploy_auto_plan_entity_dependency_iterator in modules/
deploy_auto_plan/ deploy_auto_plan.module - Implements hook_entity_dependency_iterator().
File
- modules/
deploy_auto_plan/ plugins/ iterator/ deploy_auto_plan.NoDependencyIterator.class.php, line 10 - NoDependencyIterator plugin class definition.
View source
class NoDependencyIterator extends DeployIterator {
/**
* {@inheritdoc}
*/
public function hasChildren() {
return FALSE;
}
/**
* {@inheritdoc}
*/
public function getChildrenEntities() {
return array();
}
/**
* {@inheritdoc}
*/
public function getChildren() {
return new EntityDependencyIterator(array(), $this);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DeployIterator:: |
protected static | property | Cache entity information. | |
DeployIterator:: |
public | function |
We override this method since we need to return UUID entities, with some
extra hooks. Overrides EntityDependencyIterator:: |
|
EntityDependencyIterator:: |
public | property | An array of belongings to the entity being parsed. | |
EntityDependencyIterator:: |
public | property | An array with information on the cause/reason why an entity exists in the tree. Basically, the cause for term A's existance in the tree, might be becasue node B depends on it. | |
EntityDependencyIterator:: |
public | property | Keeps track of entities that have already been checked for dependencies. | |
EntityDependencyIterator:: |
public | property | An array of dependencies to the entity being parsed. | |
EntityDependencyIterator:: |
public | property | The entities to be iterated over. | |
EntityDependencyIterator:: |
public | property | The entity ID of the entity currently being iterated over. | |
EntityDependencyIterator:: |
public | property | The entity type of the entity currently being iterated over. | |
EntityDependencyIterator:: |
public | property | Keeps track of entities that have already been traversed (output). | |
EntityDependencyIterator:: |
public | function | Returns the key of the current element. | |
EntityDependencyIterator:: |
public | function | Moves the current position to the next element. | |
EntityDependencyIterator:: |
public | function | Rewinds the Iterator to the first element. | |
EntityDependencyIterator:: |
public | function | Checks if current position is valid. | |
EntityDependencyIterator:: |
public | function | Constructor. | |
NoDependencyIterator:: |
public | function |
We override this method since we need to return our own iterator. Overrides DeployIterator:: |
|
NoDependencyIterator:: |
public | function |
Helper method to get entity dependencies. Overrides EntityDependencyIterator:: |
|
NoDependencyIterator:: |
public | function |
Returns TRUE if an iterator can be created for the current item in the
entities array. Overrides EntityDependencyIterator:: |