// Normalization

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12754 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
mDeflotte
2012-01-27 13:53:42 +00:00
parent 134c564ae3
commit d1882d8e77
3 changed files with 25 additions and 25 deletions
+1 -1
View File
@@ -272,7 +272,7 @@ class ConfigurationCore extends ObjectModel
public static function updateValue($key, $values, $html = false, $shopGroupID = null, $shopID = null) public static function updateValue($key, $values, $html = false, $shopGroupID = null, $shopID = null)
{ {
if (!Validate::isConfigName($key)) if (!Validate::isConfigName($key))
die(Tools::displayError()); die(Tools::displayError());
Configuration::getShopFromContext($shopGroupID, $shopID); Configuration::getShopFromContext($shopGroupID, $shopID);
if (!is_array($values)) if (!is_array($values))
+14 -14
View File
@@ -33,15 +33,15 @@ class AdminCustomersControllerCore extends AdminController
{ {
$this->required_database = true; $this->required_database = true;
$this->required_fields = array('newsletter','optin'); $this->required_fields = array('newsletter','optin');
$this->table = 'customer'; $this->table = 'customer';
$this->className = 'Customer'; $this->className = 'Customer';
$this->lang = false; $this->lang = false;
$this->deleted = true; $this->deleted = true;
$this->addRowAction('edit'); $this->addRowAction('edit');
$this->addRowAction('view'); $this->addRowAction('view');
$this->addRowAction('delete'); $this->addRowAction('delete');
$this->bulk_actions = array('delete' => array('text' => $this->l('Delete selected'), 'confirm' => $this->l('Delete selected items?'))); $this->bulk_actions = array('delete' => array('text' => $this->l('Delete selected'), 'confirm' => $this->l('Delete selected items?')));
$this->context = Context::getContext(); $this->context = Context::getContext();
@@ -78,21 +78,21 @@ class AdminCustomersControllerCore extends AdminController
'lastname' => array( 'lastname' => array(
'title' => $this->l('Last Name'), 'title' => $this->l('Last Name'),
'width' => 'auto' 'width' => 'auto'
), ),
'firstname' => array( 'firstname' => array(
'title' => $this->l('First name'), 'title' => $this->l('First name'),
'width' => 'auto' 'width' => 'auto'
), ),
'email' => array( 'email' => array(
'title' => $this->l('E-mail address'), 'title' => $this->l('E-mail address'),
'width' => 140, 'width' => 140,
), ),
'age' => array( 'age' => array(
'title' => $this->l('Age'), 'title' => $this->l('Age'),
'width' => 20, 'width' => 20,
'search' => false, 'search' => false,
'align' => 'center' 'align' => 'center'
), ),
'active' => array( 'active' => array(
'title' => $this->l('Enabled'), 'title' => $this->l('Enabled'),
'width' => 70, 'width' => 70,
@@ -100,7 +100,7 @@ class AdminCustomersControllerCore extends AdminController
'active' => 'status', 'active' => 'status',
'type' => 'bool', 'type' => 'bool',
'orderby' => false 'orderby' => false
), ),
'newsletter' => array( 'newsletter' => array(
'title' => $this->l('News.'), 'title' => $this->l('News.'),
'width' => 70, 'width' => 70,
@@ -108,7 +108,7 @@ class AdminCustomersControllerCore extends AdminController
'type' => 'bool', 'type' => 'bool',
'callback' => 'printNewsIcon', 'callback' => 'printNewsIcon',
'orderby' => false 'orderby' => false
), ),
'optin' => array( 'optin' => array(
'title' => $this->l('Opt.'), 'title' => $this->l('Opt.'),
'width' => 70, 'width' => 70,
@@ -116,20 +116,20 @@ class AdminCustomersControllerCore extends AdminController
'type' => 'bool', 'type' => 'bool',
'callback' => 'printOptinIcon', 'callback' => 'printOptinIcon',
'orderby' => false 'orderby' => false
), ),
'date_add' => array( 'date_add' => array(
'title' => $this->l('Registration'), 'title' => $this->l('Registration'),
'width' => 150, 'width' => 150,
'type' => 'date', 'type' => 'date',
'align' => 'right' 'align' => 'right'
), ),
'connect' => array( 'connect' => array(
'title' => $this->l('Connection'), 'title' => $this->l('Connection'),
'width' => 100, 'width' => 100,
'type' => 'datetime', 'type' => 'datetime',
'search' => false 'search' => false
) )
); );
$this->shopLinkType = 'shop'; $this->shopLinkType = 'shop';
$this->shopShareDatas = Shop::SHARE_CUSTOMER; $this->shopShareDatas = Shop::SHARE_CUSTOMER;
@@ -216,17 +216,17 @@ class AdminManufacturersControllerCore extends AdminController
*/ */
public function displayEditaddressesLink($token = null, $id) public function displayEditaddressesLink($token = null, $id)
{ {
if (!array_key_exists('editaddresses', self::$cache_lang)) if (!array_key_exists('editaddresses', self::$cache_lang))
self::$cache_lang['editaddresses'] = $this->l('Edit Adresses'); self::$cache_lang['editaddresses'] = $this->l('Edit Adresses');
$this->context->smarty->assign(array( $this->context->smarty->assign(array(
'href' => self::$currentIndex. 'href' => self::$currentIndex.
'&'.$this->identifier.'='.$id. '&'.$this->identifier.'='.$id.
'&editaddresses&token='.($token != null ? $token : $this->token), '&editaddresses&token='.($token != null ? $token : $this->token),
'action' => self::$cache_lang['editaddresses'], 'action' => self::$cache_lang['editaddresses'],
)); ));
return $this->context->smarty->fetch('helper/list/list_action_edit.tpl'); return $this->context->smarty->fetch('helper/list/list_action_edit.tpl');
} }
public function renderForm() public function renderForm()
@@ -667,7 +667,7 @@ class AdminManufacturersControllerCore extends AdminController
{ {
$this->table = 'address'; $this->table = 'address';
$this->className = 'Address'; $this->className = 'Address';
$this->identifier = 'id_address'; $this->identifier = 'id_address';
$this->deleted = true; $this->deleted = true;
} }
parent::initProcess(); parent::initProcess();