Lines Matching defs:library

28  * Injection via javascript to avoid problem with the php svgsimple library
81 self::CARBON => "https://www.carbondesignsystem.com/guidelines/icons/library/",
118 * Deprecated library acronym / name
206 * The icon library
209 private $library;
241 * Name parsing to extract the library name and icon name
256 * Special case, internal library
279 * @throws ExceptionBadArgument - if the icon library is not supported
290 private static function getPhysicalNameFromDictionary(string $logicalName, string $library)
293 $jsonArray = Dictionary::getFrom("$library-icons");
296 LogUtility::msg("The icon ($logicalName) is unknown for the library ($library)");
316 * The test of the supported library
319 $library = $this->library;
320 if (!in_array($library, array_keys($this->getLibraries()))) {
321 throw new ExceptionBadArgument("The library ($library) is not a icon library supported");
324 // Get the qualified library name
326 if (isset($acronymLibraries[$library])) {
327 $library = $acronymLibraries[$library];
332 if (!isset($iconLibraries[$library])) {
333 throw new ExceptionCompile("The icon library ($library) is unknown. The icon could not be downloaded.", Icon::ICON_CANONICAL_NAME);
335 $iconBaseUrl = $iconLibraries[$library];
342 switch ($library) {
363 * Iconify normalized the name of the carbon library (making them lowercase)
481 $message = "$message <a href=\"$urlLibrary\">library $libraryName</a>";
486 $message = "$message library $libraryName";
496 LogUtility::msg("The icon ($this) from the library ($libraryName) was downloaded to ($mediaDokuPath)", LogUtility::LVL_MSG_INFO, Icon::ICON_CANONICAL_NAME);
498 LogUtility::msg("Internal error: The icon ($this) from the library ($libraryName) could no be written to ($mediaDokuPath)", LogUtility::LVL_MSG_ERROR, Icon::ICON_CANONICAL_NAME);
589 return $this->library;
599 * The library may be not supported
601 * We test the support of the library if the logo does not exists
604 $this->library = $libraryName;
623 $library = $this->getLibrary();
624 $libraryUrl = @self::ICON_LIBRARY_WEBSITE_URLS[$library];
626 throw new ExceptionNotFound("The url for the library ($library) was not found");