/var/www/vhosts/ihelp.ro/_OLD/vendor/cakephp/cakephp/src/View/Helper
NameSizeModeActions
BreadcrumbsHelper.php132000644editdlrm
FlashHelper.php36740644editdlrm
FormHelper.php925430644editdlrm
HtmlHelper.php388260644editdlrm
IdGeneratorTrait.php27170644editdlrm
NumberHelper.php89350644editdlrm
PaginatorHelper.php457610644editdlrm
TextHelper.php152870644editdlrm
TimeHelper.php152990644editdlrm
UrlHelper.php82060644editdlrm
Edit: /var/www/vhosts/ihelp.ro/_OLD/vendor/cakephp/cakephp/src/View/Helper/IdGeneratorTrait.php (2717B)
_idSuffixes = []; } /** * Generate an ID attribute for an element. * * Ensures that id's for a given set of fields are unique. * * @param string $name The ID attribute name. * @param string $val The ID attribute value. * @return string Generated id. */ protected function _id(string $name, string $val): string { $name = $this->_domId($name); $suffix = $this->_idSuffix($val); return trim($name . '-' . $suffix, '-'); } /** * Generate an ID suffix. * * Ensures that id's for a given set of fields are unique. * * @param string $val The ID attribute value. * @return string Generated id suffix. */ protected function _idSuffix(string $val): string { $idSuffix = mb_strtolower(str_replace(['/', '@', '<', '>', ' ', '"', '\''], '-', $val)); $count = 1; $check = $idSuffix; while (in_array($check, $this->_idSuffixes, true)) { $check = $idSuffix . $count++; } $this->_idSuffixes[] = $check; return $check; } /** * Generate an ID suitable for use in an ID attribute. * * @param string $value The value to convert into an ID. * @return string The generated id. */ protected function _domId(string $value): string { $domId = mb_strtolower(Text::slug($value, '-')); if ($this->_idPrefix) { $domId = $this->_idPrefix . '-' . $domId; } return $domId; } }