Skip to content

Commit

Permalink
Docblock fixes to help apigen
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed Feb 28, 2013
1 parent 9cb5cb0 commit f883840
Show file tree
Hide file tree
Showing 8 changed files with 50 additions and 28 deletions.
2 changes: 1 addition & 1 deletion cake/console/libs/tasks/template.php
Expand Up @@ -13,7 +13,7 @@
* @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org CakePHP(tm) Project
* @package cake
* @subpackage cake.console.libs.tasks
* @subpackage cake.cake.console.libs.tasks
* @since CakePHP(tm) v 1.3
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
Expand Down
5 changes: 3 additions & 2 deletions cake/libs/controller/scaffold.php
Expand Up @@ -540,7 +540,7 @@ function __associations() {
* Scaffold View.
*
* @package cake
* @subpackage cake.cake.libs.controller
* @subpackage cake.cake.libs.view
*/
if (!class_exists('ThemeView')) {
App::import('View', 'Theme');
Expand All @@ -549,7 +549,8 @@ function __associations() {
/**
* ScaffoldView provides specific view file loading features for scaffolded views.
*
* @package cake.libs.view
* @package cake
* @subpackage cake.cake.libs.view
*/
class ScaffoldView extends ThemeView {

Expand Down
10 changes: 5 additions & 5 deletions cake/libs/magic_db.php
Expand Up @@ -27,8 +27,8 @@
/**
* A class to parse and use the MagicDb for file type analysis
*
* @package cake.tests
* @subpackage cake.tests.cases.libs
* @package cake
* @subpackage cake.cake.libs
*/
class MagicDb extends Object {

Expand Down Expand Up @@ -173,10 +173,10 @@ function analyze($file, $options = array()) {
}

/**
* undocumented class
* MagicFileResource
*
* @package cake.tests
* @subpackage cake.tests.cases.libs
* @package cake
* @subpackage cake.cake.libs
*/
class MagicFileResource extends Object{

Expand Down
24 changes: 13 additions & 11 deletions cake/libs/router.php
Expand Up @@ -275,7 +275,7 @@ function connect($route, $defaults = array(), $options = array()) {
}
$defaults += array('plugin' => null);
if (empty($options['action'])) {
$defaults += array('action' => 'index');
$defaults += array('action' => 'index');
}
$routeClass = 'CakeRoute';
if (isset($options['routeClass'])) {
Expand Down Expand Up @@ -326,10 +326,10 @@ function connect($route, $defaults = array(), $options = array()) {
* Router::connectNamed(
* array('page' => array('action' => 'index', 'controller' => 'pages')),
* array('default' => false, 'greedy' => false)
* );
* );
* }}}
*
* @param array $named A list of named parameters. Key value pairs are accepted where values are
* @param array $named A list of named parameters. Key value pairs are accepted where values are
* either regex strings to match, or arrays as seen above.
* @param array $options Allows to control all settings: separator, greedy, reset, default
* @return array
Expand Down Expand Up @@ -612,7 +612,7 @@ function __connectDefaultRoutes() {

/**
* Takes parameter and path information back from the Dispatcher, sets these
* parameters as the current request parameters that are merged with url arrays
* parameters as the current request parameters that are merged with url arrays
* created later in the request.
*
* @param array $params Parameters and path information
Expand Down Expand Up @@ -692,7 +692,7 @@ function getPaths($current = false) {
}

/**
* Reloads default Router settings. Resets all class variables and
* Reloads default Router settings. Resets all class variables and
* removes all connected routes.
*
* @access public
Expand Down Expand Up @@ -741,7 +741,7 @@ function promote($which = null) {
* - A combination of controller/action - the method will find url for it.
*
* There are a few 'special' parameters that can change the final URL string that is generated
*
*
* - `base` - Set to false to remove the base path from the generated url. If your application
* is not in the root directory, this can be used to generate urls that are 'cake relative'.
* cake relative urls are required when using requestAction.
Expand Down Expand Up @@ -1247,7 +1247,8 @@ function getArgs($args, $options = array()) {
* Not normally created as a standalone. Use Router::connect() to create
* Routes for your application.
*
* @package cake.libs
* @package cake
* @subpackage cake.cake.libs
* @since 1.3.0
* @see Router::connect()
*/
Expand Down Expand Up @@ -1462,8 +1463,8 @@ function parse($url) {
}

/**
* Apply persistent parameters to a url array. Persistant parameters are a special
* key used during route creation to force route parameters to persist when omitted from
* Apply persistent parameters to a url array. Persistant parameters are a special
* key used during route creation to force route parameters to persist when omitted from
* a url array.
*
* @param array $url The array to apply persistent parameters to.
Expand Down Expand Up @@ -1617,12 +1618,13 @@ function _writeUrl($params) {
* Plugin short route, that copies the plugin param to the controller parameters
* It is used for supporting /:plugin routes.
*
* @package cake.libs
* @package cake
* @subpackage cake.cake.libs
*/
class PluginShortRoute extends CakeRoute {

/**
* Parses a string url into an array. If a plugin key is found, it will be copied to the
* Parses a string url into an array. If a plugin key is found, it will be copied to the
* controller parameter
*
* @param string $url The url to parse
Expand Down
10 changes: 8 additions & 2 deletions cake/libs/view/helpers/jquery_engine.php
Expand Up @@ -19,11 +19,17 @@
* @copyright Copyright 2005-2012, Cake Software Foundation, Inc.
* @link http://cakephp.org CakePHP Project
* @package cake
* @subpackage cake.view.helpers
* @subpackage cake.cake.libs.view.helpers
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
App::import('Helper', 'Js');

/**
* jQuery Engine Helper for JsHelper
*
* @package cake
* @subpackage cake.cake.libs.view.helpers
*/
class JqueryEngineHelper extends JsBaseEngineHelper {
/**
* Option mappings for jQuery
Expand Down Expand Up @@ -178,7 +184,7 @@ function event($type, $callback, $options = array()) {
}

/**
* Create a domReady event. For jQuery. This method does not
* Create a domReady event. For jQuery. This method does not
* bind a 'traditional event' as `$(document).bind('ready', fn)`
* Works in an entirely different fashion than `$(document).ready()`
* The first will not run the function when eval()'d as part of a response
Expand Down
11 changes: 6 additions & 5 deletions cake/libs/view/helpers/js.php
Expand Up @@ -205,7 +205,7 @@ function value($val, $quoteString = true) {
function writeBuffer($options = array()) {
$domReady = isset($this->params['isAjax']) ? !$this->params['isAjax'] : true;
$defaults = array(
'onDomReady' => $domReady, 'inline' => true,
'onDomReady' => $domReady, 'inline' => true,
'cache' => false, 'clear' => true, 'safe' => true
);
$options = array_merge($defaults, $options);
Expand Down Expand Up @@ -240,7 +240,7 @@ function writeBuffer($options = array()) {
* Write a script to the buffered scripts.
*
* @param string $script Script string to add to the buffer.
* @param boolean $top If true the script will be added to the top of the
* @param boolean $top If true the script will be added to the top of the
* buffered scripts array. If false the bottom.
* @return void
* @access public
Expand Down Expand Up @@ -366,7 +366,7 @@ function set($one, $two = null) {
* and require an iframe or flash.
*
* ### Options
*
*
* - `url` The url you wish the XHR request to submit to.
* - `confirm` A string to use for a confirm() message prior to submitting the request.
* - `method` The method you wish the form to send by, defaults to POST
Expand Down Expand Up @@ -429,7 +429,7 @@ function submit($caption = null, $options = array()) {
*/
function _getHtmlOptions($options, $additional = array()) {
$htmlKeys = array_merge(
array('class', 'id', 'escape', 'onblur', 'onfocus', 'rel', 'title', 'style'),
array('class', 'id', 'escape', 'onblur', 'onfocus', 'rel', 'title', 'style'),
$additional
);
$htmlOptions = array();
Expand All @@ -452,7 +452,8 @@ function _getHtmlOptions($options, $additional = array()) {
*
* Abstract Base Class for All JsEngines to extend. Provides generic methods.
*
* @package cake.view.helpers
* @package cake
* @subpackage cake.cake.libs.view.helpers
*/
class JsBaseEngineHelper extends AppHelper {
/**
Expand Down
8 changes: 7 additions & 1 deletion cake/libs/view/helpers/mootools_engine.php
Expand Up @@ -21,12 +21,18 @@
* @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org CakePHP(tm) Project
* @package cake
* @subpackage cake.libs.view.helpers
* @subpackage cake.cake.libs.view.helpers
* @since CakePHP(tm) v 1.3
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
App::import('Helper', 'Js');

/**
* Mootools Engine Helper for JsHelper
*
* @package cake
* @subpackage cake.cake.libs.view.helpers
*/
class MootoolsEngineHelper extends JsBaseEngineHelper {
/**
* Option mappings for MooTools
Expand Down
8 changes: 7 additions & 1 deletion cake/libs/view/helpers/prototype_engine.php
Expand Up @@ -16,12 +16,18 @@
* @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org CakePHP(tm) Project
* @package cake
* @subpackage cake.libs.view.helpers
* @subpackage cake.cake.libs.view.helpers
* @since CakePHP(tm) v 1.3
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
App::import('Helper', 'Js');

/**
* Prototype Engine Helper for JsHelper
*
* @package cake
* @subpackage cake.cake.libs.view.helpers
*/
class PrototypeEngineHelper extends JsBaseEngineHelper {
/**
* Is the current selection a multiple selection? or is it just a single element.
Expand Down

0 comments on commit f883840

Please sign in to comment.