Class Zenpage
Zenpage root classes
Direct known subclasses
CombiAuthor: Stephen Billard (sbillard), Malte Müller (acrylian)
Located at zp-extensions/zenpage/class-zenpage.php
public
|
|
public static
|
|
public
type
|
|
public
array
|
|
public
array
|
#
getNotViewablePages( )
Returns a list of Zenpage page IDs that the current viewer is not allowed to see Helper function to be used with getAllTagsUnique() and getAllTagsCount() Note if the Zenpage plugin is not enabled but items exists this returns no IDs so you need an extra check afterwards! |
public
array
|
#
getArticles( integer $articles_per_page = 0, string $published = NULL, boolean $ignorepagination = false, string $sortorder = NULL, boolean $sortdirection = NULL, boolean $sticky = NULL, obj $category = NULL, string $author = null )
Gets all news articles titlelink. |
public
array
|
#
getNotViewableNews( )
Returns a list of Zenpage news article IDs that the current viewer is not allowed to see Helper function to be used with getAllTagsUnique() and getAllTagsCount() or db queries only Note if the Zenpage plugin is not enabled but items exists this returns no IDs so you need an extra check afterwards! |
public
integer
|
#
getArticle( integer $index, $published = NULL, $sortorder = NULL, $sortdirection = NULL, $sticky = true )
Returns an article from the album based on the index passed. |
public static
string
|
|
public
|
|
public
|
|
public
array
|
#
getAllArticleDates( boolean $yearsonly = false, string $order = 'desc' )
Retrieves a list of all unique years & months |
public
array
|
|
public
array
|
#
getAllCategories( boolean $visible = true, string $sorttype = NULL, boolean $sortdirection = NULL, boolean $toplevel = false )
Gets all categories |
public static
array
|
|
public
string
|
|
public
booliean
|
|
public
|
|
public
string
|
|
public
string
|
|
public
|
|
public
|
|
public
string
|
#
getItemDefaultSortorder( string $type = 'category' )
Gets the default sortorder for a Zenpage caategory or page that does not yet have one, e.g. because newly created The sortorder takae care of existing ones and add the item after existing items. |
public
|
$categoryStructure
|
#
null
|
protected
string
|
$sorttype
|
#
'date'
|
protected
boolean
|
$sortdirection
|
#
true
|
protected
boolean
|
$sortSticky
|
#
true
|
protected
string
|
$category_sorttype
|
#
'sort_order'
|
protected
boolean
|
$category_sortdirection
|
#
false
|
protected
string
|
$page_sorttype
|
#
'sort_order'
|
protected
boolean
|
$page_sortdirection
|
#
false
|