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

Class: forum

Source Location: /lib/forum.inc.php

Class forum

Class Overview

Located in /lib/forum.inc.php [line 11]

ipbwi
   |
   --forum
Author(s):
  • Matthias Reuter ($LastChangedBy: matthias $)
Information Tags:
Version:  $LastChangedDate: 2009-03-02 22:19:31 +0000 (Mo, 02 Mrz 2009) $
Copyright:  2007-2008 IPBWI development team
Link:  http://ipbwi.com/examples/forum.php
Since:  2.0
License:  GNU General Public License

Methods

[ Top ]
Inherited Properties, Constants, and Methods
Inherited Properties Inherited Methods Inherited Constants

Inherited From ipbwi

ipbwi::$DB
ipbwi::$ips

Inherited From ipbwi

ipbwi::addSystemMessage()
adds a system message
ipbwi::date()
Returns textual/timestamp offsetted date by board and by member offset and DST setting.
ipbwi::getBoardVar()
gets the requested board-var
ipbwi::getLibLang()
gets the language-var from actual requested native language-bit
ipbwi::info()
informations about the current IPBWI and PHP installation
ipbwi::makeSafe()
filtering html-strings, e.g. for db-queries
ipbwi::printSystemMessages()
prints system messages
ipbwi::properXHTML()
filtering HTML strings
ipbwi::setLang()
Set's current SDK language
ipbwi::updateSession()
Update Member Session Informations

Inherited From ipbwi

ipbwi::DEV_TEAM
ipbwi::PROJECT_LEADER
ipbwi::TITLE
ipbwi::VERSION
ipbwi::WEBSITE

[ Top ]
Method Summary
array   categoryInfo()   Get Information on a Category
array   catList()   List categories.
long   create()   Creates a forum in the specified category
bool   delete()   Deletes the forum with delivered forum_id including all subforums, topics, polls and posts.
mixed   getAllSubs()   Returns all subforums of the delivered forums.
array   getPostable()   Returns forums postable in by the current member.
array   getReadable()   Returns forums readable by the current member.
array   getStartable()   Returns forums in which the current member can start new topics in.
array   info()   Returns information on a forum.
bool   isPostable()   Returns whether a forum can be posted in by the current member.
bool   isReadable()   Returns whether a forum can be read by the current member.
bool   isStartable()   Returns whether a forum can start topics in.
int   name2id()   Converts forum name to forum-ids

[ Top ]
Methods
categoryInfo  [line 627]

  array categoryInfo( int $catID  )

Get Information on a Category

Parameters:
int   $catID:  Unique ID of the category

API Tags:
Return:  Information of category categoryid
Access:  public

Information Tags:
Author:  Cow <khlo@global-centre.com>
Author:  Matthias Reuter
Author:  Pita <peter@randomnity.com>
Since:  2.0
Sample:  
  1.  $ipbwi->forum->categoryInfo(5);

[ Top ]
catList  [line 596]

  array catList( )

List categories.


API Tags:
Return:  Board's Categories
Access:  public

Information Tags:
Author:  Cow <khlo@global-centre.com>
Author:  Matthias Reuter
Author:  Pita <peter@randomnity.com>
Since:  2.0
Sample:  
  1.  $ipbwi->forum->catList();

[ Top ]
create  [line 408]

  long create( string $forumName, string $forumDesc, $catID, $perms, perms $forumID  )

Creates a forum in the specified category

Parameters:
string   $forumName:  Forum's name
string   $forumDesc:  Forum's description
perms   $forumID:  Forum's permissions as array
  • int $perms[startperms]: Group IDs for Start posts permission
  • int $perms[replyperms]: Group IDs for Reply-To posts permission
  • int $perms[readperms]: Group IDs for Read posts permission
  • int $perms[uploadperms]: Group IDs for Fileupload permission
  • int $perms[showperms]: Group IDs for Show permission
   $catID: 
   $perms: 

API Tags:
Return:  new forum's ID or false
Access:  public

Information Tags:
Author:  Matthias Reuter
Since:  2.0
Sample:  
  1.  $ipbwi->forum->create('Forumname','Forum Description',2,array('show' => '*','read' => '*','start' => '*','reply' => '*','upload' => '*','download' => '*'));

[ Top ]
delete  [line 355]

  bool delete( int $forumID  )

Deletes the forum with delivered forum_id including all subforums, topics, polls and posts.

Parameters:
int   $forumID:  Forum's ID

API Tags:
Return:  true or false
Access:  public

Information Tags:
Author:  Matthias Reuter
Since:  2.0
Sample:  
  1.  $ipbwi->forum->delete(55);

