1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +02:00

[ticket/11481] Use container for all classes and inject dependencies

PHPBB3-11481
This commit is contained in:
Joas Schilling
2013-06-06 20:04:23 +02:00
parent b5f1484744
commit 3efe0eb246
9 changed files with 139 additions and 34 deletions

View File

@@ -28,11 +28,17 @@ class phpbb_feed_forum extends phpbb_feed_post_base
var $forum_id = 0;
var $forum_data = array();
function __construct($forum_id)
/**
* Set the Forum ID
*
* @param int $forum_id Forum ID
* @return phpbb_feed_forum
*/
public function set_forum_id($topic_id)
{
parent::__construct();
$this->forum_id = (int) $forum_id;
return $this;
}
function open()