use Org\Mxchange\CoreFramework\Generic\NullPointerException;
use Org\Mxchange\CoreFramework\Helper\Application\ApplicationHelper;
use Org\Mxchange\CoreFramework\Helper\Template\HelpableTemplate;
use Org\Mxchange\CoreFramework\Generic\NullPointerException;
use Org\Mxchange\CoreFramework\Helper\Application\ApplicationHelper;
use Org\Mxchange\CoreFramework\Helper\Template\HelpableTemplate;
// Get page (this will throw an exception if not set)
$command = StringUtils::convertDashesToUnderscores($requestInstance->getRequestElement('command'));
// Get page (this will throw an exception if not set)
$command = StringUtils::convertDashesToUnderscores($requestInstance->getRequestElement('command'));
if (!is_null($linkBase)) {
// Then output a deprecation message
$helperInstance->deprecationWarning('[' . __METHOD__ . ':' . __LINE__ . ']: linkBase is deprecated. Please remove it from your templates and add a config entry ' . $configEntry . ' in your config.php file.');
if (!is_null($linkBase)) {
// Then output a deprecation message
$helperInstance->deprecationWarning('[' . __METHOD__ . ':' . __LINE__ . ']: linkBase is deprecated. Please remove it from your templates and add a config entry ' . $configEntry . ' in your config.php file.');
if (is_null($linkBase)) {
// Then throw again the exception
throw new NoConfigEntryException(array(__CLASS__, ($configEntry)), FrameworkConfiguration::EXCEPTION_CONFIG_ENTRY_WAS_NOT_FOUND);
if (is_null($linkBase)) {
// Then throw again the exception
throw new NoConfigEntryException(array(__CLASS__, ($configEntry)), FrameworkConfiguration::EXCEPTION_CONFIG_ENTRY_WAS_NOT_FOUND);
// Generate the group content
$content = sprintf('<%s id="group_%s_%s">%s',
// Generate the group content
$content = sprintf('<%s id="group_%s_%s">%s',
if ($this->ifGroupOpenedPreviously() === false) {
// No group was opened before!
throw new NoGroupOpenedException(array($this, $groupNote), self::EXCEPTION_GROUP_NOT_OPENED);
if ($this->ifGroupOpenedPreviously() === false) {
// No group was opened before!
throw new NoGroupOpenedException(array($this, $groupNote), self::EXCEPTION_GROUP_NOT_OPENED);
// Is a previous sub group open?
if ($this->ifSubGroupOpenedPreviously()) {
// Then close it
$this->closePreviousSubGroupByContent('</' . $groupCode . '>');
// Is a previous sub group open?
if ($this->ifSubGroupOpenedPreviously()) {
// Then close it
$this->closePreviousSubGroupByContent('</' . $groupCode . '>');
// Generate the group content
$content = sprintf('<%s id="subgroup_%s_%s">%s',
// Generate the group content
$content = sprintf('<%s id="subgroup_%s_%s">%s',
if ($this->ifGroupOpenedPreviously() === false) {
// No group was opened before!
throw new NoGroupOpenedException(array($this, $linkAction . '(' . $linkText . ')'), self::EXCEPTION_GROUP_NOT_OPENED);
if ($this->ifGroupOpenedPreviously() === false) {
// No group was opened before!
throw new NoGroupOpenedException(array($this, $linkAction . '(' . $linkText . ')'), self::EXCEPTION_GROUP_NOT_OPENED);