PHP Class Jonah, horde

Copyright 2002-2015 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.
Author: Chuck Hagenbuch ([email protected])
Author: Eric Rechlin ([email protected])
Show file Open project: horde/horde Class Usage Examples

Public Methods

Method Description
checkPermissions ( string $filter, integer $permission = Horde_Perms::READ, mixed $in = null ) : mixed
getBodyTypes ( ) : array 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 ( string $url ) Obtain the list of stories from the passed in URI.

Method Details

checkPermissions() public static method

public static checkPermissions ( string $filter, integer $permission = Horde_Perms::READ, mixed $in = null ) : mixed
$filter string The type of channel
$permission integer Horde_Perms:: constant
$in mixed ??
return mixed An array of results or a single boolean?

getBodyTypes() public static method

Returns an array of configured body types from Jonah's $conf array.
public static getBodyTypes ( ) : array
return array An array of body types.

getDefaultBodyType() public static method

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 string A default type.

readURL() public static method

Obtain the list of stories from the passed in URI.
Deprecation: Will be removed when external channels are removed.
public static readURL ( string $url )
$url string The url to get the list of the channel's stories.