ZenpageNews __construct(
$titlelink, [
$allowCreate = NULL]
)
|
|
Parameters:
|
$titlelink: |
|
|
$allowCreate: |
|
Redefinition of:
- ZenpageItems::__construct()
- Class instantiator
void categoryIsVisible(
)
|
|
returns true if the article exists in any published category (or in no categories)
void checkforGuest(
[$hint
&$hint = NULL], [$show
&$show = NULL]
)
|
|
See if a guest is logged on to the news category.
Note: If any belonging category is plublic or he is logged on, then success.
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.
array getCategories(
int
$article_id
)
|
|
Gets the categories assigned to an news article
Parameters:
int |
$article_id: |
ID od the article |
int getIndex(
string
$sortorder, bool
$sortdirection, bool
$sticky
)
|
|
Get the index of this article
Parameters:
string |
$sortorder: |
|
bool |
$sortdirection: |
TRUE for ascending, FALSE for descending |
bool |
$sticky: |
If sticky article should come first |
Returns the url to a news article
Returns the url to a news article
API Tags:
Deprecated: | since version 1.4.6 |
object getNextArticle(
[string
$sortorder = 'date'], [bool
$sortdirection = false], [bool
$sticky = true]
)
|
|
Returns the next article.
Parameters:
string |
$sortorder: |
|
bool |
$sortdirection: |
TRUE for ascending, FALSE for descending |
bool |
$sticky: |
If sticky article should come first |
object getPrevArticle(
[string
$sortorder = 'date'], [bool
$sortdirection = false], [bool
$sticky = true]
)
|
|
Return the previous article
Parameters:
string |
$sortorder: |
|
bool |
$sortdirection: |
TRUE for ascending, FALSE for descending |
bool |
$sticky: |
If sticky article should come first |
Returns true if the article is sticky
bool inNewsCategory(
string
$catlink
)
|
|
Checks if an article is in a category and returns TRUE or FALSE
Parameters:
string |
$catlink: |
The titlelink of a category |
array inProtectedCategory(
[bool
$only = false]
)
|
|
Checks if an article is in a password protected category and returns TRUE or FALSE NOTE: This function does not check if the password has been entered! Use checkAccess() for that.
Parameters:
bool |
$only: |
set to true to know if the news article belongs only to protected categories (i.e. it is protected) |
bool inSubNewsCategoryOf(
string
$catlink
)
|
|
Checks if an article is in a sub category of $catlink
Parameters:
string |
$catlink: |
The titlelink of a category |
void isMyItem(
bit
$action
)
|
|
Checks if user is news author
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
returns true if the article resides only in protected categories
void setCategories(
$categories
)
|
|
Parameters: