公開メンバ関数 | |
__construct (array $h, array $pageDataFields, array $tempData, array $pageData) | |
storedFields () | |
getCurrentInterests () | |
add_interest ($field) | |
removeInterest ($field) | |
add_tab ($tab_name, $tab_view, $cssClass=null) | |
refresh (array $data=null) | |
find_page ($id) | |
find_all () | |
new_page (array $params=array()) | |
appendNewPage (array $params=array()) | |
insert (array $pages, $index) | |
destroy ($key) | |
find_field_value ($field, $value, $separator=null) | |
find_field_value_sortkey ($field, $value, $sortKey, $sortFlag=null, $sep=null) | |
refresh_from_texteditor (array $headings, $index) | |
update ($s, array $params) | |
create_tabs ($s) | |
headAsPHP () | |
pageAsPHP ($id) | |
PageDataRouter.php の 28 行目に定義があります。
XH\PageDataRouter::__construct | ( | array | $h, |
array | $pageDataFields, | ||
array | $tempData, | ||
array | $pageData | ||
) |
Constructs an instance.
array | $h | The page headings. |
array | $pageDataFields | The page data fields. |
array | $tempData | The most recently deleted page data. |
array | $pageData | The page data. |
PageDataRouter.php の 52 行目に定義があります。
XH\PageDataRouter::add_interest | ( | $field | ) |
Registers a field for the page data.
string | $field | The name of the page data field. |
PageDataRouter.php の 91 行目に定義があります。
XH\PageDataRouter::add_tab | ( | $tab_name, | |
$tab_view, | |||
$cssClass = null |
|||
) |
Registers a page data tab.
string | $tab_name | The title of the tab. |
string | $tab_view | The filename of the view. |
string | $cssClass | A CSS class name. |
PageDataRouter.php の 129 行目に定義があります。
XH\PageDataRouter::appendNewPage | ( | array | $params = array() | ) |
Appends a new page.
array | $params | Default data of the page. |
PageDataRouter.php の 198 行目に定義があります。
XH\PageDataRouter::create_tabs | ( | $s | ) |
Returns the page data tab views.
int | $s | The index of the page. |
bool string string string object The publisher.
PageDataRouter.php の 386 行目に定義があります。
XH\PageDataRouter::destroy | ( | $key | ) |
Deletes the page data of a single page. Returns whether that succeeded.
int | $key | The index of the page. |
PageDataRouter.php の 224 行目に定義があります。
XH\PageDataRouter::find_all | ( | ) |
XH\PageDataRouter::find_field_value | ( | $field, | |
$value, | |||
$separator = null |
|||
) |
Returns an array of all pages containing $value in $field.
If $separator is given the $field will be translated to an array
string | $field | The name of the field. |
string | $value | The value to look for. |
string | $separator | The list item separator. |
PageDataRouter.php の 242 行目に定義があります。
XH\PageDataRouter::find_field_value_sortkey | ( | $field, | |
$value, | |||
$sortKey, | |||
$sortFlag = null , |
|||
$sep = null |
|||
) |
Returns the sorted page data of all pages, which contain a value in a (list) field.
string | $field | The name of the field. |
string | $value | The value to look for. |
string | $sortKey | The name of the field to sort by. |
int | $sortFlag | The sort options as for array_multisort(). |
string | $sep | The list item separator. |
PageDataRouter.php の 266 行目に定義があります。
XH\PageDataRouter::find_page | ( | $id | ) |
Returns the page data of a single page.
int | $id | The page index. |
PageDataRouter.php の 155 行目に定義があります。
XH\PageDataRouter::getCurrentInterests | ( | ) |
Returns the currently registered interests.
Must not be called before all plugins have been loaded.
PageDataRouter.php の 78 行目に定義があります。
XH\PageDataRouter::headAsPHP | ( | ) |
Returns the global page data arrays as a PHP tag.
PageDataRouter.php の 430 行目に定義があります。
XH\PageDataRouter::insert | ( | array | $pages, |
$index | |||
) |
Replaces the page data of a single page. Returns whether that succeeded.
array | $pages | The new page data. |
int | $index | The index of the page. |
PageDataRouter.php の 212 行目に定義があります。
XH\PageDataRouter::new_page | ( | array | $params = array() | ) |
Returns the page data for a new page, without actually creating the page.
array | $params | Default data of the page. |
PageDataRouter.php の 182 行目に定義があります。
XH\PageDataRouter::pageAsPHP | ( | $id | ) |
Returns the page data of a single page as PHP tag.
int | $id | The index of the page. |
PageDataRouter.php の 459 行目に定義があります。
XH\PageDataRouter::refresh | ( | array | $data = null | ) |
Replaces the existing page data.
array | $data | The new page data. |
PageDataRouter.php の 142 行目に定義があります。
XH\PageDataRouter::refresh_from_texteditor | ( | array | $headings, |
$index | |||
) |
Updates the page data according to changes from the online editor. Returns whether that succeeded.
array | $headings | The page headings contained in the current edit. |
int | $index | The page index. |
PageDataRouter.php の 284 行目に定義があります。
XH\PageDataRouter::removeInterest | ( | $field | ) |
Unregisters a field for the page data. To permanently remove the field, one has to call XH_saveContents() subsequently.
string | $field | A page data field name. |
PageDataRouter.php の 110 行目に定義があります。
XH\PageDataRouter::storedFields | ( | ) |
Returns all fields that are stored in the page data.
PageDataRouter.php の 64 行目に定義があります。
XH\PageDataRouter::update | ( | $s, | |
array | $params | ||
) |
Updates the page data of a single page and returns whether that succeeded.
int | $s | The index of the page. |
array | $params | The dictionary of fields to update. |
PageDataRouter.php の 361 行目に定義があります。