[ Index ]

PHP Cross Reference of phpBB-3.1.12-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: 179 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(\phpbb\config\config $config, \phpbb\user $user, $phpbb_root_path, $phpEx)   X-Ref
Constructor

param: \phpbb\config\config    $config        Config object
param: \phpbb\user        $user        User object
param: string    $phpbb_root_path    Root path
param: string    $phpEx                PHP file extension

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


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: Thu Jan 11 00:25:41 2018 Cross-referenced by PHPXref 0.7.1