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