Остановка замера и вывод форматированного результата (html)
@param string $key
548454
static function stopAndPrint($key = 'all')
    {
        if ($info = self::stop($key, true)){
            print "\n=== Benchmark \"".$key."\" ===\n";
            print 'Time: '.$info['time']."\n";
            print 'Memory: '.$info['memory']."\n";
            print 'Max memory: '.$info['memory_max']."\n";
        }
    }
1079354
public function translate($key, $htmlencode=true)
    {
        if ($this->_canonicalize) $key = self::_canonicalizeKey($key);

        $value = gettext($key);

        if ($htmlencode) {
            $value = htmlspecialchars($value, ENT_QUOTES, $this->_encoding);
        }
        while (preg_match('/\${(.*?)\}/sm', $value, $m)) {
            list($src, $var) = $m;
            if (!array_key_exists($var, $this->_vars)) {
                throw new PHPTAL_VariableNotFoundException('Interpolation error. Translation uses ${'.$var.'}, which is not defined in the template (via i18n:name)');
            }
            $value = str_replace($src, $this->_vars[$var], $value);
        }
        return $value;
    }
442376
private function getPart($key) {
		if (\array_key_exists($key, $this->content) === false) {
			$this->content[$key]=new HtmlTableContent("", $key);
			if ($key !== "tbody") {
				$this->content[$key]->setRowCount(1, $this->_colCount);
			}
		}
		return $this->content[$key];
	}
4514
public function deleteFromCache($key)
  {
    $file = $this->cachePath . $this->getEncodedKey($key);
    if (file_exists($file)) {
      unlink($file);
    }
  }
282017
public function remove($key)
    {
        if (!$this->has($key)) {
            return;
        }

        unset($this->archive[$key]);
        unset($this->keys[$key]);

    }
789022
public function removeKey($key)
    {
        if (isset($this->values[$key])) {
            unset($this->values[$key]);
        }
        $this->stateChanged();
    }
354822
public function remove(string $key): void
    {
        if (isset($this->data[$key])) {
            unset($this->data[$key]);
            
            $this->size--;
        }
    }
258201
public function generateHtml($key, $table)
    {
        $storage = $this->storageRepository->loadElement($table, $key);
        $html = "";
        if ($storage["tca"]) {
            foreach ($storage["tca"] as $fieldKey => $fieldConfig) {
                $html .= $this->generateFieldHtml($fieldKey, $key, $table);
            }
        }
        return $html;
    }
1094474
public function hideAction($key)
    {
        $this->storageRepository->hide("tt_content", $key);
        $this->generateAction();
        $this->addFlashMessage(\TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('tx_mask.content.hiddencontentelement',
            'mask'));
        $this->redirect('list');
    }
23730
public function setTemplate(array $data, string $key): void
  {
    $this->templateData = $data;
    $this->templateKey  = $key;
  }
1108436
public function getAsHtml($key = null) {
		if ($key === null) {
			$data = $this->data;
		} else {
			if (is_object($this->data) && isset($this->data->{$key})) {
				$data = $this->data->{$key};
			} elseif (is_array($this->data) && isset($this->data[$key])) {
				$data = $this->data[$key];
			} else {
				$data = null;
			}
		}

		$html =<<<HTML
			<div class="debugger">
				<div class="debug">
					{$this->getHtml($data, $this->title)}
				</div>
			</div>
HTML;
		return $html;
	}
259118
public function remove($key)
    {
        $key = strtr(strtolower($key), '_', '-');

        unset($this->headers[$key]);

        if ('cache-control' === $key) {
            $this->cacheControl = array();
        }
    }
910843
function setKey($key) {
		$this->cnxn->confirmTransaction('setKey');
		$currKey = $this->key;
		if (!is_null($currKey) && is_null($key)) {
			$this->cnxn->unregisterStructWithKey($this, $currKey);
		} else if (is_null($currKey) && !is_null($key)) {
			$this->cnxn->registerStructWithKey($this, $key);
		} else if ($currKey != $key) {
			$this->cnxn->unregisterStructWithKey($this, $currKey);
			$this->cnxn->registerStructWithKey($this, $key);
		}
		$this->key = $key;
	}
817041
function setKey($key)
    {
        $this->key = $key;

        if ( CRYPT_RC4_MODE == CRYPT_RC4_MODE_MCRYPT ) {
            return;
        }

        $keyLength = strlen($key);
        $keyStream = array();
        for ($i = 0; $i < 256; $i++) {
            $keyStream[$i] = $i;
        }
        $j = 0;
        for ($i = 0; $i < 256; $i++) {
            $j = ($j + $keyStream[$i] + ord($key[$i % $keyLength])) & 255;
            $temp = $keyStream[$i];
            $keyStream[$i] = $keyStream[$j];
            $keyStream[$j] = $temp;
        }

        $this->encryptIndex = $this->decryptIndex = array(0, 0);
        $this->encryptStream = $this->decryptStream = $keyStream;
    }
450003
protected function showHtmlAction($key, $table)
    {
        $html = $this->htmlCodeGenerator->generateHtml($key, $table);
        $this->view->assign('html', $html);
    }
26490
protected function closeTag($key)
    {
        $exp = explode('_', $key);

        if ($this->openTagHolder == $exp[1]) {
            $this->elements[static::$formHolder[static::$formName]][$key] = "</$exp[0]>".PHP_EOL;
        }

        return $this;
    }
3899
public static function remove($key) {
        static::init();
        if (isset($_SESSION[self::$prepend . $key]))
            unset($_SESSION[self::$prepend . $key]);
    }