Documentation

Jonah
in package

Jonah Base Class.

Copyright 2002-2017 Horde LLC (http://www.horde.org/)

See the enclosed file LICENSE for license information (BSD). If you did not did not receive this file, see http://cvs.horde.org/co.php/jonah/LICENSE.

Tags
author

Chuck Hagenbuch chuck@horde.org

author

Eric Rechlin eric@hpcalc.org

Table of Contents

ORDER_COMMENTS  = 2
ORDER_PUBLISHED  = 0
ORDER_READ  = 1
checkPermissions()  : mixed
getBodyTypes()  : array<string|int, mixed>
Returns an array of configured body types from Jonah's $conf array.
getDefaultBodyType()  : string
Tries to figure out a default body type. Used when none has been specified and a types is needed to fall back on to.
readURL()  : mixed
Obtain the list of stories from the passed in URI.

Constants

ORDER_COMMENTS

public mixed ORDER_COMMENTS = 2

ORDER_PUBLISHED

public mixed ORDER_PUBLISHED = ""

ORDER_READ

public mixed ORDER_READ = 1

Methods

checkPermissions()

public static checkPermissions(string $filter[, int $permission = Horde_Perms::READ ][, mixed $in = null ]) : mixed
Parameters
$filter : string

The type of channel

$permission : int = Horde_Perms::READ

Horde_Perms:: constant

$in : mixed = null

??

Return values
mixed

An array of results or a single boolean?

getBodyTypes()

Returns an array of configured body types from Jonah's $conf array.

public static getBodyTypes() : array<string|int, mixed>
Return values
array<string|int, mixed>

An array of body types.

getDefaultBodyType()

Tries to figure out a default body type. Used when none has been specified and a types is needed to fall back on to.

public static getDefaultBodyType() : string
Return values
string

A default type.

readURL()

Obtain the list of stories from the passed in URI.

public static readURL(string $url) : mixed
Parameters
$url : string

The url to get the list of the channel's stories.

Tags
deprecated

Will be removed when external channels are removed.

Return values
mixed

Search results