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; }
public static function getThemes() { $themes = new PrestaShopCollection('Theme'); $themes->orderBy('name'); return $themes; }
/** * 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; }