module/UIComponents/src/UIComponents/View/Helper/AbstractHelper.php 1 location
|
@@ 143-159 (lines=17) @@
|
| 140 |
|
* |
| 141 |
|
* @return string |
| 142 |
|
*/ |
| 143 |
|
public function render($output = false) |
| 144 |
|
{ |
| 145 |
|
try { |
| 146 |
|
|
| 147 |
|
if ($output) { |
| 148 |
|
echo $this->buildComponent(); |
| 149 |
|
} |
| 150 |
|
return $this->buildComponent(); |
| 151 |
|
|
| 152 |
|
} catch (\Exception $e) { |
| 153 |
|
|
| 154 |
|
$msg = get_class($e) . ': ' . $e->getMessage() . "\n" . $e->getTraceAsString(); |
| 155 |
|
trigger_error($msg, E_USER_ERROR); |
| 156 |
|
return ''; |
| 157 |
|
|
| 158 |
|
} |
| 159 |
|
} |
| 160 |
|
|
| 161 |
|
/** |
| 162 |
|
* Determines whether a page should be allowed given certain parameters |
module/UIComponents/src/UIComponents/View/Helper/Components/Languagemenu.php 1 location
|
@@ 413-429 (lines=17) @@
|
| 410 |
|
* |
| 411 |
|
* @return string |
| 412 |
|
*/ |
| 413 |
|
public function render($output = false) |
| 414 |
|
{ |
| 415 |
|
try { |
| 416 |
|
|
| 417 |
|
if ($output) { |
| 418 |
|
echo $this->buildComponent(); |
| 419 |
|
} |
| 420 |
|
return $this->buildComponent(); |
| 421 |
|
|
| 422 |
|
} catch (\Exception $e) { |
| 423 |
|
|
| 424 |
|
$msg = get_class($e) . ': ' . $e->getMessage() . "\n" . $e->getTraceAsString(); |
| 425 |
|
trigger_error($msg, E_USER_ERROR); |
| 426 |
|
return ''; |
| 427 |
|
|
| 428 |
|
} |
| 429 |
|
} |
| 430 |
|
|
| 431 |
|
/** |
| 432 |
|
* build markup |