/** * Creates and initializes $this->staticInfo (if that hasn't been done yet). * * @return void */ private function initStaticInfo() { if ($this->staticInfo === NULL) { $this->staticInfo = t3lib_div::makeInstance('tx_staticinfotables_pi1'); $this->staticInfo->init(); } }
/** * init static info tables to use with this view helper * * @return null */ protected static function init() { // check if class was already initialized if (!is_null(self::$staticInfoObject)) { return; } // check if static_info_tables is installed if (!t3lib_extMgm::isLoaded('static_info_tables')) { self::$staticInfoObject = false; t3lib_div::devLog('static_info_tables needs to be installed to use ' . get_class(self), get_class(self), 1); return; } require_once t3lib_extMgm::extPath('static_info_tables') . 'pi1/class.tx_staticinfotables_pi1.php'; // init class // code taken from the documentation self::$staticInfoObject =& t3lib_div::getUserObj('&tx_staticinfotables_pi1'); if (!self::$staticInfoObject) { self::$staticInfoObject = false; return null; } if (self::$staticInfoObject->needsInit()) { self::$staticInfoObject->init(); } }