static string getOffset(
int
$articles_per_page, [bool
$ignorepagination = false]
)
|
|
Gets the LIMIT and OFFSET for the query that gets the news articles
Parameters:
|
int |
$articles_per_page: |
The number of articles to get |
|
bool |
$ignorepagination: |
If pagination should be ingored so always with the first is started (false is default) |
int countCombiNews(
[
$published = NULL]
)
|
|
CombiNews Feature: Counts all news articles and all images
Parameters:
array getAllArticleDates(
[bool
$yearsonly = false], [string
$order = 'desc']
)
|
|
Retrieves a list of all unique years & months
Parameters:
|
bool |
$yearsonly: |
If set to true only the years' count is returned (Default false) |
|
string |
$order: |
'desc' (default) or 'asc' for descending or ascending |
array getAllCategories(
[
$visible = true]
)
|
|
Gets all categories
Parameters:
int getArticle(
int
$index, [
$published = NULL], [
$sortorder = 'date'], [
$sortdirection = 'desc'], [
$sticky = true]
)
|
|
Returns an article from the album based on the index passed.
Parameters:
|
int |
$index: |
|
|
|
$published: |
|
|
|
$sortorder: |
|
|
|
$sortdirection: |
|
|
|
$sticky: |
|
array getArticles(
[int
$articles_per_page = 0], [string
$published = NULL], [boolean
$ignorepagination = false], [string
$sortorder = 'date'], [string
$sortdirection = 'desc'], [bool
$sticky = true]
)
|
|
Gets all news articles titlelink.
NOTE: Since this function only returns titlelinks for use with the object model it does not exclude articles that are password protected via a category
Parameters:
|
int |
$articles_per_page: |
The number of articles to get |
|
string |
$published: |
"published" for an published articles, "unpublished" for an unpublised articles, "sticky" for sticky articles (published or not!) for admin page use only, "all" for all articles |
|
boolean |
$ignorepagination: |
Since also used for the news loop this function automatically paginates the results if the "page" GET variable is set. To avoid this behaviour if using it directly to get articles set this TRUE (default FALSE) |
|
string |
$sortorder: |
"date" for sorting by date (default) "title" for sorting by title This parameter is not used for date archives |
|
string |
$sortdirection: |
"desc" (default) for descending sort order "asc" for ascending sort order This parameter is not used for date archives |
|
bool |
$sticky: |
set to true to place "sticky" articles at the front of the list. |
array getCategory(
int
$id
)
|
|
Gets a category titlelink by id
Parameters:
|
int |
$id: |
id of the category |
string getCategoryLink(
string
$catname
)
|
|
Gets the category link of a category
Parameters:
|
string |
$catname: |
the title of the category |
void getCategoryStructure(
)
|
|
array getCombiNews(
[int
$articles_per_page = ''], [string
$mode = ''], [string
$published = NULL], [string
$sortorder = ''], [bool
$sticky = true]
)
|
|
Gets news articles and images of a gallery to show them together on the news section
NOTE: This function does not exclude articles that are password protected via a category
Parameters:
|
int |
$articles_per_page: |
The number of articles to get |
|
string |
$mode: |
"latestimages-thumbnail" "latestimages-thumbnail-customcrop" "latestimages-sizedimage" "latestalbums-thumbnail" "latestalbums-thumbnail-customcrop" "latestalbums-sizedimage" "latestimagesbyalbum-thumbnail" "latestimagesbyalbum-thumbnail-customcrop" "latestimagesbyalbum-sizedimage" "latestupdatedalbums-thumbnail" (for RSS and getLatestNews() used only) "latestupdatedalbums-thumbnail-customcrop" (for RSS and getLatestNews() used only) "latestupdatedalbums-sizedimage" (for RSS and getLatestNews() used only) NOTE: The "latestupdatedalbums" variants do NOT support pagination as required on the news loop! |
|
string |
$published: |
"published" for published articles, "unpublished" for un-published articles, "all" for all articles |
|
string |
$sortorder: |
id, date or mtime, only for latestimages-... modes |
|
bool |
$sticky: |
set to true to place "sticky" articles at the front of the list. |
string getNewsArchivePath(
)
|
|
Returns partial path of news date archive
Returns the base /news or index.php?p=news url
string getNewsCategoryPath(
)
|
|
Returns partial path of news category
string getNewsIndexURL(
)
|
|
Returns the full path of the news index page (news page 1) or if the "news on zp index" option is set a link to the gallery index.
string getNewsPagePath(
)
|
|
Returns partial path of a news page number path
string getNewsTitlePath(
)
|
|
Returns partial path of news article title
array getPages(
[bool
$published = NULL], [bool
$toplevel = false]
)
|
|
Gets the titlelink and sort order for all pages or published ones.
NOTE: Since this function only returns titlelinks for use with the object model it does not exclude pages that are password protected
Parameters:
|
bool |
$published: |
TRUE for published or FALSE for all pages including un-published |
|
bool |
$toplevel: |
TRUE for only the toplevel pages |
string getPagesLinkPath(
)
|
|
Returns path to the pages.php page without the title(link)
Returns the articles count
"Magic" function to return a string identifying the object when it is treated as a string
API Tags: