Пример #1
0
 /**
  * @param $description
  * @return void
  */
 public function setDescription($description)
 {
     //		print_r($description);
     if ($description != NULL) {
         //adntes vai verificar se já existe um parametro descrição
         $arrayParamether = parent::getParamethersByValues("description", ParametherDAO::TYPE_TEXT);
         //se existir atualiza
         $parametherId = NULL;
         if (count($arrayParamether) > 0) {
             if ($arrayParamether[0]->getId() > 0) {
                 $parametherId = $arrayParamether[0]->getId();
             }
         }
         parent::addParamether(ParametherDAO::TYPE_TEXT, "description", $description, NULL, $parametherId);
     }
 }