Example #1
0
 private function listarSolucionesArbol($idCategoria, $arbol)
 {
     $count = 0;
     $idAreaCategoria = '';
     $arbolReturn = array();
     foreach ($arbol as $index) {
         if ($index['solucionCategoria'] == $idCategoria) {
             $arbolReturn[$index['SlugSoluciones']]['label'] = $index['NombreSoluciones'];
             $arbolReturn[$index['SlugSoluciones']]['uri'] = CST_Server_ServerBaseUrl::getUrl() . '/soluciones/' . $index['SlugCategoriaSolucion'] . '/' . $index['SlugSoluciones'];
         }
     }
     return $arbolReturn;
 }
Example #2
0
 private function listarSubcategoriaCategoriaArbol($idCategoria, $arbol)
 {
     $count = 0;
     $idCategoriaSubcategoria = '';
     $arbolReturn = array();
     foreach ($arbol as $index) {
         if ($idCategoriaSubcategoria != $index['IdCategoriaSubcategoria'] && $index['IdCategoriaSubcategoria'] == $idCategoria) {
             $arbolReturn[$index['SlugSubCategoriaProducto']]['label'] = $index['NombreSubCategoriaProducto'];
             $arbolReturn[$index['SlugSubCategoriaProducto']]['uri'] = CST_Server_ServerBaseUrl::getUrl() . '/productos/' . $index['SlugArea'] . '/' . $index['SlugCategoriaProducto'] . '/' . $index['SlugSubCategoriaProducto'];
         }
     }
     return $arbolReturn;
 }