Widgets require Action not HTMLOutputter (getScoped)

This commit is contained in:
Mikael Nordfeldth 2014-07-03 14:02:01 +02:00
parent 2e77cbfa86
commit 7f0c7e8e80
4 changed files with 8 additions and 8 deletions

View File

@ -51,7 +51,7 @@ class AccountProfileBlock extends ProfileBlock
protected $profile = null;
protected $user = null;
function __construct(HTMLOutputter $out, Profile $profile)
function __construct(Action $out, Profile $profile)
{
parent::__construct($out);
$this->profile = $profile;

View File

@ -65,7 +65,7 @@ class NoticeListItem extends Widget
*
* @param Notice $notice The notice we'll display
*/
function __construct(Notice $notice, HTMLOutputter $out=null)
function __construct(Notice $notice, Action $out=null)
{
parent::__construct($out);
if (!empty($notice->repeat_of)) {

View File

@ -50,7 +50,7 @@ class ThreadedNoticeList extends NoticeList
{
protected $userProfile;
function __construct(Notice $notice, HTMLOutputter $out=null, $profile=-1)
function __construct(Notice $notice, Action $out=null, $profile=-1)
{
parent::__construct($notice, $out);
if (is_int($profile) && $profile == -1) {
@ -174,7 +174,7 @@ class ThreadedNoticeListItem extends NoticeListItem
{
protected $userProfile = null;
function __construct(Notice $notice, HTMLOutputter $out=null, $profile=null)
function __construct(Notice $notice, Action $out=null, $profile=null)
{
parent::__construct($notice, $out);
$this->userProfile = $profile;
@ -340,7 +340,7 @@ class ThreadedNoticeListMoreItem extends NoticeListItem
{
protected $cnt;
function __construct(Notice $notice, HTMLOutputter $out, $cnt)
function __construct(Notice $notice, Action $out, $cnt)
{
parent::__construct($notice, $out);
$this->cnt = $cnt;

View File

@ -54,7 +54,7 @@ class Widget
protected $avatarSize = AVATAR_STREAM_SIZE;
/**
* HTMLOutputter to use for output
* Action (HTMLOutputter) to use for output
*/
var $out = null;
@ -62,10 +62,10 @@ class Widget
/**
* Prepare the widget for use
*
* @param HTMLOutputter $out output helper, defaults to null
* @param Action $out output helper, defaults to null
*/
function __construct(HTMLOutputter $out=null)
function __construct(Action $out=null)
{
$this->out = $out;
}