Permalink
Browse files

hooks fixes for lithium/template

  • Loading branch information...
1 parent b96f5e7 commit 53a9fd955cba181da6f5293d1c5cb680534301d2 @alkemann alkemann committed Dec 10, 2009
@@ -69,6 +69,8 @@ protected function _init() {
* non-HTML/XML contexts should override this method accordingly.
*
* @param string $value
+ * @param mixed $method
+ * @param array $options
* @return mixed
*/
public function escape($value, $method = null, $options = array()) {
@@ -253,7 +253,7 @@ public function style($path, $options = array()) {
* Creates a formatted <img /> element.
*
* @param string $path Path to the image file, relative to the app/webroot/img/ directory.
- * @param array $options Array of HTML attributes.
+ * @param array $options Array of HTML attributes.
* @return string
*/
public function image($path, $options = array()) {
@@ -272,9 +272,9 @@ public function image($path, $options = array()) {
* Returns a formatted block tag, i.e <div />, <span />, <p />.
*
* @param string $name Tag name.
- * @param string $text String content that will appear inside the div element.
+ * @param string $content String content that will appear inside the div element.
* If null, only a start tag will be printed
- * @param array $attributes Additional HTML attributes of the DIV tag
+ * @param array $options Additional HTML attributes of the DIV tag
* @return string The formatted tag element
*/
function tag($name, $content = null, $options = array()) {
@@ -288,9 +288,9 @@ function tag($name, $content = null, $options = array()) {
* Returns a formatted DIV tag for HTML FORMs.
*
* @param string $class CSS class name of the div element.
- * @param string $text String content that will appear inside the div element.
+ * @param string $content String content that will appear inside the div element.
* If null, only a start tag will be printed
- * @param array $attributes Additional HTML attributes of the DIV tag
+ * @param array $options Additional HTML attributes of the DIV tag
* @return string The formatted DIV element
*/
function block($class = null, $content = null, $options = array()) {
@@ -304,8 +304,8 @@ function block($class = null, $content = null, $options = array()) {
* Returns a formatted P tag.
*
* @param string $class CSS class name of the p element.
- * @param string $text String content that will appear inside the p element.
- * @param array $attributes Additional HTML attributes of the P tag
+ * @param string $content String content that will appear inside the p element.
+ * @param array $options Additional HTML attributes of the P tag
* @return string The formatted P element
*/
function para($class, $content, $options = array()) {
@@ -145,7 +145,7 @@ public function __get($property) {
*
* @param string $method The method name to call, usually either a rendering context value or a
* content handler.
- * @param array $params
+ * @param array $params
* @return mixed
* @see lithium\template\view\Renderer::$_context
* @see lithium\template\view\Renderer::$_handlers
@@ -177,7 +177,7 @@ public function __call($method, $params) {
* they are not available.
*
* @param string $name Helper name
- * @param array $config
+ * @param array $config
* @return object
*/
public function helper($name, $config = array()) {
@@ -258,8 +258,8 @@ public function handlers($handlers = null) {
* - a closure, which takes the value as the first parameter, an array containing an instance of
* the calling helper and the calling method name as the second, and `$options` as the third.
* In all cases, handlers should return the transformed version of `$value`.
- *
- * @param object $helper The instance of the object (usually a helper) that is invoking
+ *
+ * @param object $helper The instance of the object (usually a helper) that is invoking
* @param string $method The object (helper) method which is applying the handler to the content
* @param string $name The name of the value to which the handler is applied, i.e. `'url'`,
* `'path'` or `'title'`.
@@ -15,7 +15,7 @@
/**
* The File adapter implements both template loading and rendering, and uses the `view\Stream` class
* to auto-escape template output with short tags (i.e. <?=).
- *
+ *
* For more information about implementing your own template loaders or renderers, see the
* `lithium\template\View` class.
*
@@ -42,9 +42,9 @@ public function __construct($config = array()) {
/**
* Renders content from a template file provided by `template()`.
*
- * @param string $template
- * @param string $data
- * @param string $context
+ * @param string $template
+ * @param string $data
+ * @param array $options
* @return string
*/
public function render($template, $data = array(), $options = array()) {
@@ -62,8 +62,8 @@ public function render($template, $data = array(), $options = array()) {
/**
* Returns a template file name
*
- * @param string $type
- * @param string $options
+ * @param string $type
+ * @param string $options
* @return void
* @todo Replace me with include_path search?
*/
@@ -23,10 +23,10 @@ public function __construct($config = array()) {
/**
* Renders content from a template file provided by `template()`.
*
- * @param string $template
- * @param array $data
- * @param array $context
- * @param array $options
+ * @param string $template
+ * @param array $data
+ * @param array $context
+ * @param array $options
* @return string
*/
public function render($template, $data = array(), $context = array(), $options = array()) {
@@ -50,8 +50,8 @@ public function render($template, $data = array(), $context = array(), $options
/**
* Returns a template string
*
- * @param string $type
- * @param array $options
+ * @param string $type
+ * @param array $options
* @return string
*/
public function template($type, $options) {

0 comments on commit 53a9fd9

Please sign in to comment.