Ejemplo n.º 1
0
 /**
  * Check the state of a model and set the metadata accordingly.
  *
  * @param ModelInterface $model The model of which the state shall be checked of.
  *
  * @param int            $level The tree level the model is contained within.
  *
  * @return void
  */
 private function determineModelState(ModelInterface $model, $level)
 {
     $model->setMeta(DCGE::TREE_VIEW_LEVEL, $level);
     $model->setMeta($model::SHOW_CHILDREN, $this->states->isModelOpen($model->getProviderName(), $model->getId()));
 }