Let showNotice() go unimplemented
Default implementation of showNotice().
This commit is contained in:
parent
7b397823d0
commit
7c31462f86
|
@ -137,21 +137,6 @@ abstract class MicroAppPlugin extends Plugin
|
||||||
*/
|
*/
|
||||||
abstract function activityObjectFromNotice($notice);
|
abstract function activityObjectFromNotice($notice);
|
||||||
|
|
||||||
/**
|
|
||||||
* Custom HTML output for your special notice; called when a
|
|
||||||
* matching notice turns up in a NoticeListItem.
|
|
||||||
*
|
|
||||||
* All micro-app classes must override this method.
|
|
||||||
*
|
|
||||||
* @param Notice $notice
|
|
||||||
* @param HTMLOutputter $out
|
|
||||||
*
|
|
||||||
* @fixme WARNING WARNING WARNING base plugin stuff below tries to close
|
|
||||||
* a div that this function opens in the BookmarkPlugin child class.
|
|
||||||
* This is probably wrong.
|
|
||||||
*/
|
|
||||||
abstract function showNotice($notice, $out);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* When building the primary notice form, we'll fetch also some
|
* When building the primary notice form, we'll fetch also some
|
||||||
* alternate forms for specialized types -- that's you!
|
* alternate forms for specialized types -- that's you!
|
||||||
|
@ -560,20 +545,8 @@ abstract class MicroAppPlugin extends Plugin
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
function showNotice($notice, $out)
|
||||||
* Custom HTML output for your special notice; called when a
|
{
|
||||||
* matching notice turns up in a NoticeListItem.
|
throw new ServerException("You must implement either adaptNoticeListItem() or showNotice()");
|
||||||
*
|
}
|
||||||
* All micro-app classes must override this method.
|
|
||||||
*
|
|
||||||
* @param Notice $notice
|
|
||||||
* @param HTMLOutputter $out
|
|
||||||
*
|
|
||||||
* @fixme WARNING WARNING WARNING base plugin stuff below tries to close
|
|
||||||
* a div that this function opens in the BookmarkPlugin child class.
|
|
||||||
* This is probably wrong.
|
|
||||||
*/
|
|
||||||
abstract function showNotice($notice, $out);
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user