Пример #1
0
 public static function getAllThemes($excluded_ids = false)
 {
     $themes = new PrestaShopCollection('Theme');
     if (is_array($excluded_ids) && !empty($excluded_ids)) {
         $themes->where('id_theme', 'notin', $excluded_ids);
     }
     $themes->orderBy('name');
     return $themes;
 }
Пример #2
0
 public static function getThemes()
 {
     $themes = new PrestaShopCollection('Theme');
     $themes->orderBy('name');
     return $themes;
 }
Пример #3
0
 /**
  * Return an ordered array of all parents of the current category
  *
  * @param int $idLang
  *
  * @return PrestaShopCollection Collection of Category
  */
 public function getAllParents($idLang = null)
 {
     if (is_null($idLang)) {
         $idLang = Context::getContext()->language->id;
     }
     $categories = new PrestaShopCollection('Category', $idLang);
     $categories->where('nleft', '<', $this->nleft);
     $categories->where('nright', '>', $this->nright);
     $categories->orderBy('nleft');
     return $categories;
 }