Overview

Packages

  • Agora
  • None

Classes

  • Agora
  • Agora_Api
  • Agora_Driver
  • Agora_Driver_SplitSql
  • Agora_Driver_Sql
  • Agora_Exception
  • Agora_Factory_Driver
  • Agora_Form_Forum
  • Agora_Form_Message
  • Agora_Form_Search
  • Agora_View
  • Horde_Form_Renderer_MessageForm
  • Overview
  • Package
  • Class
  • Tree

Class Agora_Driver_Sql

Agora_Driver_Sql:: provides the functions to access both threads and individual messages in one table for all scopes

Copyright 2003-2012 Horde LLC (http://www.horde.org/)

See the enclosed file COPYING for license information (GPL). If you did not receive this file, see http://www.horde.org/licenses/gpl.

Agora_Driver
Extended by Agora_Driver_Sql
Package: Agora
Author: Marko Djukic marko@oblo.com
Author: Jan Schneider jan@horde.org
Author: Duck duck@obala.net
Located at Driver/Sql.php
Methods summary
public integer
# getForumId( string $forum_name )

Returns an ID for a given forum name.

Returns an ID for a given forum name.

Parameters

$forum_name
The full forum name.

Returns

integer
The ID of the forum.
public array
# getBareForums( )

Get forums ids and titles

Get forums ids and titles

Returns

array
An array of forums and form names.

Overrides

Agora_Driver::getBareForums()
public
# getThreadsByForumOwner( string $forum_owner, integer $thread_root = 0, boolean $all_levels = false, string $sort_by = 'message_modifystamp', integer $sort_dir = 0, boolean $message_view = false, string $from = 0, string $count = 0 )

Returns a list of threads.

Returns a list of threads.

Parameters

$forum_owner
Forum owner
$thread_root
<p>Message at which to start the thread. If null get all forum threads</p>
$all_levels
Show all child levels or just one level.
$sort_by
The column by which to sort.
$sort_dir
<p>The direction by which to sort: 0 - ascending 1 - descending</p>
$message_view
$from
The thread to start listing at.
$count
The number of threads to return.

Throws

Agora_Exception
Methods inherited from Agora_Driver
__construct(), _forumSequence(), allowAttachments(), convertFromDriver(), convertToDriver(), countForums(), countMessages(), countThreads(), dateFormat(), deleteForum(), deleteMessage(), deleteThread(), formatBody(), formatSize(), getAttachmentLink(), getBanned(), getForm(), getForum(), getForums(), getMessage(), getModerateList(), getThreadActions(), getThreadRoot(), getThreads(), getThreadsUi(), hasPermission(), isHot(), isNew(), isThreadLocked(), logView(), mergeThread(), moderate(), moveThread(), newForum(), replyMessage(), saveForum(), saveMessage(), search(), setThreadLock(), splitThread(), updateBan(), updateModerator()
Properties inherited from Agora_Driver
$_forum, $_forum_id
API documentation generated by ApiGen