/** * Wrap the plus/minus icon in a link * * @param string $icon HTML string to wrap, probably an image tag. * @param string $cmd Command for 'PM' get var * @param bool $isExpand If expanded * @return string Link-wrapped input string * @access private */ public function PMiconATagWrap($icon, $cmd, $isExpand = TRUE) { if (empty($this->scope)) { $this->scope = array('class' => get_class($this), 'script' => $this->thisScript, 'ext_noTempRecyclerDirs' => $this->ext_noTempRecyclerDirs, 'browser' => array('mode' => $GLOBALS['SOBE']->browser->mode, 'act' => $GLOBALS['SOBE']->browser->act)); if ($GLOBALS['SOBE']->browser->editorNo) { $this->scope['browser']['editorNo'] = $GLOBALS['SOBE']->browser->editorNo; } if ($GLOBALS['SOBE']->browser->sys_language_content) { $this->scope['browser']['sys_language_content'] = $GLOBALS['SOBE']->browser->sys_language_content; } if ($GLOBALS['SOBE']->browser->contentTypo3Language) { $this->scope['browser']['contentTypo3Language'] = $GLOBALS['SOBE']->browser->contentTypo3Language; } } return parent::PMiconATagWrap($icon, $cmd, $isExpand); }
/** * Wrap the plus/minus icon in a link * * @param string $icon HTML string to wrap, probably an image tag. * @param string $cmd Command for 'PM' get var * @param bool $isExpand If expanded * @return string Link-wrapped input string * @access private */ public function PMiconATagWrap($icon, $cmd, $isExpand = true) { if (empty($this->scope)) { $this->scope = array('class' => get_class($this), 'script' => $this->thisScript, 'ext_noTempRecyclerDirs' => $this->ext_noTempRecyclerDirs, 'browser' => array('mode' => $this->linkParameterProvider->mode, 'act' => $this->linkParameterProvider->act)); if ($this->linkParameterProvider instanceof BrowseLinks) { if ($this->linkParameterProvider->editorNo) { $this->scope['browser']['editorNo'] = $this->linkParameterProvider->editorNo; } if ($this->linkParameterProvider->contentTypo3Language) { $this->scope['browser']['contentTypo3Language'] = $this->linkParameterProvider->contentTypo3Language; } } if ($this->linkParameterProvider instanceof SelectImage) { if ($this->linkParameterProvider->sys_language_content) { $this->scope['browser']['sys_language_content'] = $this->linkParameterProvider->sys_language_content; } } } return parent::PMiconATagWrap($icon, $cmd, $isExpand); }