/** * Returns a tree pre-pending prompt message * * @param string $text * @return array */ public function getPromtWithCategoriesTree($text) { $tree = $this->getCategoriesTree(); ArrayUtils::assocPrepend($tree, null, $text); return $tree; }
/** * Returns a tree pre-pending prompting message * * @param string $text * @return array */ public function fetchAllAsTreeWithPromt($text) { $tree = $this->fetchAllAsTree(); ArrayUtils::assocPrepend($tree, null, $text); return $tree; }