ZenpagePage __construct(
$titlelink, [
$allowCreate = NULL]
)
|
|
Parameters:
|
$titlelink: |
|
|
$allowCreate: |
|
Redefinition of:
- ZenpageItems::__construct()
- Class instantiator
void checkforGuest(
[$hint
&$hint = NULL], [$show
&$show = NULL]
)
|
|
Checks if user is allowed to access the page
Parameters:
$hint |
&$hint: |
|
$show |
&$show: |
|
void copy(
string
$newtitle
)
|
|
duplicates an article
Parameters:
string |
$newtitle: |
the title for the new article |
Redefinition of:
- PersistentObject::copy()
- Copy this record to another unique set. Checks if the record exists there first, if so returns false. If successful returns true. No changes are made to this object and no other objects are created, just the database entry.
Returns full path to a specific page
Returns full path to a specific page
API Tags:
Deprecated: | since version 1.4.6 |
array getPages(
[bool
$published = NULL], [bool
$toplevel = false], [int
$number = NULL], [string
$sorttype = NULL], [string
$sortdirection = NULL]
)
|
|
Gets the sub pages of a page
Parameters:
bool |
$published: |
TRUE for published or FALSE for all pages including un-published |
bool |
$toplevel: |
ignored, left for parameter compatibility |
int |
$number: |
number of pages to get (NULL by default for all) |
string |
$sorttype: |
NULL for the standard order as sorted on the backend, "title", "date", "popular", "mostrated", "toprated", "random" |
string |
$sortdirection: |
false for ascending, true for descending |
array getParents(
[
&$parentid = ''], [bool
$initparents = true], int
$parentid
)
|
|
Gets the parent pages recursivly to the page whose parentid is passed or the current object
Parameters:
int |
$parentid: |
The parentid of the page to get the parents of |
bool |
$initparents: |
|
|
&$parentid: |
|
string getPasswordHint(
[
$locale = NULL]
)
|
|
Returns the password hint
Parameters:
Gets the sub pages recursivly by titlelink
API Tags:
void isMyItem(
bit
$action
)
|
|
Checks if user is author of page
Parameters:
bit |
$action: |
what the caller wants to do returns true of access is allowed |
Redefinition of:
- ThemeObject::isMyItem()
- Checks basic access rights of an object
Checks if a page is protected and returns TRUE or FALSE NOTE: This function does only check if a password is set not if it has been entered! Use $this->checkforGuest() for that.
Deletes a page (and also if existing its subpages) from the database
Redefinition of:
- PersistentObject::remove()
- Deletes object from the database
void setPassword(
string
$pwd
)
|
|
Sets the encrypted password
Parameters:
string |
$pwd: |
the cleartext password |
void setPasswordHint(
string
$hint
)
|
|
Sets the password hint
Parameters:
string |
$hint: |
the hint text |
void setSortOrder(
string
$sortorder
)
|
|
Stores the sort order
Parameters:
string |
$sortorder: |
image sort order |
void setUser(
string
$user
)
|
|
Sets the guest user
Parameters: