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

公開メンバ関数

 __construct (array $removed)
 
 isPublished ($index)
 
 isHidden ($index)
 
 getFirstPublishedPage ()
 

詳解

Publisher.php35 行目に定義があります。

構築子と解体子

◆ __construct()

XH\Publisher::__construct ( array  $removed)

Initializes a new instance.

引数
bool[]$removed The removed status of the pages.

Publisher.php63 行目に定義があります。

関数詳解

◆ getFirstPublishedPage()

XH\Publisher::getFirstPublishedPage ( )

Returns the index of the first published page.

戻り値
int -1 if no page is published

Publisher.php138 行目に定義があります。

◆ isHidden()

XH\Publisher::isHidden (   $index)

Returns whether a page is hidden.

A page may be hidden either by #cmsimple hide# or via the page data field linked_to_menu. Note that unpublished pages are not reported as being hidden by this method. Note that all descendants of a hidden page are also regarded as being hidden.

引数
int$indexA page index.
戻り値
bool

Publisher.php121 行目に定義があります。

◆ isPublished()

XH\Publisher::isPublished (   $index)

Returns whether a page is published.

A page may be unpublished either by #cmsimple remove# or via the page data fields published, publication_date and expires. Note that all descendants of an unpublished page are also regarded as being unpublished.

引数
int$indexA page index.
戻り値
bool

Publisher.php97 行目に定義があります。


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