4 * Public XRDS for OpenID
10 * @author Evan Prodromou <evan@status.net>
11 * @author Robin Millette <millette@status.net>
12 * @license http://www.fsf.org/licensing/licenses/agpl.html AGPLv3
13 * @link http://status.net/
15 * StatusNet - the distributed open-source microblogging tool
16 * Copyright (C) 2008, 2009, StatusNet, Inc.
18 * This program is free software: you can redistribute it and/or modify
19 * it under the terms of the GNU Affero General Public License as published by
20 * the Free Software Foundation, either version 3 of the License, or
21 * (at your option) any later version.
23 * This program is distributed in the hope that it will be useful,
24 * but WITHOUT ANY WARRANTY; without even the implied warranty of
25 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26 * GNU Affero General Public License for more details.
28 * You should have received a copy of the GNU Affero General Public License
29 * along with this program. If not, see <http://www.gnu.org/licenses/>.
32 if (!defined('STATUSNET') && !defined('LACONICA')) {
36 require_once INSTALLDIR.'/plugins/OpenID/openid.php';
37 require_once INSTALLDIR.'/lib/xrdsoutputter.php';
44 * @author Evan Prodromou <evan@status.net>
45 * @author Robin Millette <millette@status.net>
46 * @author Craig Andrews <candrews@integralblue.com>
47 * @license http://www.fsf.org/licensing/licenses/agpl.html AGPLv3
48 * @link http://status.net/
50 * @todo factor out similarities with XrdsAction
52 class PublicxrdsAction extends Action
57 * @return boolean true
59 function isReadOnly($args)
67 * @param array $args array of arguments
71 function handle($args)
73 parent::handle($args);
74 $xrdsOutputter = new XRDSOutputter();
75 $xrdsOutputter->startXRDS();
76 Event::handle('StartPublicXRDS', array($this,&$xrdsOutputter));
77 Event::handle('EndPublicXRDS', array($this,&$xrdsOutputter));
78 $xrdsOutputter->endXRDS();