ThemeObject __construct(
)
|
|
Class instantiator
Redefined in descendants as:
object addComment(
string
$name, string
$email, string
$website, string
$comment, string
$code, string
$code_ok, string
$ip, bool
$private, bool
$anon, string
$customdata
)
|
|
Adds comments to the album assumes data is coming straight from GET or POST
Returns a comment object
Parameters:
string |
$name: |
Comment author name |
string |
$email: |
Comment author email |
string |
$website: |
Comment author website |
string |
$comment: |
body of the comment |
string |
$code: |
CAPTCHA code entered |
string |
$code_ok: |
CAPTCHA hash expected |
string |
$ip: |
the IP address of the comment poster |
bool |
$private: |
set to true if the comment is for the admin only |
bool |
$anon: |
set to true if the poster wishes to remain anonymous |
string |
$customdata: |
|
void checkAccess(
[
&$hint = NULL], [
&$show = NULL], string
$hint, string
$show
)
|
|
Checks if viewing of object is allowed
Parameters:
string |
$hint: |
|
string |
$show: |
|
|
&$hint: |
|
|
&$show: |
|
Redefined in descendants as:
void checkForGuest(
[$hint
&$hint = NULL], [$show
&$show = NULL]
)
|
|
returns false (deny) if gallery is "private"
Parameters:
$hint |
&$hint: |
|
$show |
&$show: |
|
counts visits to the object
Returns the codeblocks as an serialized array
Returns the count of comments in the album. Ignores comments in moderation
array getComments(
[bool
$moderated = false], [bool
$private = false], [bool
$desc = false]
)
|
|
Returns an array of comments for this album
Parameters:
bool |
$moderated: |
if false, ignores comments marked for moderation |
bool |
$private: |
if false ignores private comments |
bool |
$desc: |
set to true for descending order |
bool getCommentsAllowed(
)
|
|
Retuns true if comments are allowed
string getCustomData(
[
$locale = NULL]
)
|
|
returns the custom data field
Parameters:
Returns the unformatted date
Returns the partent id
Redefined in descendants as:
string getTitle(
[
$locale = NULL]
)
|
|
Returns the title
Parameters:
bool hasTag(
string
$checktag
)
|
|
Checks if an object has a tag assigned.
Parameters:
string |
$checktag: |
tag to check for |
void isMyItem(
bit
$action
)
|
|
Checks basic access rights of an object
Parameters:
bit |
$action: |
what the caller wants to do |
Redefined in descendants as:
set the codeblocks as an serialized array
Parameters:
void setCommentsAllowed(
bool
$commentson
)
|
|
Sets the comments allowed flag
Parameters:
bool |
$commentson: |
true if they are allowed |
void setCustomData(
string
$val
)
|
|
Sets the custom data field
Parameters:
string |
$val: |
the value to be put in custom_data |
void setDateTime(
string
$datetime
)
|
|
Stores the date
Parameters:
string |
$datetime: |
formatted date |
void setParentID(
$v
$v
)
|
|
Sets the ParentID field
Parameters:
void setShow(
bool
$show
)
|
|
Stores the published value
Parameters:
bool |
$show: |
True if the album is published |
void setTags(
string
$tags
)
|
|
Stores tag information
Parameters:
string |
$tags: |
the tag list |
void setTitle(
string
$title
)
|
|
Stores the title
Parameters: