Esempio n. 1
0
 function setFromPost($prefix = '')
 {
     $this->loadFields($_POST, $prefix);
     $this->descrip = htmlspecialchars($this->descrip, ENT_QUOTES);
     $this->notes = htmlspecialchars($this->notes, ENT_QUOTES);
     //Required in addition to the processing in loadFields
     $this->location->setFromPost($prefix);
     $this->date1 = DateUtil::resolveDate($this->date1);
     $this->date2 = DateUtil::resolveDate($this->date2);
 }