Lines Matching refs:name

24  *   * the {@link FetcherSvg::setRequestedName() name} if this is an {@link FetcherSvg::setRequestedType() icon type}, the original path is then determined on {@link FetcherSvg::getSourcePath() get}
101 public const REQUESTED_NAME_ATTRIBUTE = "name";
121 public const NAME_ATTRIBUTE = "name";
122 public const DATA_NAME_HTML_ATTRIBUTE = "data-name";
135 private string $name;
165 * @param string $name - a name identifier (used in diff)
169 public static function createSvgFromMarkup(string $markup, string $name): FetcherSvg
171 return self::createSvgEmpty()->setMarkup($markup, $name);
295 $name = $attribute->name;
296 if (isset($defaultValues[$name])) {
297 if ($defaultValues[$name] == $attribute->value) {
304 * Suppress the attributes (by default id, style and class, data-name)
306 $attributeConfToDelete = SiteConfig::getConfValue(FetcherSvg::CONF_OPTIMIZATION_ATTRIBUTES_TO_DELETE, "id, style, class, data-name");
402 $elementNodeList = $this->getXmlDocument()->xpath("//*[local-name()='$elementToDeleteIfEmpty']");
523 // no name
528 // no name
533 // no name
538 // no name
687 * @var string|null - a name identifier that is added in the SVG
703 * The name:
704 * * if this is a icon, this is the icon name of the {@link IconDownloader}. It's used to download the icon if not present.
707 * @param string $name
711 function setRequestedName(string $name): FetcherSvg
713 $this->requestedName = $name;
721 if (isset($this->name)) {
722 return $this->name;
728 LogUtility::internalError("root not possible, we should have a last name", self::CANONICAL);
811 * @param string $name - a name identifier (used in diff)
814 private function setMarkup(string $markup, string $name): FetcherSvg
816 $this->name = $name;
870 // Set the name (icon) attribute for test selection
872 $name = $this->getRequestedNameOrDefault();
873 $documentElement->setAttribute('data-name', $name);
875 // ok no name
1272 $svgPaths = $this->getXmlDocument()->xpath("//*[local-name()='path' or local-name()='g']");
1307 $svgPaths = $this->getXmlDocument()->xpath("//*[local-name()='path']");
1337 foreach ($extraAttributeAsArray as $name => $value) {
1338 $documentElement->setAttribute($name, $value);
1356 $name = $this->getRequestedNameOrDefault();
1362 $stylingClass = $name . "-" . $i;
1366 // no name
1470 throw new ExceptionBadArgument("We can't get the icon path. Error: {$e->getMessage()}. (ie media or icon name attribute is mandatory).", self::CANONICAL, 1, $e);
1476 // no requested type or name
1502 throw new ExceptionNotFound("No path was defined and no icon name was defined");
1511 throw new ExceptionNotFound("The name ($requestedName) is not a valid icon name. Error: ({$e->getMessage()}.", self::CANONICAL, 1, $e);
1527 * This is used to add a name and class to the svg to make selection more easy