[ Index ]

PHP Cross Reference of phpBB-3.3.14-deutsch

title

Body

[close]

/phpbb/feed/ -> helper.php (summary)

This file is part of the phpBB Forum Software package.

Copyright: (c) phpBB Limited
License: GNU General Public License, version 2 (GPL-2.0)
File Size: 194 lines (6 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

helper:: (5 methods):
  __construct()
  get_board_url()
  append_sid()
  format_date()
  generate_content()


Class: helper  - X-Ref

Class with some helpful functions used in feeds

__construct(auth $auth, config $config, ContainerInterface $container, path_helper $path_helper, renderer $renderer, user $user)   X-Ref
Constructor

param: auth                $auth            Auth object
param: config                $config            Config object
param: ContainerInterface    $container        Service container object
param: path_helper            $path_helper     Path helper object
param: renderer            $renderer        TextFormatter renderer object
param: user                $user            User object

get_board_url()   X-Ref
Returns the board url (and caches it in the function)


append_sid($url, $params)   X-Ref
Run links through append_sid(), prepend generate_board_url() and remove session id


format_date($time)   X-Ref
Generate ISO 8601 date string (RFC 3339)


generate_content($content, $uid, $bitfield, $options, $forum_id, $post_attachments)   X-Ref
Generate text content

param: string $content is feed text content
param: string $uid is bbcode_uid
param: string $bitfield is bbcode bitfield
param: int $options bbcode flag options
param: int $forum_id is the forum id
param: array $post_attachments is an array containing the attachments and their respective info
return: string the html content to be printed for the feed



Generated: Mon Nov 25 19:05:08 2024 Cross-referenced by PHPXref 0.7.1