You are here

class NoDependencyIterator in Deploy - Content Staging 7.3

Same name and namespace in other branches
  1. 7.2 modules/deploy_auto_plan/plugins/iterator/deploy_auto_plan.NoDependencyIterator.class.php \NoDependencyIterator

Iterator class for when there are no dependencies to iterate through.

Hierarchy

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

Namesort descending Modifiers Type Description Overrides
DeployIterator::$entity_info protected static property Cache entity information.
DeployIterator::current public function We override this method since we need to return UUID entities, with some extra hooks. Overrides EntityDependencyIterator::current
EntityDependencyIterator::$belongings public property An array of belongings to the entity being parsed.
EntityDependencyIterator::$causes 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::$checked public property Keeps track of entities that have already been checked for dependencies.
EntityDependencyIterator::$dependencies public property An array of dependencies to the entity being parsed.
EntityDependencyIterator::$entities public property The entities to be iterated over.
EntityDependencyIterator::$entityId public property The entity ID of the entity currently being iterated over.
EntityDependencyIterator::$entityType public property The entity type of the entity currently being iterated over.
EntityDependencyIterator::$traversed public property Keeps track of entities that have already been traversed (output).
EntityDependencyIterator::key public function Returns the key of the current element.
EntityDependencyIterator::next public function Moves the current position to the next element.
EntityDependencyIterator::rewind public function Rewinds the Iterator to the first element.
EntityDependencyIterator::valid public function Checks if current position is valid.
EntityDependencyIterator::__construct public function Constructor.
NoDependencyIterator::getChildren public function We override this method since we need to return our own iterator. Overrides DeployIterator::getChildren
NoDependencyIterator::getChildrenEntities public function Helper method to get entity dependencies. Overrides EntityDependencyIterator::getChildrenEntities
NoDependencyIterator::hasChildren public function Returns TRUE if an iterator can be created for the current item in the entities array. Overrides EntityDependencyIterator::hasChildren