[ class tree: plugins ] [ index: plugins ] [ all elements ]

Class: ZenpageCategory

Source Location: /zp-extensions/zenpage/zenpage-class-category.php

Class ZenpageCategory

Inherited Properties, Constants, and Methods
Inherited Properties Inherited Methods Inherited Constants

Inherited From ThemeObject

ThemeObject::$comments

Inherited From PersistentObject

PersistentObject::$exists
PersistentObject::$id
PersistentObject::$loaded
PersistentObject::$table
PersistentObject::$transient

Inherited From ZenpageRoot

ZenpageRoot::getPermalink()
Returns the perma link status (only used on admin)
ZenpageRoot::getTitlelink()
Returns the titlelink
ZenpageRoot::setPermalink()
ZenpageRoot::setTitlelink()
sets the title link

Inherited From ThemeObject

ThemeObject::__construct()
Class instantiator
ThemeObject::addComment()
Adds comments to the album assumes data is coming straight from GET or POST
ThemeObject::checkAccess()
Checks if viewing of object is allowed
ThemeObject::checkForGuest()
returns false (deny) if gallery is "private"
ThemeObject::countHit()
counts visits to the object
ThemeObject::getCodeblock()
Returns the codeblocks as an serialized array
ThemeObject::getCommentCount()
Returns the count of comments in the album. Ignores comments in moderation
ThemeObject::getComments()
Returns an array of comments for this album
ThemeObject::getCommentsAllowed()
Retuns true if comments are allowed
ThemeObject::getCustomData()
returns the custom data field
ThemeObject::getDateTime()
Returns the unformatted date
ThemeObject::getHitcounter()
Returns the hitcount
ThemeObject::getParentID()
Returns the partent id
ThemeObject::getShow()
Returns true published
ThemeObject::getTags()
Returns the tag data
ThemeObject::getTitle()
Returns the title
ThemeObject::hasTag()
Checks if an object has a tag assigned.
ThemeObject::isMyItem()
Checks basic access rights of an object
ThemeObject::setCodeblock()
set the codeblocks as an serialized array
ThemeObject::setCommentsAllowed()
Sets the comments allowed flag
ThemeObject::setCustomData()
Sets the custom data field
ThemeObject::setDateTime()
Stores the date
ThemeObject::setParentID()
Sets the ParentID field
ThemeObject::setShow()
Stores the published value
ThemeObject::setTags()
Stores tag information
ThemeObject::setTitle()
Stores the title

Inherited From PersistentObject

PersistentObject::PersistentObject()
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.
PersistentObject::get()
Get the value of a variable. If $current is false, return the value as of the last save of this object.
PersistentObject::getData()
returns the database record of the object
PersistentObject::getID()
Returns the id
PersistentObject::instantiate()
Prime instantiator for Zenphoto objects
PersistentObject::move()
Change one or more values of the unique set assigned to this record.
PersistentObject::remove()
Deletes object from the database
PersistentObject::save()
Save the updates made to this object since the last update. Returns true if successful, false if not.
PersistentObject::set()
Set a variable in this object. Does not persist to the database until save() is called. So, IMPORTANT: Call save() after set() to persist.
PersistentObject::setDefaults()
Sets default values for new objects using the set() method.
PersistentObject::__toString()
"Magic" function to return a string identifying the object when it is treated as a string

[ Top ]
Property Summary
mixed   $manage_rights  
mixed   $manage_some_rights  
mixed   $sortdirection  
mixed   $sortorder  
mixed   $sortSticky  
mixed   $view_rights  

