/** * Gets the path for TS setup where $this->objectToCheck's configuration is * located. This includes the extension key, (possibly) something like pi1 * and the trailing dot. * * @return string the TS setup configuration path including the * trailing dot, e.g. "plugin.tx_seminars_pi1." */ protected function getTSSetupPath() { if ($this->objectToCheck instanceof Tx_Oelib_Interface_ConfigurationCheckable) { return $this->objectToCheck->getTypoScriptNamespace(); } $result = 'plugin.tx_' . $this->objectToCheck->extKey; $matches = array(); if (preg_match('/_pi[0-9]+$/', $this->className, $matches)) { $result .= $matches[0]; } $result .= '.'; return $result; }