$this->poco->outputTo($xo);
}
+ // @fixme there's no way here to make a tree; elements can only contain plaintext
+ // @fixme these may collide with JSON extensions
foreach ($this->extra as $el) {
list($extraTag, $attrs, $content) = $el;
$xo->element($extraTag, $attrs, $content);
//
// We can probably use the whole schema URL here but probably the
// relative simple name is easier to parse
+ // @fixme this breaks extension URIs
$object['type'] = substr($this->type, strrpos($this->type, '/') + 1);
// summary
$object['url'] = $this->id;
/* Extensions */
-
+ // @fixme these may collide with XML extensions
+ // @fixme multiple tags of same name will overwrite each other
+ // @fixme text content from XML extensions will be lost
foreach ($this->extra as $e) {
list($objectName, $props, $txt) = $e;
$object[$objectName] = $props;
*
* @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);
* @param NoticeListItem $nli The list item being shown.
*
* @return boolean hook value
+ *
+ * @fixme WARNING WARNING WARNING this closes a 'div' that is implicitly opened in BookmarkPlugin's showNotice implementation
*/
function onStartShowNoticeItem($nli)
return $object;
}
+ /**
+ * @fixme WARNING WARNING WARNING this opens a 'div' that is apparently closed by MicroAppPlugin
+ * @fixme that's probably wrong?
+ *
+ * @param Notice $notice
+ * @param HTMLOutputter $out
+ */
function showNotice($notice, $out)
{
$nb = Bookmark::getByNotice($notice);