protected $conversation = null;
protected $notices = null;
- /**
- * For initializing members of the class.
- *
- * @param array $argarray misc. arguments
- *
- * @return boolean true
- */
- function prepare($argarray)
+ protected function prepare(array $args=array())
{
- parent::prepare($argarray);
+ parent::prepare($args);
$convId = $this->trimmed('id');
Event::handle('EndShowConversation', array($this, $this->conv, $this->scoped));
}
- function isReadOnly()
+ function isReadOnly($args)
{
return true;
}
// XXX: Should these error actions even be invokable via URI?
- function handle($args)
+ protected function handle()
{
- parent::handle($args);
+ parent::handle();
$this->code = $this->trimmed('code');
class FullThreadedNoticeList extends ThreadedNoticeList
{
- function newListItem($notice)
+ function newListItem(Notice $notice)
{
return new FullThreadedNoticeListItem($notice, $this->out, $this->userProfile);
}
// XXX: Should these error actions even be invokable via URI?
- function handle($args)
+ protected function handle()
{
- parent::handle($args);
+ parent::handle();
$this->code = $this->trimmed('code');
class WAP20Plugin extends Plugin
{
- function onStartShowHTML($action)
+ function onStartShowHTML(Action $action)
{
}
* @return boolean hook value
*/
- function onStartOpenNoticeListItemElement($nli)
+ function onStartOpenNoticeListItemElement(NoticeListItem $nli)
{
$type = $nli->notice->object_type;
*
* @todo FIXME: WARNING WARNING WARNING this closes a 'div' that is implicitly opened in BookmarkPlugin's showNotice implementation
*/
- function onStartShowNoticeItem($nli)
+ function onStartShowNoticeItem(NoticeListItem $nli)
{
if (!$this->isMyNotice($nli->notice)) {
return true;