Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adding docblocks.

  • Loading branch information...
commit c73c25ef12835bf1464d609bfe1a4a35bf93639f 1 parent a870c98
psychic authored gwoo committed
View
11 libraries/lithium/template/Helper.php
@@ -27,8 +27,19 @@
*/
protected $_strings = array();
+ /**
+ * The Renderer object this Helper is bound to.
+ *
+ * @var lithium\template\view\Renderer
+ * @see lithium\template\view\Renderer
+ */
protected $_context = null;
+ /**
+ * Auto configuration properties.
+ *
+ * @var array
+ */
protected $_autoConfig = array('classes' => 'merge', 'context');
/**
View
8 libraries/lithium/template/helper/Form.php
@@ -503,6 +503,14 @@ public function error($name, $key = null, array $options = array()) {
return $this->_render(__METHOD__, $template, compact('content', 'options'));
}
+ /**
+ * Builds the defaults array for a method by name, according to the config.
+ *
+ * @param string $method The name of the method to create defaults for.
+ * @param string $name The `$name` supplied to the original method.
+ * @param string $options `$options` from the original method.
+ * @return array Defaults array contents.
+ */
protected function _defaults($method, $name, $options) {
$methodConfig = isset($this->_config[$method]) ? $this->_config[$method] : array();
$options += $methodConfig + $this->_config['base'];
Please sign in to comment.
Something went wrong with that request. Please try again.