[ Top ]
Method Summary
ZenpageCategory   __construct()  
void   checkforGuest()   Checks if user is allowed to access news category
int   getArticle()   Returns an article from the album based on the index passed.
array   getArticles()   Gets news articles titlelinks this category is attached to
type   getCategoryLink()  
string   getContent()   Returns the content
string   getDesc()   Returns the description
string   getExtraContent()   Returns the extra content
int   getIndex()   Get the index of this article
string   getLink()   Returns the full path to a news category
object   getNextArticle()   Returns the next article.
array   getParents()   Gets the parent categories recursivly to the category whose parentid is passed or the current object
void   getPassword()  
void   getPasswordHint()  
object   getPrevArticle()   Return the previous article
void   getSortDirection()  
string   getSortOrder()   Returns the sort order
void   getSortSticky()  
void   getSortType()  
array   getSubCategories()   Gets the sub categories recursivly by titlelink
void   getUser()  
void   isMyItem()  
bool   isProtected()   Checks if a category is protected and returns TRUE or FALSE NOTE: This function does only check if a password is set not if it has been entered! Use $this->checkforGuest() for that.
bool   isSubNewsCategoryOf()   Checks if the current news category is a sub category of $catlink
void   remove()   Deletes a category (and also if existing its subpages) from the database
void   setContent()   Set the content datum
void   setDesc()   Stores the description
void   setExtraContent()   sets the extra content
void   setPassword()   Sets the encrypted password
void   setPasswordHint()   Sets the password hint
void   setSortDirection()  
void   setSortOrder()   Stores the sort order
void   setSortSticky()  
void   setSortType()  
void   setUser()   Sets the guest user

[ Top ]
Properties
mixed   $manage_rights = MANAGE_ALL_NEWS_RIGHTS [line 12]

Redefinition of:
ThemeObject::$manage_rights

[ Top ]
mixed   $manage_some_rights = ZENPAGE_NEWS_RIGHTS [line 13]

Redefinition of:
ThemeObject::$manage_some_rights

[ Top ]
mixed   $sortdirection = true [line 16]
API Tags:
Access:  protected


Redefinition of:
ZenpageRoot::$sortdirection

[ Top ]
mixed   $sortorder = 'date' [line 15]
API Tags:
Access:  protected


Redefinition of:
ZenpageRoot::$sortorder

[ Top ]
mixed   $sortSticky = true [line 17]
API Tags:
Access:  protected


Redefinition of:
ZenpageRoot::$sortSticky

[ Top ]
mixed   $view_rights = ALL_NEWS_RIGHTS [line 14]

Redefinition of:
ThemeObject::$view_rights

[ Top ]
Methods
Constructor __construct  [line 19]

  ZenpageCategory __construct( $catlink, [ $create = NULL]  )

Parameters:
   $catlink: 
   $create: 


Redefinition of:
ThemeObject::__construct()
Class instantiator

[ Top ]
checkforGuest  [line 286]

  void checkforGuest( [$hint &$hint = NULL], [$show &$show = NULL]  )

Checks if user is allowed to access news category

Parameters:
$hint   &$hint: 
$show   &$show: 


[ Top ]
getArticle  [line 383]

  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: 


[ Top ]
getArticles  [line 372]

  array getArticles( [int $articles_per_page = 0], [string $published = NULL], [boolean $ignorepagination = false], [string $sortorder = NULL], [string $sortdirection = NULL], [bool $sticky = NULL]  )

Gets news articles titlelinks this category is attached to

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 published articles, "published-unpublished" for published articles only from an unpublished category, "unpublished" for unpublished 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" (default), "title", "popular", "mostrated", "toprated", "random" This parameter is not used for date archives
string   $sortdirection:  "asc" or "desc" for ascending or descending order This parameter is not used for date archives
bool   $sticky:  set to true to place "sticky" articles at the front of the list.


[ Top ]
getCategoryLink  [line 459]

  type getCategoryLink( )


API Tags:
Deprecated:  


[ Top ]
getContent  [line 56]

  string getContent( [ $locale = NULL]  )

Returns the content

Parameters:
   $locale: 


[ Top ]
getDesc  [line 32]

  string getDesc( [ $locale = NULL]  )

Returns the description

Parameters:
   $locale: 


[ Top ]
getExtraContent  [line 80]

  string getExtraContent( [ $locale = NULL]  )

Returns the extra content

Parameters:
   $locale: 


[ Top ]
getIndex  [line 396]

  int getIndex( $sortorder, $sortdirection, $sticky  )

Get the index of this article

Parameters:
   $sortorder: 
   $sortdirection: 
   $sticky: 


[ Top ]
getLink  [line 442]

  string getLink( [string $page = NULL]  )

Returns the full path to a news category

Parameters:
string   $page:  The category page number