[ Top ]
getAllSubs  [line 266]

  mixed getAllSubs( mixed $forums, [string $outputType = 'array'], [string $indentString = '—'], [ $indent = false], [ $selectedID = false]  )

Returns all subforums of the delivered forums.

Parameters:
mixed   $forums:  Forum IDs as int or array
string   $outputType:  The following output types are supported:
'html_form' to get a list of <option>-tags
'array' (default) for an array-list
'array_ids_only' for an array-list with forum IDs only
'name_id_with_indent' for an array list of names with indent according to the forum structure
string   $indentString:  The string for indent, default is '-'
   $indent: 
   $selectedID: 

API Tags:
Return:  List of all subforums
Access:  public

Information Tags:
Author:  Matthias Reuter
Since:  2.0
Sample:  
  1.  $ipbwi->forum->getAllSubs(array(55,22,77),'html_form');

[ Top ]
getPostable  [line 172]

  array getPostable( )

Returns forums postable in by the current member.


API Tags:
Return:  Postable Forum Details
Access:  public

Information Tags:
Author:  Cow <khlo@global-centre.com>
Author:  Matthias Reuter
Author:  Pita <peter@randomnity.com>
Since:  2.0
Sample:  
  1.  $ipbwi->forum->getPostable();

[ Top ]
getReadable  [line 117]

  array getReadable( )

Returns forums readable by the current member.


API Tags:
Return:  Readable Forum Details
Access:  public

Information Tags:
Author:  Cow <khlo@global-centre.com>
Author:  Matthias Reuter
Author:  Pita <peter@randomnity.com>
Since:  2.0
Sample:  
  1.  $ipbwi->forum->getReadable();

[ Top ]
getStartable  [line 227]

  array getStartable( )

Returns forums in which the current member can start new topics in.


API Tags:
Return:  Startable Forum Details
Access:  public

Information Tags:
Author:  Cow <khlo@global-centre.com>
Author:  Matthias Reuter
Author:  Pita <peter@randomnity.com>
Since:  2.0
Sample:  
  1.  $ipbwi->forum->getStartable();

[ Top ]
info  [line 60]

  array info( int $forumID  )

Returns information on a forum.

Parameters:
int   $forumID:  Forum's ID

API Tags:
Return:  Forum's Information.
Access:  public

Information Tags:
Author:  Cow <khlo@global-centre.com>
Author:  Matthias Reuter
Author:  Pita <peter@randomnity.com>
Since:  2.0
Sample:  
  1.  $ipbwi->forum->info(55);

Redefinition of:
ipbwi::info()
informations about the current IPBWI and PHP installation

[ Top ]
isPostable  [line 152]

  bool isPostable( int $forumID  )

Returns whether a forum can be posted in by the current member.

Parameters:
int   $forumID:  Forum's ID

API Tags:
Return:  Forum is postable in
Access:  public

Information Tags:
Author:  Cow <khlo@global-centre.com>
Author:  Matthias Reuter
Author:  Pita <peter@randomnity.com>
Since:  2.0
Sample:  
  1.  $ipbwi->forum->isPostable(55);

[ Top ]
isReadable  [line 97]

  bool isReadable( int $forumID  )

Returns whether a forum can be read by the current member.

Parameters:
int   $forumID:  Forum's ID

API Tags:
Return:  Forum is readable
Access:  public

Information Tags:
Author:  Cow <khlo@global-centre.com>
Author:  Matthias Reuter
Author:  Pita <peter@randomnity.com>
Since:  2.0
Sample:  
  1.  $ipbwi->forum->isReadable(55);

[ Top ]
isStartable  [line 207]

  bool isStartable( int $forumID  )

Returns whether a forum can start topics in.

Parameters:
int   $forumID:  Forum's ID

API Tags:
Return:  Forum is startable in.
Access:  public

Information Tags:
Author:  Cow <khlo@global-centre.com>
Author:  Matthias Reuter
Author:  Pita <peter@randomnity.com>
Since:  2.0
Sample:  
  1.  $ipbwi->forum->isStartable(55);

[ Top ]
name2id  [line 34]

  int name2id( string $name  )

Converts forum name to forum-ids

Parameters:
string   $name:  Forum's Name

API Tags:
Return:  Forum's ID
Access:  public

Information Tags:
Author:  Matthias Reuter
Since:  2.0
Sample:  
  1.  $ipbwi->forum->name2id('forumname');

[ Top ]

Documentation generated on Mon, 02 Mar 2009 23:50:36 +0100 by phpDocumentor 1.4.0