'cyb_slider', 'primary' => 'id_cyb_slides', 'multilang' => false, 'fields' => array ( 'file_cyb_slide' => array('type' => self::TYPE_STRING, 'required' => false), 'color_cyb_slides' => array('type' => self::TYPE_STRING, 'required' => false), 'title_cyb_slide' => array('type' => self::TYPE_STRING, 'required' => false), ) ); public function __construct($id = null) { parent::__construct($id, null, null); } public static function pictureExists($id = null) { if (! $id || ! is_numeric($id)) { return false; } $req = 'SELECT id_cyb_slides as id FROM '._DB_PREFIX_.'cyb_slider WHERE id_cyb_slides = '.(int)$id; $row = Db::getInstance(_PS_USE_SQL_SLAVE_)->getRow($req); return ($row); } public function getId() { return $this->id_cyb_slides; } public function getTitle() { return $this->title_cyb_slide; } public function setTitle($title = null) { $this->title_cyb_slide = $title; return $this; } public function getColor() { return $this->color_cyb_slides; } public function setColor($color = null) { $this->color_cyb_slides = $color; return $this; } public function getUrl() { return $this->file_cyb_slide; } public function setUrl($url = null) { $this->file_cyb_slide = $url; return $this; } }