CMSimple_XH 開発者ドキュメント
XH\LinkChecker クラス

公開メンバ関数

 prepare ()
 
 doCheck ()
 
 checkLinks ()
 
 determineLinkStatus (Link $link)
 
 reportError (Link $link)
 
 reportNotice (Link $link)
 
 message ($checkedLinks, array $hints)
 

限定公開メンバ関数

 makeHeadRequest ($host, $path)
 

詳解

LinkChecker.php30 行目に定義があります。

関数詳解

◆ checkLinks()

XH\LinkChecker::checkLinks ( )

Checks all links and returns the result view.

戻り値
string HTML

LinkChecker.php71 行目に定義があります。

◆ determineLinkStatus()

XH\LinkChecker::determineLinkStatus ( Link  $link)

Determines the status of a link.

引数
Link$linkA link
戻り値
void

LinkChecker.php144 行目に定義があります。

◆ doCheck()

XH\LinkChecker::doCheck ( )

Handles the actual link check request.

戻り値
void

LinkChecker.php59 行目に定義があります。

◆ makeHeadRequest()

XH\LinkChecker::makeHeadRequest (   $host,
  $path 
)
protected

Makes a head request and returns the response status code, FALSE if the request failed.

引数
string$hostA host name.
string$pathAn absolute path.
戻り値
int

LinkChecker.php277 行目に定義があります。

◆ message()

XH\LinkChecker::message (   $checkedLinks,
array  $hints 
)

Returns the linkcheck results.

引数
int$checkedLinksThe number of checked links.
array$hintsThe errors and warnings.
戻り値
string HTML

array The localization of the core. array The page headings. array The page URLs.

LinkChecker.php377 行目に定義があります。

◆ prepare()

XH\LinkChecker::prepare ( )

Prepares the link check.

戻り値
string HTML

string The script name. array The paths of system files and folders. array The localization of the core.

LinkChecker.php41 行目に定義があります。

◆ reportError()

XH\LinkChecker::reportError ( Link  $link)

Returns the report of a single error.

引数
Link$linkA link.
戻り値
string HTML

LinkChecker.php301 行目に定義があります。

◆ reportNotice()

XH\LinkChecker::reportNotice ( Link  $link)

Returns the report of a single notice.

引数
Link$linkA link.
戻り値
string HTML

LinkChecker.php338 行目に定義があります。


このクラス詳解は次のファイルから抽出されました: