// Format definitions
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11184 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -36,10 +36,6 @@ class WebserviceKeyCore extends ObjectModel
|
||||
/** @var string Webservice Account description */
|
||||
public $description;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @see ObjectModel::$definition
|
||||
*/
|
||||
@@ -47,12 +43,12 @@ class WebserviceKeyCore extends ObjectModel
|
||||
'table' => 'webservice_account',
|
||||
'primary' => 'id_webservice_account',
|
||||
'fields' => array(
|
||||
'active' => array('type' => 'FILL_ME', 'validate' => 'isBool'),
|
||||
'key' => array('type' => 'FILL_ME', 'required' => true, 'size' => 32),
|
||||
'active' => array('type' => self::TYPE_BOOL, 'validate' => 'isBool'),
|
||||
'key' => array('type' => self::TYPE_STRING, 'required' => true, 'size' => 32),
|
||||
'description' => array('type' => self::TYPE_STRING),
|
||||
),
|
||||
);
|
||||
|
||||
|
||||
public function add($autodate = true, $nullValues = false)
|
||||
{
|
||||
if (WebserviceKey::keyExists($this->key))
|
||||
@@ -67,16 +63,6 @@ class WebserviceKeyCore extends ObjectModel
|
||||
WHERE `key` = \''.pSQL($key).'\'') ? false : true);
|
||||
}
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
$this->validateFields();
|
||||
|
||||
$fields['key'] = pSQL($this->key);
|
||||
$fields['active'] = (int)$this->active;
|
||||
$fields['description'] = pSQL($this->description);
|
||||
return $fields;
|
||||
}
|
||||
|
||||
public function delete()
|
||||
{
|
||||
if (!parent::delete() || $this->deleteAssociations() === false)
|
||||
|
||||
Reference in New Issue
Block a user