function &getTreeAsSelect($name, $label) { include_once 'n_cache.php'; include_once 'n_quickform.php'; if (!($options = NCache::getTreeAsSelect())) { $options = $this->getOptions(false); if ($options) { NCache::createTreeAsSelect($options); } } return NQuickForm::createElement('select', $name, $label, $options); }