Permalink
Browse files

Minor spelling corrections in Api scripts.

  • Loading branch information...
snytkine committed Mar 10, 2013
1 parent 06a2f51 commit c5a53d275781981b3a7209ce50dd91a30ba443c8
Showing with 14 additions and 9 deletions.
  1. +13 −7 lib/Lampcms/Api/Api.php
  2. +1 −2 lib/Lampcms/Api/Clientdata.php
View
@@ -135,10 +135,17 @@
*/
protected $aRequired = array();
-
+ /**
+ * Is set to true in sub-class
+ * then if request type is not POST
+ * an exception will be thrown
+ * and will result in returning
+ * HTTP error with code 405
+ *
+ * @var bool
+ */
protected $bRequirePost = false;
-
/**
* Request object
*
@@ -204,11 +211,11 @@
* Access id is a string that consists of
* YearMonthDate_appID_userID
* For example: 20111011_2342235_23423
- * This string uniquele identifies each
+ * This string uniquely identifies each
* user accessing the API on a specific day
*
* Enter description here ...
- * @var unknown_type
+ * @var string
*/
protected $accessId;
@@ -352,7 +359,6 @@ protected function setClientAppId()
protected function initClientUser()
{
-
/**
* @todo when OAuth2 is supported then route to
* initOAuth2User if OAuth2 token is present in request
@@ -417,7 +423,7 @@ protected function initBasicAuthUser($username, $pwd)
/**
* Make accessId - a unique
- * idendifier for the current request
+ * identifier for the current request
* based on date + appID (or ip address) and
* Viewer ID
*
@@ -443,7 +449,7 @@ protected function makeAccessId()
* Limit is based on type of authentication:
* Anonymous user gets lowest limit
* Registered APP gets higher limit
- * Authenticated user (via OAuth2) gets hights limit
+ * Authenticated user (via OAuth2) gets hits limit
*
* @throws \Lampcms\HttpResponseCodeException with http code 400
* if daily rate access limit has been exceeded
@@ -68,7 +68,6 @@ class Clientdata extends \Lampcms\Mongo\Doc
public function __construct(\Lampcms\Registry $Registry)
{
-
parent::__construct($Registry, 'API_CLIENTS');
}
@@ -118,7 +117,7 @@ public function getIcon($asHtml = true)
/**
* Return array of key->value
* only return certain keys that should
- * be displayed on the Cliend info page
+ * be displayed on the Client info page
* This includes api_key, name
* In case of OAuth2 sub-class show
* app token as well as urls for end-points

0 comments on commit c5a53d2

Please sign in to comment.