Started price tab
This commit is contained in:
@@ -65,23 +65,6 @@ class Session extends BaseSession
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getAdminEditionLang()
|
||||
{
|
||||
$lang = $this->get('thelia.admin.edition.lang');
|
||||
|
||||
if (null === $lang) {
|
||||
$lang = Lang::getDefaultLanguage();
|
||||
}
|
||||
return $lang;
|
||||
}
|
||||
|
||||
public function setAdminEditionLang($langId)
|
||||
{
|
||||
$this->set('thelia.admin.edition.lang', $langId);
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function setCurrency(Currency $currency)
|
||||
{
|
||||
$this->set("thelia.current.currency", $currency);
|
||||
@@ -98,6 +81,43 @@ class Session extends BaseSession
|
||||
return $currency;
|
||||
}
|
||||
|
||||
// -- Admin lang and currency ----------------------------------------------
|
||||
|
||||
public function getAdminEditionCurrency()
|
||||
{
|
||||
$currency = $this->get('thelia.admin.edition.currency', null);
|
||||
|
||||
if (null === $currency) {
|
||||
$currency = Currency::getDefaultCurrency();
|
||||
}
|
||||
|
||||
return $currency;
|
||||
}
|
||||
|
||||
public function setAdminEditionCurrency($currencyId)
|
||||
{
|
||||
$this->set('thelia.admin.edition.currency', $currencyId);
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getAdminEditionLang()
|
||||
{
|
||||
$lang = $this->get('thelia.admin.edition.lang');
|
||||
|
||||
if (null === $lang) {
|
||||
$lang = Lang::getDefaultLanguage();
|
||||
}
|
||||
return $lang;
|
||||
}
|
||||
|
||||
public function setAdminEditionLang($lang)
|
||||
{
|
||||
$this->set('thelia.admin.edition.lang', $lang);
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
// -- Customer user --------------------------------------------------------
|
||||
|
||||
public function setCustomerUser(UserInterface $user)
|
||||
|
||||
Reference in New Issue
Block a user