* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* @category API
- * @package GNUSocial
+ * @package GNUsocial
* @author Hannes Mannerheim <h@nnesmannerhe.im>
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0
* @link http://www.gnu.org/software/social/
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* @category API
- * @package GNUSocial
+ * @package GNUsocial
* @author Hannes Mannerheim <h@nnesmannerhe.im>
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0
* @link http://www.gnu.org/software/social/
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* @category API
- * @package GNUSocial
+ * @package GNUsocial
* @author Hannes Mannerheim <h@nnesmannerhe.im>
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0
* @link http://www.gnu.org/software/social/
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* @category API
- * @package GNUSocial
+ * @package GNUsocial
* @author Hannes Mannerheim <h@nnesmannerhe.im>
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0
* @link http://www.gnu.org/software/social/
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* @category API
- * @package GNUSocial
+ * @package GNUsocial
* @author Hannes Mannerheim <h@nnesmannerhe.im>
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0
* @link http://www.gnu.org/software/social/
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* @category API
- * @package GNUSocial
+ * @package GNUsocial
* @author Hannes Mannerheim <h@nnesmannerhe.im>
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0
* @link http://www.gnu.org/software/social/
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* @category API
- * @package GNUSocial
+ * @package GNUsocial
* @author Hannes Mannerheim <h@nnesmannerhe.im>
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0
* @link http://www.gnu.org/software/social/
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* @category API
- * @package GNUSocial
+ * @package GNUsocial
* @author Craig Andrews <candrews@integralblue.com>
* @author Evan Prodromou <evan@status.net>
* @author Jeffery To <jeffery.to@gmail.com>
* List 20 newest admins of the group specified by name or ID.
*
* @category API
- * @package GNUSocial
+ * @package GNUsocial
* @author Craig Andrews <candrews@integralblue.com>
* @author Evan Prodromou <evan@status.net>
* @author Jeffery To <jeffery.to@gmail.com>
{
parent::handle($args);
- $datastore = new ApiGNUSocialOAuthDataStore();
+ $datastore = new ApiGNUsocialOAuthDataStore();
$server = new OAuthServer($datastore);
$hmac_method = new OAuthSignatureMethod_HMAC_SHA1();
$this->password = $this->arg('password');
$this->oauthTokenParam = $this->arg('oauth_token');
$this->mode = $this->arg('mode');
- $this->store = new ApiGNUSocialOAuthDataStore();
+ $this->store = new ApiGNUsocialOAuthDataStore();
try {
$this->app = $this->store->getAppByRequestToken($this->oauthTokenParam);
{
parent::handle($args);
- $datastore = new ApiGNUSocialOAuthDataStore();
+ $datastore = new ApiGNUsocialOAuthDataStore();
$server = new OAuthServer($datastore);
$hmac_method = new OAuthSignatureMethod_HMAC_SHA1();
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* @category Search
- * @package GNUSocial
+ * @package GNUsocial
* @author Zach Copley <zach@status.net>
* @copyright 2008-2010 StatusNet, Inc.
* @copyright 2013 Free Software Foundation, Inc.
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* @category API
- * @package GNUSocial
+ * @package GNUsocial
* @author Hannes Mannerheim <h@nnesmannerhe.im>
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0
* @link http://www.gnu.org/software/social/
* Retrieve user avatar by nickname action class.
*
* @category Action
- * @package GNUSocial
+ * @package GNUsocial
* @author Evan Prodromou <evan@status.net>
* @author Robin Millette <millette@status.net>
* @author Mikael Nordfeldth <mmn@hethane.se>
* PHP version 5
*
* @category Action
- * @package GNUSocial
+ * @package GNUsocial
* @author Evan Prodromou <evan@status.net>
* @author Robin Millette <millette@status.net>
* @author Mikael Nordfeldth <mmn@hethane.se>
* DisfavorAction class.
*
* @category Action
- * @package GNUSocial
+ * @package GNUsocial
* @author Evan Prodromou <evan@status.net>
* @author Robin Millette <millette@status.net>
* @author Mikael Nordfeldth <mmn@hethane.se>
* PHP version 5
*
* @category Action
- * @package GNUSocial
+ * @package GNUsocial
* @author Evan Prodromou <evan@status.net>
* @author Robin Millette <millette@status.net>
* @author Mikael Nordfeldth <mmn@hethane.se>
* FavorAction class.
*
* @category Action
- * @package GNUSocial
+ * @package GNUsocial
* @author Evan Prodromou <evan@status.net>
* @author Robin Millette <millette@status.net>
* @author Mikael Nordfeldth <mmn@hethane.se>
$app = Oauth_application::getKV('id', $appUser->application_id);
- $datastore = new ApiGNUSocialOAuthDataStore();
+ $datastore = new ApiGNUsocialOAuthDataStore();
$datastore->revoke_token($appUser->token, 1);
$result = $appUser->delete();
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* @category Data
- * @package GNUSocial
+ * @package GNUsocial
* @author Mikael Nordfeldth <mmn@hethane.se>
* @copyright 2013 Free Software Foundation, Inc.
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0
Q: What if there's no upstream authority and it can't be adopted?
A: Then we fork it. Make a new name and a new version. Include it in
- lib/ instead of extlib/, and use the GNUSocial_* prefix to change
+ lib/ instead of extlib/, and use the GNUsocial_* prefix to change
the namespace to avoid collisions.
This is a last resort; consult with the rest of the dev group
*/
function checkOAuthRequest($request)
{
- $datastore = new ApiGNUSocialOAuthDataStore();
+ $datastore = new ApiGNUsocialOAuthDataStore();
$server = new OAuthServer($datastore);
$hmac_method = new OAuthSignatureMethod_HMAC_SHA1();
/**
* @fixme class doc
*/
-class ApiGNUSocialOAuthDataStore extends OAuthDataStore
+class ApiGNUsocialOAuthDataStore extends OAuthDataStore
{
function lookup_consumer($consumerKey)
{
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* @category Form
- * @package GNUSocial
+ * @package GNUsocial
* @author Evan Prodromou <evan@status.net>
* @author Sarven Capadisli <csarven@status.net>
* @author Mikael Nordfeldth <mmn@hethane.se>
* Form for disfavoring a notice
*
* @category Form
- * @package GNUSocial
+ * @package GNUsocial
* @author Evan Prodromou <evan@status.net>
* @author Sarven Capadisli <csarven@status.net>
* @author Mikael Nordfeldth <mmn@hethane.se>
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* @category Form
- * @package GNUSocial
+ * @package GNUsocial
* @author Evan Prodromou <evan@status.net>
* @author Sarven Capadisli <csarven@status.net>
* @author Mikael Nordfeldth <mmn@hethane.se>
* Form for favoring a notice
*
* @category Form
- * @package GNUSocial
+ * @package GNUsocial
* @author Evan Prodromou <evan@status.net>
* @author Sarven Capadisli <csarven@status.net>
* @author Mikael Nordfeldth <mmn@hethane.se>
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* @category Exception
- * @package GNUSocial
+ * @package GNUsocial
* @author Mikael Nordfeldth <mmn@hethane.se>
* @copyright 2013 Free Software Foundation, Inc.
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPLv3
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0
* @link http://status.net/
*/
-class GNUSocial_HTTPResponse extends HTTP_Request2_Response
+class GNUsocial_HTTPResponse extends HTTP_Request2_Response
{
function __construct(HTTP_Request2_Response $response, $url, $redirects=0)
{
/**
* Convenience function to run a GET request.
*
- * @return GNUSocial_HTTPResponse
+ * @return GNUsocial_HTTPResponse
* @throws HTTP_Request2_Exception
*/
public function get($url, $headers=array())
/**
* Convenience function to run a HEAD request.
*
- * @return GNUSocial_HTTPResponse
+ * @return GNUsocial_HTTPResponse
* @throws HTTP_Request2_Exception
*/
public function head($url, $headers=array())
* @param string $url
* @param array $headers optional associative array of HTTP headers
* @param array $data optional associative array or blob of form data to submit
- * @return GNUSocial_HTTPResponse
+ * @return GNUsocial_HTTPResponse
* @throws HTTP_Request2_Exception
*/
public function post($url, $headers=array(), $data=array())
}
/**
- * @return GNUSocial_HTTPResponse
+ * @return GNUsocial_HTTPResponse
* @throws HTTP_Request2_Exception
*/
protected function doRequest($url, $method, $headers)
/**
* Actually performs the HTTP request and returns a
- * GNUSocial_HTTPResponse object with response body and header info.
+ * GNUsocial_HTTPResponse object with response body and header info.
*
* Wraps around parent send() to add logging and redirection processing.
*
- * @return GNUSocial_HTTPResponse
+ * @return GNUsocial_HTTPResponse
* @throw HTTP_Request2_Exception
*/
public function send()
}
break;
} while ($maxRedirs);
- return new GNUSocial_HTTPResponse($response, $this->getUrl(), $redirs);
+ return new GNUsocial_HTTPResponse($response, $this->getUrl(), $redirs);
}
}
* Class for an exception when a URL is invalid
*
* @category Exception
- * @package GNUSocial
+ * @package GNUsocial
* @author Mikael Nordfeldth <mmn@hethane.se>
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPLv3
* @link http://status.net/
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* @category Exception
- * @package GNUSocial
+ * @package GNUsocial
* @author Mikael Nordfeldth <mmn@hethane.se>
* @copyright 2013 Free Software Foundation, Inc.
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPLv3
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* @category Exception
- * @package GNUSocial
+ * @package GNUsocial
* @author Mikael Nordfeldth <mmn@hethane.se>
* @copyright 2013 Free Software Foundation, Inc.
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPLv3
function showAlbum($album_id)
{
- $album = GNUSocialPhotoAlbum::getKV('album_id', $album_id);
+ $album = GNUsocialPhotoAlbum::getKV('album_id', $album_id);
if (!$album) {
return;
}
* Implements Link-based Resource Descriptor Discovery based on RFC6415,
* Web Host Metadata, i.e. the predecessor to WebFinger resource discovery.
*
- * @package GNUSocial
+ * @package GNUsocial
* @author Mikael Nordfeldth <mmn@hethane.se>
*/
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* @category Discovery
- * @package GNUSocial
+ * @package GNUsocial
* @author James Walker <james@status.net>
* @author Mikael Nordfeldth <mmn@hethane.se>
* @copyright 2010 StatusNet, Inc.
* Implementation of WebFinger resource discovery (RFC7033)
*
* @category Discovery
- * @package GNUSocial
+ * @package GNUsocial
* @author Mikael Nordfeldth <mmn@hethane.se>
* @copyright 2013 Free Software Foundation, Inc.
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0
*
* Depends on: LRDD plugin
*
- * @package GNUSocial
+ * @package GNUsocial
* @author Mikael Nordfeldth <mmn@hethane.se>
*/
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
- * @package GNUSocial
+ * @package GNUsocial
* @author Mikael Nordfeldth
* @copyright 2013 Free Software Foundation, Inc.
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0