Метод | Описание | |
---|---|---|
commentCallback ( $story_id ) : mixed | Callback for comment API | |
getTagIds ( array $names ) : Array | Return a set of tag_ids, given the tag name | |
hasComments ( ) : boolean | Check if comments are allowed. | |
listFeeds ( ) : array | Get a list of stored channels. | |
listTagInfo ( array $tags = [], array $channel_id = null ) : array | Retrieve the list of used tag_names, tag_ids and the total number of resources that are linked to that tag. | |
publish ( integer $channel_id, array $story ) | Publish a new story | |
searchTags ( array $names, array $filter = [], boolean $raw = false ) : An | Searches internal channels for stories tagged with all requested tags. | |
stories ( integer $channel_id, array $filter = [] ) : array | Return the requested stories | |
story ( integer $channel_id, integer $story_id, boolean $read = true ) : array | Fetches a story from a requested channel. | |
storyCount ( integer $channel_id ) : mixed | Get the count of stories in the specified channel |
public commentCallback ( $story_id ) : mixed | ||
Результат | mixed | Name of object on success | false on failure |
public hasComments ( ) : boolean | ||
Результат | boolean |
public listTagInfo ( array $tags = [], array $channel_id = null ) : array | ||
$tags | array | An optional array of tag_ids. If omitted, all tags will be included.@deprecated and currently ignored. |
$channel_id | array | An optional array of channel_ids. @todo - only the first requested channel is honored. |
Результат | array | An array containing tag_name, and total |
public publish ( integer $channel_id, array $story ) | ||
$channel_id | integer | The channel id |
$story | array | The story array. Can contain:
(string)title [REQUIRED] The story title. (string)description [REQUIRED] The short description. (string)body_type [OPTIONAL] The body type (text/html). (string)body [OPTIONAL] The story body. (string)url [OPTIONAL] The url for the story link. (array)tags [OPTIONAL] Tags |
public searchTags ( array $names, array $filter = [], boolean $raw = false ) : An | ||
$names | array | An array of tag_names to search for (AND'd together). |
$filter | array | An array of optional filter parameters.
max The maximum number of stories to return. from The number of the story to start with. channel_id (integer) A channel_id to restrict to. order How to order the results (a Jonah::ORDER_* constant) |
$raw | boolean | Return the raw story data? |
Результат | An | array of results with the following structure:
'title' - The title for this resource. 'desc' - A terse description of this resource. 'view_url' - The URL to view this resource. 'app' - The Horde application this resource belongs to. |
public stories ( integer $channel_id, array $filter = [] ) : array | ||
$channel_id | integer | The channel to get the stories from. |
$filter | array | Additional, optional filters.
max_stories The maximum number of stories to get. start_at The story number to start retrieving. order How to order the results. |
Результат | array | An array of story information |
public storyCount ( integer $channel_id ) : mixed | ||
$channel_id | integer | |
Результат | mixed | The story count |