Beispiel #1
0
 public function updateObject()
 {
     if (!$this->isValid()) {
         throw $this->getErrorSchema();
     }
     $data = LsRequestFilter::emptyStringsToNull($this->getValues());
     $this->object->fromArray($data);
     unset($data['id']);
     foreach ($this->object->getExtensionObjects() as $object) {
         $object->fromArray($data);
     }
     return $this->object;
 }
Beispiel #2
0
 public function setNameMiddle($str)
 {
     parent::_set('name_middle', LsRequestFilter::emptyStringToNull(preg_replace('/[.]/', '', $str)));
 }