Fixed some API doc in routing and cache.

This commit is contained in:
Juan Basso 2011-07-30 17:02:25 -04:00
parent 3723f7d396
commit e74d835a62
9 changed files with 18 additions and 16 deletions

View file

@ -108,6 +108,7 @@ class ApcEngine extends CacheEngine {
/**
* Delete all keys from the cache. This will clear every cache config using APC.
*
* @param boolean $check
* @return boolean True if the cache was successfully cleared, false otherwise
*/
public function clear($check) {

View file

@ -247,6 +247,8 @@ class FileEngine extends CacheEngine {
/**
* Not implemented
*
* @param string $key
* @param integer $offset
* @return void
* @throws CacheException
*/
@ -257,6 +259,8 @@ class FileEngine extends CacheEngine {
/**
* Not implemented
*
* @param string $key
* @param integer $offset
* @return void
* @throws CacheException
*/

View file

@ -189,6 +189,7 @@ class MemcacheEngine extends CacheEngine {
/**
* Delete all keys from the cache
*
* @param boolean $check
* @return boolean True if the cache was successfully cleared, false otherwise
*/
public function clear($check) {

View file

@ -115,6 +115,7 @@ class WincacheEngine extends CacheEngine {
* Delete all keys from the cache. This will clear every cache value stored
* in wincache.
*
* @param boolean $check
* @return boolean True if the cache was successfully cleared, false otherwise
*/
public function clear($check) {

View file

@ -124,6 +124,7 @@ class XcacheEngine extends CacheEngine {
/**
* Delete all keys from the cache
*
* @param boolean $check
* @return boolean True if the cache was successfully cleared, false otherwise
*/
public function clear($check) {
@ -144,7 +145,7 @@ class XcacheEngine extends CacheEngine {
* (see xcache.admin configuration settings)
*
* @param boolean $reverse Revert changes
* @access private
* @return void
*/
function __auth($reverse = false) {
static $backup = array();

View file

@ -95,8 +95,8 @@ class Dispatcher {
*
* @param Controller $controller Controller to invoke
* @param CakeRequest $request The request object to invoke the controller for.
* @return string Output as sent by controller
* @throws MissingActionException when the action being called is missing.
* @param CakeResponse $response The response object to receive the output
* @return void
*/
protected function _invoke(Controller $controller, CakeRequest $request, CakeResponse $response) {
$controller->constructClasses();
@ -165,7 +165,7 @@ class Dispatcher {
/**
* Load controller and return controller classname
*
* @param array $params Array of parameters
* @param CakeRequest $request
* @return string|bool Name of controller class name
*/
protected function _loadController($request) {
@ -202,6 +202,7 @@ class Dispatcher {
* Outputs cached dispatch view cache
*
* @param string $path Requested URL path
* @return string|boolean False if is not cached or output
*/
public function cached($path) {
if (Configure::read('Cache.check') === true) {

View file

@ -27,7 +27,6 @@ class CakeRoute {
* `/:controller/:action/:id` has 3 key elements
*
* @var array
* @access public
*/
public $keys = array();
@ -35,7 +34,6 @@ class CakeRoute {
* An array of additional parameters for the Route.
*
* @var array
* @access public
*/
public $options = array();
@ -43,7 +41,6 @@ class CakeRoute {
* Default parameters for a Route
*
* @var array
* @access public
*/
public $defaults = array();
@ -51,7 +48,6 @@ class CakeRoute {
* The routes template string.
*
* @var string
* @access public
*/
public $template = null;
@ -60,7 +56,6 @@ class CakeRoute {
* template
*
* @var string
* @access protected
*/
protected $_greedy = false;
@ -68,7 +63,6 @@ class CakeRoute {
* The compiled route regular expresssion
*
* @var string
* @access protected
*/
protected $_compiledRoute = null;
@ -76,7 +70,6 @@ class CakeRoute {
* HTTP header shortcut map. Used for evaluating header-based route expressions.
*
* @var array
* @access private
*/
private $__headerMap = array(
'type' => 'content_type',
@ -89,7 +82,7 @@ class CakeRoute {
*
* @param string $template Template string with parameter placeholders
* @param array $defaults Array of defaults for the route.
* @param string $params Array of parameters and additional options for the Route
* @param array $options Array of additional options for the Route
* @return void
*/
public function __construct($template, $defaults = array(), $options = array()) {

View file

@ -42,7 +42,7 @@ class RedirectRoute extends CakeRoute {
*
* @param string $template Template string with parameter placeholders
* @param array $defaults Array of defaults for the route.
* @param string $params Array of parameters and additional options for the Route
* @param array $options Array of additional options for the Route
*/
public function __construct($template, $defaults = array(), $options = array()) {
parent::__construct($template, $defaults, $options);

View file

@ -520,7 +520,7 @@ class Router {
* Will accept either a CakeRequest object or an array of arrays. Support for
* accepting arrays may be removed in the future.
*
* @param mixed $params Parameters and path information or a CakeRequest object.
* @param CakeRequest|array $request Parameters and path information or a CakeRequest object.
* @return void
*/
public static function setRequestInfo($request) {
@ -618,7 +618,7 @@ class Router {
/**
* Promote a route (by default, the last one added) to the beginning of the list
*
* @param $which A zero-based array index representing the route to move. For example,
* @param integer $which A zero-based array index representing the route to move. For example,
* if 3 routes have been added, the last route would be 2.
* @return boolean Returns false if no route exists at the position specified by $which.
*/
@ -909,7 +909,7 @@ class Router {
* This will strip out 'autoRender', 'bare', 'requested', and 'return' param names as those
* are used for CakePHP internals and should not normally be part of an output url.
*
* @param mixed $param The params array or CakeRequest object that needs to be reversed.
* @param CakeRequest|array $params The params array or CakeRequest object that needs to be reversed.
* @param boolean $full Set to true to include the full url including the protocol when reversing
* the url.
* @return string The string that is the reversed result of the array