@@ 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 | { |
@@ 106-117 (lines=12) @@ | ||
103 | } |
|
104 | } |
|
105 | ||
106 | public function getPresentation() |
|
107 | { |
|
108 | if ($this->presentation) { |
|
109 | return transcrud($this->presentation); |
|
110 | } |
|
111 | ||
112 | $nameWithSpaces = str_replace('_', ' ', $this->name); |
|
113 | $namePieces = explode(' ', $nameWithSpaces); |
|
114 | $namePieces = array_filter(array_map('trim', $namePieces)); |
|
115 | ||
116 | return transcrud(ucfirst(implode(' ', $namePieces))); |
|
117 | } |
|
118 | ||
119 | public function getType() |
|
120 | { |