Skip to content

Commit

Permalink
Fix Validate namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
nohponex committed Jan 20, 2016
1 parent 1da2614 commit 2878a3a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/Models/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
use \Phramework\Exceptions\MissingParametersException;
use \Phramework\Exceptions\IncorrectParametersException;
use \Phramework\Validate\UnsignedIntegerValidator;
use \Phramework\Validate\Validate;

/**
* Request related functions
Expand Down Expand Up @@ -65,7 +66,7 @@ public static function checkPermission($userId = false)
* Check if required parameters are set
* @param array|object $parameters Request's parameters
* @param string|array $required The required parameters
* @throws Phramework\Exceptions\MissingParametersException
* @throws \Phramework\Exceptions\MissingParametersException
*/
public static function requireParameters($parameters, $required)
{
Expand Down Expand Up @@ -95,7 +96,7 @@ public static function requireParameters($parameters, $required)
* Require id parameter if it's set else return NULL, it uses `resource_id` or `id` parameter if available
* @param array|object $parameters The request parameters
* @param boolean $UINTEGER *[Optional]*, Check id's type to be unsigned integer
* @throws Phramework\Exceptions\IncorrectParameters When value is not correct
* @throws \Phramework\Exceptions\IncorrectParameters When value is not correct
* @return string|integer Returns the id or NULL if not set,
* if $UINTEGER the returned value will be converted to unsigned integer
*/
Expand Down Expand Up @@ -131,8 +132,8 @@ public static function resourceId($parameters, $UINTEGER = true)
* Require id parameter, it uses `resource_id` or `id` parameter if available
* @param array|object $parameters The request paramters
* @param boolean $UINTEGER *[Optional]*, Check id's type to be unsigned integer, default is true
* @throws Phramework\Exceptions\IncorrectParameters When value is not correct
* @throws Phramework\Exceptions\MissingParametersException When id is missing
* @throws \Phramework\Exceptions\IncorrectParameters When value is not correct
* @throws \Phramework\Exceptions\MissingParametersException When id is missing
* if $UINTEGER the returned value will be converted to unsigned integer
*/
public static function requireId($parameters, $UINTEGER = true)
Expand Down

0 comments on commit 2878a3a

Please sign in to comment.