public function setItemSelected($itemKey) { $tree = $this->getTree(); if (isset($tree[$itemKey])) { $tree[$itemKey]->setSelected(); } }