Lines Matching refs:iconName
213 private $iconName;
252 $iconName = substr($name, $sepPosition + 1);
253 $this->setIconName($iconName);
259 $this->path = WikiPath::createComboResource($iconName . ".svg");
306 return $this->iconName;
341 $iconName = $this->iconName;
346 $iconName = str_replace("-", "_", $iconName);
350 $iconName = self::getEmojiCodePoint($iconName);
352 throw new ExceptionCompile("The emoji name $iconName is unknown. The emoji could not be downloaded.", Icon::ICON_CANONICAL_NAME, 0, $e);
358 [$iconName, $iconType] = self::explodeInTwoPartsByLastPosition($iconName, "-");
369 $iconName = self::getPhysicalNameFromDictionary($iconName, self::CARBON);
372 $iconName = self::getPhysicalNameFromDictionary($iconName, self::FAD);
375 $iconName = self::getPhysicalNameFromDictionary($iconName, self::ICOMOON);
378 $iconName = self::getPhysicalNameFromDictionary($iconName, self::CORE_UI_BRAND);
383 [$iconName, $iconType] = self::explodeInTwoPartsByLastPosition($iconName, "-");
388 $iconName .= "-$iconType";
393 [$iconShortName, $iconType] = self::explodeInTwoPartsByLastPosition($iconName, "-");
398 if ($iconName === "social-pinterest") {
399 $iconName = "social-pintarest";
403 [$iconType, $extractedIconName] = self::explodeInTwoPartsByLastPosition($iconName, "-");
415 throw new ExceptionCompile("The box-icon icon ($iconName) has a type ($iconType) that is unknown, we can't determine the location of the icon to download");
419 $iconName = "si-glyph-" . $iconName;
422 [$extractedIconName, $iconType] = self::explodeInTwoPartsByLastPosition($iconName, "-");
427 $iconName = $extractedIconName;
433 $iconName = self::getPhysicalNameFromDictionary($iconName, self::HEALTH_ICONS);
440 return "$iconBaseUrl/$iconName.svg";
478 $message = "We couldn't find the <a href=\"$downloadUrl\">icon $this->iconName</a>) from the";
505 * @param $iconName
510 static function downloadIconFromMaterialDesignApi($iconName, $mediaFilePath)
522 if ($value['name'] == $iconName) {
537 LogUtility::msg("The material design icon ($iconName) was downloaded to ($mediaFilePath)", LogUtility::LVL_MSG_INFO, Icon::ICON_CANONICAL_NAME);
565 * @param string $iconName
570 private static function explodeInTwoPartsByLastPosition(string $iconName, string $sep = "-"): array
572 $index = strrpos($iconName, $sep);
574 throw new ExceptionCompile ("We expect that the icon name ($iconName) has two parts separated by a `-` (example: table-outlined). The icon could not be downloaded.", Icon::ICON_CANONICAL_NAME);
576 $firstPart = substr($iconName, 0, $index);
577 $secondPart = substr($iconName, $index + 1);
608 private function setIconName(string $iconName)
610 $this->iconName = $iconName;