/**
  * Expands element
  */
 public function expand($expandParents = false)
 {
     if ($this->isExpandable()) {
         $this->isExpended = null === $this->refUid ? true : false;
         $this->rebuildStringArraySearch();
         // notify parent, if any
         if ($this->parent) {
             $this->parent->notifyChildModification($this);
         }
     }
     // expand parent
     if ($expandParents && $this->parent) {
         $this->parent->expand(true);
     }
 }
 /**
  * {@inheritdoc}
  */
 public function expand($expandParents = false)
 {
     $this->clearCaches();
     $this->wrapped->expand($expandParents);
     parent::expand($expandParents);
 }
예제 #3
0
 /**
  * Expands a var and all of its children
  * @param \Bugzorcist\VarDump\Ncurses\VarDump\NcursesVarDumpTypeAbstract $var var to expand
  */
 protected function expandAll(NcursesVarDumpTypeAbstract $var)
 {
     $var->expand();
     $children = $var->getChildren();
     foreach ($children as $child) {
         $this->expandAll($child);
     }
 }