/plugin/combo/ComboStrap/ |
H A D | WikiPath.php | 19 * Dokuwiki knows only two drives ({@link WikiPath::MARKUP_DRIVE} and {@link WikiPath::MEDIA_DRIVE} 20 * but we have added a couple more such as the {@link WikiPath::COMBO_DRIVE combo resources} 21 * and the {@link WikiPath::CACHE_DRIVE} to be able to serve resources 28 class WikiPath extends PathAbs class 58 * For now, there is only one value: {@link WikiPath::COMBO_DRIVE} 64 * combo resources directory ie {@link WikiPath::COMBO_DRIVE} 106 * The separator from the {@link WikiPath::getDrive()} 124 * that ends with the {@link WikiPath::NAMESPACE_SEPARATOR_DOUBLE_POINT} points to a start page 145 $path = WikiPath [all...] |
H A D | FetcherTraitWikiPath.php | 9 * if they depends on a {@link WikiPath} 25 private WikiPath $path; 29 * @param WikiPath $path 32 public function setSourcePath(WikiPath $path): IFetcher 51 $defaultDrive = WikiPath::MEDIA_DRIVE; 57 $defaultDrive = WikiPath::MARKUP_DRIVE; 62 $drive = $tagAttributes->getValueAndRemove(WikiPath::DRIVE_ATTRIBUTE, $defaultDrive); 63 $rev = $tagAttributes->getValueAndRemove(WikiPath::REV_ATTRIBUTE); 64 $path = WikiPath::toValidAbsolutePath($id); 65 if ($drive == WikiPath [all...] |
H A D | WikiFileSystem.php | 38 * @param WikiPath $path 46 * @param WikiPath $path 56 * @param WikiPath $path 65 * @param WikiPath $path 75 * @param WikiPath $path 83 * @param WikiPath $path 91 * @param WikiPath $dirPath 101 * @param WikiPath $path 106 return WikiPath::isNamespacePath($path->toAbsoluteId()); 111 * @param WikiPath [all...] |
H A D | Slug.php | 36 $excludedCharacters = array_merge(WikiPath::getReservedWords(), StringUtility::SEPARATORS_CHARACTERS); 37 $excludedCharacters[] = WikiPath::SLUG_SEPARATOR; 38 $parts = explode(WikiPath::NAMESPACE_SEPARATOR_DOUBLE_POINT, $string); 45 return strtolower(implode(WikiPath::SLUG_SEPARATOR, $wordsPart)); 48 $slug = implode(WikiPath::NAMESPACE_SEPARATOR_DOUBLE_POINT, $parts); 53 WikiPath::addRootSeparatorIfNotPresent($slug);
|
H A D | Canonical.php | 35 * @return WikiPath 38 public function getValueOrDefault(): WikiPath 87 * @return WikiPath 90 public function getDefaultValue(): WikiPath 147 WikiPath::addRootSeparatorIfNotPresent($calculatedCanonical); 149 return WikiPath::createMarkupPathFromPath($calculatedCanonical); 165 return WikiPath::MARKUP_DRIVE;
|
H A D | TemplateSlot.php | 42 * @var WikiPath - the context path of this slot 44 private WikiPath $contextPath; 52 public function __construct(string $elementId, WikiPath $contextPath) 64 public static function createFromElementId(string $elementId, WikiPath $contextPath = null): TemplateSlot 134 * @return WikiPath 137 function getDefaultSlotContentPath(): WikiPath 139 return WikiPath::createComboResource(":slot:{$this->getElementId()}.md"); 177 foreach (WikiPath::ALL_MARKUP_EXTENSIONS as $markupExtension) {
|
H A D | MarkupRenderer.php | 37 * @var WikiPath the context path 40 private WikiPath $requestedContextPath; 53 * @param WikiPath|null $contextPath - the requested markup path - may be null (case of webcode) 56 public static function createFromMarkup(string $markup, ?Path $executingPath, ?WikiPath $contextPath): MarkupRenderer 195 * @param WikiPath $path 198 public function setRequestedContextPath(WikiPath $path): MarkupRenderer 216 private function getRequestedContextPath(): WikiPath
|
H A D | MarkupRef.php | 193 $this->path = WikiPath::createRequestedPagePathFromRequest(); 286 $rev = $this->url->getQueryPropertyValue(WikiPath::REV_ATTRIBUTE); 295 $this->path = WikiPath::createMediaPathFromId($wikiPath, $rev); 393 $wikiPath = str_replace(WikiPath::NAMESPACE_SEPARATOR_SLASH, WikiPath::NAMESPACE_SEPARATOR_DOUBLE_POINT, $wikiPath); 396 if ($wikiPath[strlen($wikiPath) - 1] === WikiPath::NAMESPACE_SEPARATOR_DOUBLE_POINT) { 400 if ($wikiPath[0] === WikiPath::NAMESPACE_SEPARATOR_DOUBLE_POINT) { 404 if ($wikiPath[0] === WikiPath::CURRENT_PATH_CHARACTER) { 407 if ($wikiPath[1] === WikiPath::CURRENT_PATH_CHARACTER) { 422 $cleanPath = WikiPath [all...] |
H A D | FirstRasterImage.php | 51 * @return WikiPath 54 public function getValue(): WikiPath 69 return WikiPath::createMediaPathFromId($firstImageId); 83 return WikiPath::MEDIA_DRIVE;
|
H A D | TemplateEngine.php | 32 * @var WikiPath[] 62 * @var WikiPath[] $componentsCssSearchDirectories 110 $defaultTemplateDirectory = WikiPath::createComboResource(":theme:$default:pages:templates")->toLocalPath(); 112 $partialSearchDirectories[] = WikiPath::createComboResource(":theme:$default:pages:partials")->toLocalPath(); 113 $componentsCssSearchDirectories[] = WikiPath::createComboResource(":theme:$default:components:css"); 114 $componentsHtmlSearchDirectories[] = WikiPath::createComboResource(":theme:$default:components:html")->toLocalPath(); 257 * @return WikiPath - where the theme should be stored 259 private static function getThemeHomeAsWikiPath(): WikiPath 261 return WikiPath::getComboCustomThemeHomeDirectory(); 343 public function getComponentStylePathByName(string $nameWithExtenson): WikiPath [all...] |
H A D | ExecutionContext.php | 241 ->setDefaultContextPath(WikiPath::createMarkupPathFromId($requestedId)); 301 public function getContextNamespacePath(): WikiPath 423 public function getRequestedPath(): WikiPath 456 return WikiPath::createMarkupPathFromId($inputId); 461 return WikiPath::createMarkupPathFromId($ID); 475 return WikiPath::createMarkupPathFromId($callingId); 489 return WikiPath::createMarkupPathFromId($requestId); 699 $executingId = WikiPath::removeRootSepIfPresent($executingId); 892 * when testing {@link LinkMarkup} and {@link WikiPath} 895 * @param WikiPath [all...] |
H A D | FirstImage.php | 46 * @return WikiPath 49 public function getValue(): WikiPath 68 return WikiPath::MEDIA_DRIVE;
|
H A D | FeaturedIcon.php | 51 public function getDefaultValue(): WikiPath 73 return WikiPath::createMediaPathFromId($iconImageParsed); 81 return WikiPath::MEDIA_DRIVE;
|
H A D | IFetcherLocalImage.php | 14 * @param WikiPath $path 20 public static function createImageFetchFromPath(WikiPath $path): IFetcherLocalImage 56 $dokuPath = WikiPath::createMediaPathFromId($imageId, $rev);
|
H A D | TemplateForWebPage.php | 60 private WikiPath $requestedContextPath; 115 * @return WikiPath from where the markup slot should be searched 118 public function getRequestedContextPath(): WikiPath 369 $internalFavIcon = WikiPath::createComboResource('images:favicon.ico'); 371 WikiPath::createMediaPathFromId(':favicon.ico'), 372 WikiPath::createMediaPathFromId(':wiki:favicon.ico'), 377 * @var WikiPath $icoWikiPath - we give wiki paths, we get wiki path 403 $internalIcon = WikiPath::createComboResource(":images:favicon-$sizeValue.png"); 405 WikiPath::createMediaPathFromId(":favicon-$sizeValue.png"), 406 WikiPath [all...] |
/plugin/combo/ComboStrap/Meta/Api/ |
H A D | MetadataWikiPath.php | 10 use ComboStrap\WikiPath; alias 15 * A wiki path value where the separator is a {@link WikiPath::NAMESPACE_SEPARATOR_DOUBLE_POINT} 44 * @var WikiPath 46 protected WikiPath $value; 49 * @param WikiPath|string|null $value 58 if ($value instanceof WikiPath) { 68 $value = WikiPath::toValidAbsolutePath($value); 69 $this->value = WikiPath::createWikiPath($value, $this->getDrive()); 95 if (!($defaultValue instanceof WikiPath)) { 112 if ($value instanceof WikiPath) { [all...] |
/plugin/combo/ComboStrap/Meta/Field/ |
H A D | Alias.php | 11 use ComboStrap\WikiPath; alias 19 private WikiPath $path; // the path of the alias 29 * @param WikiPath $path 31 public function __construct(MarkupPath $page, WikiPath $path) 39 * @return WikiPath 41 public function getPath(): WikiPath 68 static function create(ResourceCombo $page, WikiPath $alias): Alias
|
H A D | PageImage.php | 11 use ComboStrap\WikiPath; alias 29 * @var WikiPath 31 private WikiPath $image; 41 public function __construct(WikiPath $image, MarkupPath $page) 48 * @param WikiPath $image 52 public static function create(WikiPath $image, ResourceCombo $page): PageImage 77 public function getImagePath(): WikiPath
|
H A D | FeaturedRasterImage.php | 13 use ComboStrap\WikiPath; alias 23 public static function getComboStrapLogo(): WikiPath 25 return WikiPath::createComboResource(":images:apple-touch-icon.png"); 85 public function getDefaultValue(): WikiPath 108 public function getValueOrParsed(): WikiPath 120 private function getParsedValue(): WikiPath 135 return WikiPath::createMediaPathFromPath($parsedValue); 141 return WikiPath::MEDIA_DRIVE;
|
H A D | FeaturedImage.php | 14 use ComboStrap\WikiPath; alias 63 public function getValue(): WikiPath 74 * @return WikiPath 77 private function getFeaturedImageBlogForContext(ResourceCombo $contextPage): WikiPath 98 return WikiPath::MEDIA_DRIVE;
|
H A D | PageImagePath.php | 11 use ComboStrap\WikiPath; alias 68 WikiPath::addRootSeparatorIfNotPresent($value); 69 $path = WikiPath::createMediaPathFromPath($value); 79 return WikiPath::MEDIA_DRIVE;
|
H A D | AncestorImage.php | 12 use ComboStrap\WikiPath; alias 62 * @return WikiPath 65 public function getValue(): WikiPath 106 return WikiPath::MEDIA_DRIVE;
|
H A D | FeaturedSvgImage.php | 11 use ComboStrap\WikiPath; alias 61 public function getDefaultValue(): WikiPath 71 return WikiPath::createMediaPathFromPath($parsedValue); 78 return WikiPath::MEDIA_DRIVE;
|
H A D | SocialCardImage.php | 15 use ComboStrap\WikiPath; alias 62 public function getValue(): WikiPath 90 private function getFeaturedRasterImageOrFirst(ResourceCombo $contextPage): WikiPath 102 return WikiPath::MEDIA_DRIVE;
|
/plugin/combo/ComboStrap/Web/ |
H A D | UrlRewrite.php | 13 use ComboStrap\WikiPath; 105 $webUrlPath = str_replace(WikiPath::NAMESPACE_SEPARATOR_DOUBLE_POINT, "/", $dokuwikiId); 118 $webUrlPath = str_replace(WikiPath::NAMESPACE_SEPARATOR_DOUBLE_POINT, "/", $dokuwikiId); 145 $webUrlPath = str_replace(WikiPath::NAMESPACE_SEPARATOR_DOUBLE_POINT, "/", $urlId); 156 $webUrlPath = str_replace(WikiPath::NAMESPACE_SEPARATOR_DOUBLE_POINT, "/", $urlId); 15 use ComboStrap\WikiPath; global() alias
|