*
* @param Notice $notice stream of notices from DB_DataObject
*/
- function __construct($notice, $out=null)
+ function __construct(Notice $notice, Action $out=null)
{
parent::__construct($out);
$this->notice = $notice;
$out .= ' ';
$out .= implode(', ',$nicknames);
}
- $channel->output($this->user,$out);
+ $channel->output($this->user, $out);
}
}
$out .= ' ';
$out .= implode(', ',$nicknames);
}
- $channel->output($this->user,$out);
+ $channel->output($this->user, $out);
}
}
count($nicknames));
$out.=implode(', ',$groups);
}
- $channel->output($this->user,$out);
+ $channel->output($this->user, $out);
}
}
*
* @param Notice $notice stream of notices from DB_DataObject
*/
- function __construct(Notice $notice, $out=null, array $prefs=array())
+ function __construct(Notice $notice, Action $out=null, array $prefs=array())
{
parent::__construct($out);
$this->notice = $notice;
*
* @param Notice $notice The notice we'll display
*/
- function __construct($peopletag, $current, $out=null)
+ function __construct($peopletag, $current, Action $out=null)
{
parent::__construct($out);
$this->peopletag = $peopletag;
exit(1);
}
-require INSTALLDIR . "/lib/pluginenableform.php";
-require INSTALLDIR . "/lib/plugindisableform.php";
+require INSTALLDIR . '/lib/pluginenableform.php';
+require INSTALLDIR . '/lib/plugindisableform.php';
/**
* Plugin list
{
var $plugins = array();
- function __construct($plugins, $out)
+ function __construct(array $plugins, Action $out=null)
{
parent::__construct($out);
$this->plugins = $plugins;
function showPlugins()
{
foreach ($this->plugins as $plugin) {
+ // Some check on instance
+ assert($plugin instanceof Plugin);
+
$pli = $this->newListItem($plugin);
$pli->show();
}
/** Local cache for plugin version info */
protected static $versions = false;
- function __construct($plugin, $out)
+ function __construct($plugin, Action $out=null)
{
parent::__construct($out);
$this->plugin = $plugin;
{
protected $root = null;
- function __construct(Notice $notice, $root, $out)
+ function __construct(Notice $notice, $root, Action $out=null)
{
$this->root = $root;
parent::__construct($notice, $out);