SourceResolver
extends Resolver
in package
Table of Contents
Properties
- $destinationBlogCode : string
- $destinationDomain : string
- $destinationOffsetDir : string
- $destinationPath : string
- $offset : int
Methods
- resolve() : string
- acmsJsReplace() : bool
- acms.jsのクエリのドメイン書き換え処理
- getRegex() : string
- matchingPath() : bool
- パスの書き換え
- removePortFromUrl() : string
- URLからポート番号を削除する
- replacer() : mixed
- パスの書き換え
Properties
$destinationBlogCode
protected
string
$destinationBlogCode
$destinationDomain
protected
string
$destinationDomain
$destinationOffsetDir
protected
string
$destinationOffsetDir
$destinationPath
protected
string
$destinationPath
$offset
protected
int
$offset
Methods
resolve()
public
resolve(string $html, string $document_root, string $offset_dir, string $domain, string $blog_code) : string
Parameters
- $html : string
- $document_root : string
- $offset_dir : string
- $domain : string
- $blog_code : string
Return values
stringacmsJsReplace()
acms.jsのクエリのドメイン書き換え処理
protected
acmsJsReplace(string $path, string $format_path, string &$html, array<string|int, mixed> $match, int $mpt) : bool
Parameters
- $path : string
- $format_path : string
- $html : string
- $match : array<string|int, mixed>
- $mpt : int
Return values
boolgetRegex()
protected
getRegex() : string
Return values
stringmatchingPath()
パスの書き換え
protected
matchingPath(string $path, string $format_path, string &$html, array<string|int, mixed> $match, int $mpt) : bool
Parameters
- $path : string
- $format_path : string
- $html : string
- $match : array<string|int, mixed>
- $mpt : int
Return values
boolremovePortFromUrl()
URLからポート番号を削除する
protected
removePortFromUrl(string $url) : string
Parameters
- $url : string
Return values
stringreplacer()
パスの書き換え
protected
replacer(string $path, string &$html, array<string|int, mixed> $match, int $mpt) : mixed
Parameters
- $path : string
-
置き換え対象パス
- $html : string
-
全体html
- $match : array<string|int, mixed>
- $mpt : int