1234567891011121314151617181920212223242526272829303132333435363738 |
- <?php
- class WebFingerResource_Notice extends WebFingerResource
- {
- public function __construct(Notice $object)
- {
-
- parent::__construct($object);
- }
- public function updateXRD(XML_XRD $xrd)
- {
- if (Event::handle('StartWebFingerNoticeLinks', array($xrd, $this->object))) {
- $xrd->links[] = new XML_XRD_Element_Link('alternate',
- common_local_url('ApiStatusesShow',
- array('id'=>$this->object->id,
- 'format'=>'atom')),
- 'application/atom+xml');
- $xrd->links[] = new XML_XRD_Element_Link('alternate',
- common_local_url('ApiStatusesShow',
- array('id'=>$this->object->id,
- 'format'=>'json')),
- 'application/json');
- Event::handle('EndWebFingerNoticeLinks', array($xrd, $this->object));
- }
- }
- }
|