Initial commit

This commit is contained in:
2018-04-02 08:07:38 +02:00
commit 7330c1ed3e
2054 changed files with 405203 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
<?php
namespace Internetfabrik\IfOberstufenplaner\ViewHelpers;
class DispViewHelper extends \TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper {
/**
* @param $obj object Object
* @param $prop string Property
* @return mixed
*/
public function render($obj,$prop) {
if (is_object($obj)) {
return $obj->$prop;
} elseif (is_array($obj)) {
if (array_key_exists($prop, $obj)) {
return $obj[$prop];
}
}
return NULL;
}
}