From 2a50a1ea99f838ab9d1ec4c75c16f25453c8848b Mon Sep 17 00:00:00 2001 From: Juan Basso Date: Sun, 31 Jul 2011 17:05:20 -0400 Subject: [PATCH] Included @var in API that was missing. --- lib/Cake/Console/Command/UpgradeShell.php | 15 +++++++++++++++ lib/Cake/Controller/CakeErrorController.php | 6 ++++++ lib/Cake/Core/App.php | 7 +++++++ lib/Cake/Core/CakePlugin.php | 1 + lib/Cake/Model/Behavior/TranslateBehavior.php | 19 +++++++++++++++++++ lib/Cake/Model/Datasource/Database/Oracle.php | 2 ++ .../Model/Datasource/Database/Postgres.php | 5 +++++ lib/Cake/Model/Model.php | 15 +++++++++++++++ lib/Cake/Routing/Router.php | 5 +++++ lib/Cake/View/Helper/FormHelper.php | 1 + 10 files changed, 76 insertions(+) diff --git a/lib/Cake/Console/Command/UpgradeShell.php b/lib/Cake/Console/Command/UpgradeShell.php index 1f6ec682c..0f4beba33 100644 --- a/lib/Cake/Console/Command/UpgradeShell.php +++ b/lib/Cake/Console/Command/UpgradeShell.php @@ -8,10 +8,25 @@ App::uses('Folder', 'Utility'); */ class UpgradeShell extends Shell { +/** + * Files + * + * @var array + */ protected $_files = array(); +/** + * Paths + * + * @var array + */ protected $_paths = array(); +/** + * Map + * + * @var array + */ protected $_map = array( 'Controller' => 'Controller', 'Component' => 'Controller/Component', diff --git a/lib/Cake/Controller/CakeErrorController.php b/lib/Cake/Controller/CakeErrorController.php index 73b0ff72d..062b2c448 100644 --- a/lib/Cake/Controller/CakeErrorController.php +++ b/lib/Cake/Controller/CakeErrorController.php @@ -7,6 +7,12 @@ * @package Cake.Controller */ class CakeErrorController extends AppController { + +/** + * Controller name + * + * @var string + */ public $name = 'CakeError'; /** diff --git a/lib/Cake/Core/App.php b/lib/Cake/Core/App.php index 7ceb20ee4..c7007c7f9 100644 --- a/lib/Cake/Core/App.php +++ b/lib/Cake/Core/App.php @@ -148,24 +148,28 @@ class App { /** * Holds the location of each class * + * @var array */ private static $__classMap = array(); /** * Holds the possible paths for each package name * + * @var array */ private static $__packages = array(); /** * Holds the templates for each customizable package path in the application * + * @var array */ private static $__packageFormat = array(); /** * Maps an old style CakePHP class type to the corresponding package * + * @var array */ public static $legacy = array( 'models' => 'Model', @@ -182,12 +186,14 @@ class App { /** * Indicates whether the class cache should be stored again because of an addition to it * + * @var boolean */ private static $_cacheChange = false; /** * Indicates whether the object cache should be stored again because of an addition to it * + * @var boolean */ private static $_objectCacheChange = false; @@ -195,6 +201,7 @@ class App { * Indicates the the Application is in the bootstrapping process. Used to better cache * loaded classes while the cache libraries have not been yet initialized * + * @var boolean */ public static $bootstrapping = false; diff --git a/lib/Cake/Core/CakePlugin.php b/lib/Cake/Core/CakePlugin.php index 0a12d97a6..4b2ece662 100644 --- a/lib/Cake/Core/CakePlugin.php +++ b/lib/Cake/Core/CakePlugin.php @@ -27,6 +27,7 @@ class CakePlugin { /** * Holds a list of all loaded plugins and their configuration * + * @var array */ private static $_plugins = array(); diff --git a/lib/Cake/Model/Behavior/TranslateBehavior.php b/lib/Cake/Model/Behavior/TranslateBehavior.php index 8facac627..3491406de 100644 --- a/lib/Cake/Model/Behavior/TranslateBehavior.php +++ b/lib/Cake/Model/Behavior/TranslateBehavior.php @@ -505,7 +505,26 @@ class TranslateBehavior extends ModelBehavior { * @package Cake.Model.Behavior */ class I18nModel extends AppModel { + +/** + * Model name + * + * @var string + */ public $name = 'I18nModel'; + +/** + * Table name + * + * @var string + */ public $useTable = 'i18n'; + +/** + * Display field + * + * @var string + */ public $displayField = 'field'; + } diff --git a/lib/Cake/Model/Datasource/Database/Oracle.php b/lib/Cake/Model/Datasource/Database/Oracle.php index 8afab1d0e..d6ffcb51b 100644 --- a/lib/Cake/Model/Datasource/Database/Oracle.php +++ b/lib/Cake/Model/Datasource/Database/Oracle.php @@ -42,6 +42,8 @@ class DboOracle extends DboSource { /** * Sequence names as introspected from the database + * + * @var array */ protected $_sequences = array(); diff --git a/lib/Cake/Model/Datasource/Database/Postgres.php b/lib/Cake/Model/Datasource/Database/Postgres.php index 262f98c2f..2c97f0988 100644 --- a/lib/Cake/Model/Datasource/Database/Postgres.php +++ b/lib/Cake/Model/Datasource/Database/Postgres.php @@ -62,6 +62,11 @@ class Postgres extends DboSource { 'encoding' => '' ); +/** + * Columns + * + * @var array + */ public $columns = array( 'primary_key' => array('name' => 'serial NOT NULL'), 'string' => array('name' => 'varchar', 'limit' => '255'), diff --git a/lib/Cake/Model/Model.php b/lib/Cake/Model/Model.php index 2007358a4..0cb120a49 100644 --- a/lib/Cake/Model/Model.php +++ b/lib/Cake/Model/Model.php @@ -301,10 +301,25 @@ class Model extends Object { */ public $__backAssociation = array(); +/** + * Back inner association + * + * @var array + */ public $__backInnerAssociation = array(); +/** + * Back original association + * + * @var array + */ public $__backOriginalAssociation = array(); +/** + * Back containable association + * + * @var array + */ public $__backContainableAssociation = array(); /** diff --git a/lib/Cake/Routing/Router.php b/lib/Cake/Routing/Router.php index 37fa502c5..a5c610253 100644 --- a/lib/Cake/Routing/Router.php +++ b/lib/Cake/Routing/Router.php @@ -81,6 +81,11 @@ class Router { const ID = '[0-9]+'; const UUID = '[A-Fa-f0-9]{8}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{12}'; +/** + * Named expressions + * + * @var array + */ private static $__namedExpressions = array( 'Action' => Router::ACTION, 'Year' => Router::YEAR, diff --git a/lib/Cake/View/Helper/FormHelper.php b/lib/Cake/View/Helper/FormHelper.php index fc45b493f..87d225ea4 100644 --- a/lib/Cake/View/Helper/FormHelper.php +++ b/lib/Cake/View/Helper/FormHelper.php @@ -42,6 +42,7 @@ class FormHelper extends AppHelper { * Holds the fields array('field_name' => array('type'=> 'string', 'length'=> 100), * primaryKey and validates array('field_name') * + * @var array */ public $fieldset = array();