phpDocumentor pivotx
[ class tree: pivotx ] [ index: pivotx ] [ all elements ]

Class: Categories

Source Location: /objects.php

Class Categories

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

Inherited From BaseConfig

BaseConfig::$changed
BaseConfig::$configfile
BaseConfig::$data
BaseConfig::$upgraded

Inherited From BaseConfig

BaseConfig::__construct()
Constructor
BaseConfig::count()
Return configuration-array size
BaseConfig::fixConfig()
Fix configuration (this should be overwritten in subclass)
BaseConfig::initConfig()
Initialise configuration after has been read, fixed and organized.
BaseConfig::loadConfig()
Load and verify config
BaseConfig::organizeConfig()
Organize configuration
BaseConfig::print_r()
Print a comprehensible representation of the users
BaseConfig::save()
Old save version
BaseConfig::saveConfig()
Save configuration if 'safe' to do so
BaseConfig::setChanged()
Set changed flag
BaseConfig::setUpgraded()
Set upgraded
BaseConfig::verifyConfig()
Verify configuration (this should be overwritten in subclass)

[ Top ]
Method Summary
Categories   Categories()  
Categories   __construct()  
void   allowedCategories()   Get a list of categories the user is allowed to post into
void   allowUser()   Allow a user to post in this category
void   deleteCategory()   Delete a single category
void   disallowUser()   Disallow a user to post in this category
void   fixConfig()  
array   getCategories()   Get an array with all the categories. We filter the users to make sure we only return users that still exist
array   getCategory()   Get a single category
array   getCategorynames()   Get a list of all category names
array   getSearchCategorynames()   Get a list of all category names in which we should NOT search
boolean   isCategory()   Check if a given $name is a category.
void   organizeConfig()  
void   readOld()  
void   saveCategories()   Old save function
void   setCategory()   change the settings for an existing category, or modify an existing one.
int   sort()   Sort the categories based on the order and string comparison of display name if order is identical.
void   verifyConfig()  

[ Top ]
Methods
Constructor Categories  [line 1577]

  Categories Categories( )


API Tags:
Access:  public


[ Top ]
Constructor __construct  [line 1573]

  Categories __construct( )


API Tags:
Access:  public


Redefinition of:
BaseConfig::__construct()
Constructor

[ Top ]
allowedCategories  [line 1791]

  void allowedCategories( $username  )

Get a list of categories the user is allowed to post into

Parameters:
   $username: 


[ Top ]
allowUser  [line 1813]

  void allowUser( string $catname, string $username  )

Allow a user to post in this category

Parameters:
string   $catname: 
string   $username: 


[ Top ]
deleteCategory  [line 1942]

  void deleteCategory( string $name  )

Delete a single category

Parameters:
string   $name: 


[ Top ]
disallowUser  [line 1839]

  void disallowUser( string $catname, string $username  )

Disallow a user to post in this category

Parameters:
string   $catname: 
string   $username: 


[ Top ]
fixConfig  [line 1589]

  void fixConfig( )


API Tags:
Access:  protected


Redefinition of:
BaseConfig::fixConfig()
Fix configuration (this should be overwritten in subclass)

[ Top ]
getCategories  [line 1762]

  array getCategories( )

Get an array with all the categories. We filter the users to make sure we only return users that still exist



[ Top ]
getCategory  [line 1866]

  array getCategory( string $name  )

Get a single category

Parameters:
string   $name: 


[ Top ]
getCategorynames  [line 1885]

  array getCategorynames( )

Get a list of all category names



[ Top ]
getSearchCategorynames  [line 1920]

  array getSearchCategorynames( )

Get a list of all category names in which we should NOT search



[ Top ]
isCategory  [line 1903]

  boolean isCategory( string $name  )

Check if a given $name is a category.

Parameters:
string   $name: 


[ Top ]
organizeConfig  [line 1609]

  void organizeConfig( )


API Tags:
Access:  protected


Redefinition of:
BaseConfig::organizeConfig()
Organize configuration

[ Top ]
readOld  [line 1646]

  void readOld( )


API Tags:
Access:  protected


[ Top ]
saveCategories  [line 1642]

  void saveCategories( )

Old save function


API Tags:
Access:  public


[ Top ]
setCategory  [line 1731]

  void setCategory( string $name, array $cat  )

change the settings for an existing category, or modify an existing one.

Parameters:
string   $name: 
array   $cat: 


[ Top ]
sort  [line 1623]

  int sort( array $a, array $b  )

Sort the categories based on the order and string comparison of display name if order is identical.

Parameters:
array   $a: 
array   $b: 


[ Top ]
verifyConfig  [line 1581]

  void verifyConfig( )


API Tags:
Access:  protected


Redefinition of:
BaseConfig::verifyConfig()
Verify configuration (this should be overwritten in subclass)

[ Top ]

Documentation generated on Thu, 17 May 2012 01:06:26 +0200 by phpDocumentor 1.4.3