'cyb_concept', 'primary' => 'c_id', 'multilang' => false, 'fields' => array ( 'c_texte' => array('type' => self::TYPE_HTML, 'required' => false), 'c_lien' => array('type' => self::TYPE_STRING, 'required' => false), 'c_btn' => array('type' => self::TYPE_STRING, 'required' => false), 'c_image' => array('type' => self::TYPE_STRING, 'required' => false), ) ); public function __construct($id = null) { parent::__construct($id, null, null); } public static function exists($id = null) { if (! $id || ! is_numeric($id)) { return false; } $req = 'SELECT c_id as id FROM '._DB_PREFIX_.'cyb_concept WHERE c_id = '.(int)$id; $row = Db::getInstance(_PS_USE_SQL_SLAVE_)->getRow($req); return ($row); } public function getId() { return $this->c_id; } public function getTexte() { return $this->c_texte; } public function setTexte($texte = null) { $this->c_texte = $texte; return $this; } public function getBtn() { return $this->c_btn; } public function setBtn($btn = null) { $this->c_btn = $btn; return $this; } public function getLien() { return $this->c_lien; } public function setLien($lien = null) { $this->c_lien = $lien; return $this; } public function getImage() { return $this->c_image; } public function setImage($image = null) { $this->c_image = $image; return $this; } }