Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // sablona
- <tr>
- <td>Datum převzetí do opravy</td>
- <td>{$claim->getFirstState()->getDate()->getFormated()}</td>
- </tr>
- // funkce v modelu Claim
- // funkce getStates vraci pole objektu \Claim\HistoryState
- public function getFirstState()
- {
- if($this->firstState == null){
- $states = $this->getStates();
- $this->firstState = array_shift($states);
- }
- return $this->firstState;
- }
Add Comment
Please, Sign In to add comment