[ Top ]
getNextArticle  [line 428]

  object getNextArticle( [ $sortorder = 'date'], [ $sortdirection = 'desc'], [ $sticky = true]  )

Returns the next article.

Parameters:
   $sortorder: 
   $sortdirection: 
   $sticky: 


[ Top ]
getParents  [line 257]

  array getParents( [ &$parentid = ''], [bool $initparents = true], int $parentid  )

Gets the parent categories recursivly to the category whose parentid is passed or the current object

Parameters:
int   $parentid:  The parentid of the category to get the parents of
bool   $initparents: 
   &$parentid: 


[ Top ]
getPassword  [line 152]

  void getPassword( )



[ Top ]
getPasswordHint  [line 169]

  void getPasswordHint( )



[ Top ]
getPrevArticle  [line 416]

  object getPrevArticle( [ $sortorder = 'date'], [ $sortdirection = 'desc'], [ $sticky = true]  )

Return the previous article

Parameters:
   $sortorder: 
   $sortdirection: 
   $sticky: 


[ Top ]
getSortDirection  [line 115]

  void getSortDirection( )



[ Top ]
getSortOrder  [line 102]

  string getSortOrder( )

Returns the sort order



[ Top ]
getSortSticky  [line 131]

  void getSortSticky( )



[ Top ]
getSortType  [line 123]

  void getSortType( )



[ Top ]
getSubCategories  [line 212]

  array getSubCategories( [bool $visible = true], [string $sorttype = NULL], [string $sortdirection = NULL]  )

Gets the sub categories recursivly by titlelink

Parameters:
bool   $visible:  TRUE for published and unprotected
string   $sorttype:  NULL for the standard order as sorted on the backend, "title", "date", "popular"
string   $sortdirection:  "asc" or "desc" for ascending or descending order


[ Top ]
getUser  [line 139]

  void getUser( )



[ Top ]
isMyItem  [line 330]

  void isMyItem( $action  )

Parameters:
   $action: 


Redefinition of:
ThemeObject::isMyItem()
Checks basic access rights of an object

[ Top ]
isProtected  [line 326]

  bool isProtected( )

Checks if a category is protected and returns TRUE or FALSE NOTE: This function does only check if a password is set not if it has been entered! Use $this->checkforGuest() for that.



[ Top ]
isSubNewsCategoryOf  [line 233]

  bool isSubNewsCategoryOf( $catlink  )

Checks if the current news category is a sub category of $catlink

Parameters:
   $catlink: 


[ Top ]
remove  [line 186]

  void remove( )

Deletes a category (and also if existing its subpages) from the database



Redefinition of:
PersistentObject::remove()
Deletes object from the database

[ Top ]
setContent  [line 70]

  void setContent( $c $c  )

Set the content datum

Parameters:
$c   $c:  full language string


[ Top ]
setDesc  [line 46]

  void setDesc( string $desc  )

Stores the description

Parameters:
string   $desc:  description text


[ Top ]
setExtraContent  [line 93]

  void setExtraContent( $ec  )

sets the extra content

Parameters:
   $ec: 


[ Top ]
setPassword  [line 165]

  void setPassword( string $pwd  )

Sets the encrypted password

Parameters:
string   $pwd:  the cleartext password


[ Top ]
setPasswordHint  [line 178]

  void setPasswordHint( string $hint  )

Sets the password hint

Parameters:
string   $hint:  the hint text


[ Top ]
setSortDirection  [line 119]

  void setSortDirection( $value  )

Parameters:
   $value: 


[ Top ]
setSortOrder  [line 111]

  void setSortOrder( string $sortorder  )

Stores the sort order

Parameters:
string   $sortorder:  image sort order


[ Top ]
setSortSticky  [line 135]

  void setSortSticky( $value  )

Parameters:
   $value: 


[ Top ]
setSortType  [line 127]

  void setSortType( $value  )

Parameters:
   $value: 


[ Top ]
setUser  [line 148]

  void setUser( string $user  )

Sets the guest user

Parameters:
string   $user: 


[ Top ]

Documentation generated on Sat, 07 Jun 2014 18:03:50 +0200 by phpDocumentor 1.4.3