| @@ 66-77 (lines=12) @@ | ||
| 63 | $this->name = $name; |
|
| 64 | } |
|
| 65 | ||
| 66 | public function presentation() |
|
| 67 | { |
|
| 68 | if ($this->presentation) { |
|
| 69 | return transcrud($this->presentation); |
|
| 70 | } |
|
| 71 | ||
| 72 | $nameWithSpaces = str_replace('_', ' ', $this->name); |
|
| 73 | $namePieces = explode(' ', $nameWithSpaces); |
|
| 74 | $namePieces = array_filter(array_map('trim', $namePieces)); |
|
| 75 | ||
| 76 | return transcrud(ucfirst(implode(' ', $namePieces))); |
|
| 77 | } |
|
| 78 | ||
| 79 | public function type() |
|
| 80 | { |
|
| @@ 104-115 (lines=12) @@ | ||
| 101 | } |
|
| 102 | } |
|
| 103 | ||
| 104 | public function getPresentation() |
|
| 105 | { |
|
| 106 | if ($this->presentation) { |
|
| 107 | return transcrud($this->presentation); |
|
| 108 | } |
|
| 109 | ||
| 110 | $nameWithSpaces = str_replace('_', ' ', $this->name); |
|
| 111 | $namePieces = explode(' ', $nameWithSpaces); |
|
| 112 | $namePieces = array_filter(array_map('trim', $namePieces)); |
|
| 113 | ||
| 114 | return transcrud(ucfirst(implode(' ', $namePieces))); |
|
| 115 | } |
|
| 116 | ||
| 117 | public function getType() |
|
| 118 | { |
|