Browse Source

Fixing failing debugger test.
Adding doc blocks for helper properties.

mark_story 14 years ago
parent
commit
bef2e75bdf
2 changed files with 20 additions and 6 deletions
  1. 0 6
      lib/Cake/Test/Case/Utility/DebuggerTest.php
  2. 20 0
      lib/Cake/View/Helper.php

+ 0 - 6
lib/Cake/Test/Case/Utility/DebuggerTest.php

@@ -237,12 +237,6 @@ class DebuggerTest extends CakeTestCase {
 		View::$cacheAction = false
 		View::$validationErrors = array
 		View::$hasRendered = false
-		View::$modelScope = false
-		View::$model = NULL
-		View::$association = NULL
-		View::$field = NULL
-		View::$fieldSuffix = NULL
-		View::$modelId = NULL
 		View::$uuids = array
 		View::$output = false
 		View::$request = NULL

+ 20 - 0
lib/Cake/View/Helper.php

@@ -114,8 +114,28 @@ class Helper extends Object {
 		'year', 'month', 'day', 'hour', 'min', 'second', 'meridian'
 	);
 
+/**
+ * The name of the current model entities are in scope of.
+ *
+ * @see Helper::setEntity()
+ * @var string
+ */
 	protected $_modelScope;
+
+/**
+ * The name of the current model association entities are in scope of.
+ *
+ * @see Helper::setEntity()
+ * @var string
+ */
 	protected $_association;
+
+/**
+ * The dot separated list of elements the current field entity is for.
+ *
+ * @see Helper::setEntity()
+ * @var string
+ */
 	protected $_entityPath;
 
 /**