|
@@ 49-49 (lines=1) @@
|
| 46 |
|
public function setValueFromModel($model) |
| 47 |
|
{ |
| 48 |
|
if (property_exists($model, $this->name.'_first')) $this->value_first = $model->{$this->name.'_first'}; |
| 49 |
|
if (property_exists($model, $this->name.'_surname')) $this->value_surname = $model->{$this->name.'_surname'}; |
| 50 |
|
$this->value = trim($this->value_first.' '.$this->value_surname); |
| 51 |
|
} |
| 52 |
|
|
|
@@ 63-63 (lines=1) @@
|
| 60 |
|
public function fillModelWithValue($model) |
| 61 |
|
{ |
| 62 |
|
if (property_exists($model, $this->name.'_first')) $model->{$this->name.'_first'} = $this->value_first; |
| 63 |
|
if (property_exists($model, $this->name.'_surname')) $model->{$this->name.'_surname'} = $this->value_surname; |
| 64 |
|
if (property_exists($model, $this->name)) $model->{$this->name} = $this->value; |
| 65 |
|
} |
| 66 |
|
|