[ 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::$commentcount
ThemeObject::$comments

Inherited From PersistentObject

PersistentObject::$cache_by
PersistentObject::$data
PersistentObject::$id
PersistentObject::$loaded
PersistentObject::$table
PersistentObject::$tempdata
PersistentObject::$transient
PersistentObject::$unique_set
PersistentObject::$updates
PersistentObject::$use_cache

Inherited From ZenpageRoot

ZenpageRoot::ZenpageRoot()
Class instantiator
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()
Prime instantiator for Zenphoto objects
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::getID()
Returns the id
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.

[ Top ]
Property Summary
mixed   $manage_rights  
mixed   $manage_some_rights  
mixed   $view_rights  

[ Top ]
Method Summary
ZenpageCategory   __construct()  
void   checkforGuest()   Checks if user is allowed to access news category
array   getArticles()   Gets news articles titlelinks this category is attached to
string   getCategoryLink()   Returns the full path to a news category
string   getDesc()   Returns the description
array   getParents()   Gets the parent categories recursivly to the category whose parentid is passed or the current object
void   getPassword()  
void   getPasswordHint()  
string   getSortOrder()   Returns the sort order
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   setDesc()   Stores the description
void   setPassword()   Sets the encrypted password
void   setPasswordHint()   Sets the password hint
void   setSortOrder()   Stores the sort order
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   $view_rights = VIEW_NEWS_RIGHTS [line 14]

Redefinition of:
ThemeObject::$view_rights

[ Top ]
Methods
Constructor __construct  [line 16]

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

Parameters:
   $catlink: 
   $create: 


Redefinition of:
ThemeObject::__construct()
Class instantiator

[ Top ]
checkforGuest  [line 199]

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

Checks if user is allowed to access news category

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


[ Top ]
getArticles  [line 286]

  array getArticles( [int $articles_per_page = ''], [string $published = NULL], [boolean $ignorepagination = false], [string $sortorder = "date"], [string $sortdirection = "desc"], [bool $sticky = true]  )

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" 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.


[ Top ]
getCategoryLink  [line 400]

  string getCategoryLink( string $catlink  )

Returns the full path to a news category

Parameters:
string   $catlink:  The category link of a category


[ Top ]
getDesc  [line 25]

  string getDesc( )

Returns the description



[ Top ]
getParents  [line 170]

  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 61]

  void getPassword( )



[ Top ]
getPasswordHint  [line 83]

  void getPasswordHint( )



[ Top ]
getSortOrder  [line 41]

  string getSortOrder( )

Returns the sort order



[ Top ]
getSubCategories  [line 124]

  array getSubCategories( )

Gets the sub categories recursivly by titlelink



[ Top ]
getUser  [line 51]

  void getUser( )



[ Top ]
isMyItem  [line 242]

  void isMyItem( $action  )

Parameters:
   $action: 


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

[ Top ]
isProtected  [line 238]

  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 146]

  bool isSubNewsCategoryOf( $catlink  )

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

Parameters:
   $catlink: 


[ Top ]
remove  [line 98]

  void remove( )

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



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

[ Top ]
setDesc  [line 34]

  void setDesc( string $desc  )

Stores the description

Parameters:
string   $desc:  description text


[ Top ]
setPassword  [line 74]

  void setPassword( string $pwd  )

Sets the encrypted password

Parameters:
string   $pwd:  the cleartext password


[ Top ]
setPasswordHint  [line 92]

  void setPasswordHint( string $hint  )

Sets the password hint

Parameters:
string   $hint:  the hint text


[ Top ]
setSortOrder  [line 48]

  void setSortOrder( string $sortorder  )

Stores the sort order

Parameters:
string   $sortorder:  image sort order


[ Top ]
setUser  [line 59]

  void setUser( string $user  )

Sets the guest user

Parameters:
string   $user: 


[ Top ]

Documentation generated on Tue, 20 Dec 2011 16:08:25 +0100 by phpDocumentor 1.4.3