ZenpageNews ZenpageNews(
$titlelink
)
|
|
Parameters:
object addComment(
string
$name, string
$email, string
$website, string
$comment, string
$code, string
$code_ok, string
$ip, bool
$private, bool
$anon
)
|
|
Adds a comment to the news article 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 md5 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 |
Returns the author of the news article
array getCategories(
int
$article_id
)
|
|
Gets the categories assigned to an news article
Parameters:
|
int |
$article_id: |
ID od the article |
Returns the codeblocks of the news article as an serialized array
Returns the count of comments for the current news article. Comments in moderation are not counted
array getComments(
[bool
$moderated = false], [bool
$private = false], [bool
$desc = false]
)
|
|
Returns an array of comments of the current news article
Parameters:
|
bool |
$moderated: |
if false, comments in moderation are ignored |
|
bool |
$private: |
if false ignores private comments |
|
bool |
$desc: |
set to true for descending order |
bool getCommentsAllowed(
)
|
|
Returns true of comments are allowed
Returns the content of the news article
Returns the date of the news article
Returns the expire date of the news article
string getExtraContent(
)
|
|
Returns the extra content of the news article
Returns the hitcount of the news article
Returns the id of the news article
Returns the last change date of the news article
string getLastchangeAuthor(
)
|
|
Returns the last change author of the news article
Returns the locked status of the news article, "1" if locked (only used on the admin)
Returns the permalink status of the news article, "1" if enabled (only used on the admin)
Returns the show status of the news article, "1" if published
Returns the news article title sortorder
Returns the tag data of an album
Returns the title of the news article
Returns the titlelink of the news article
void setTags(
string
$tags
)
|
|
Stores tag information of an album
Parameters:
|
string |
$tags: |
the tag list |