src/Entity/Lottery.php 1 location
|
@@ 140-150 (lines=11) @@
|
137 |
|
* |
138 |
|
* @param array $data |
139 |
|
*/ |
140 |
|
public function populate($data = array()) |
141 |
|
{ |
142 |
|
parent::populate($data); |
143 |
|
|
144 |
|
if (isset($data['drawAuto']) && $data['drawAuto'] !== null) { |
145 |
|
$this->drawAuto = $data['drawAuto']; |
146 |
|
} |
147 |
|
$this->drawDate = (isset($data['drawDate']) && $data['drawDate'] !== null) ? |
148 |
|
\DateTime::createFromFormat('d/m/Y', $data['drawDate']) : |
149 |
|
null; |
150 |
|
} |
151 |
|
|
152 |
|
public function setInputFilter(InputFilterInterface $inputFilter) |
153 |
|
{ |
src/Entity/PostVote.php 1 location
|
@@ 322-333 (lines=12) @@
|
319 |
|
* |
320 |
|
* @param array $data |
321 |
|
*/ |
322 |
|
public function populate($data = array()) |
323 |
|
{ |
324 |
|
parent::populate($data); |
325 |
|
|
326 |
|
if (isset($data['postDisplayMode']) && $data['postDisplayMode'] !== null) { |
327 |
|
$this->postDisplayMode = $data['postDisplayMode']; |
328 |
|
} |
329 |
|
|
330 |
|
if (isset($data['voteAnonymous']) && $data['voteAnonymous'] !== null) { |
331 |
|
$this->voteAnonymous = $data['voteAnonymous']; |
332 |
|
} |
333 |
|
} |
334 |
|
|
335 |
|
public function setInputFilter(InputFilterInterface $inputFilter) |
336 |
|
{ |