Skip to content

Commit

Permalink
Updating doc blocks.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Oct 31, 2009
1 parent 83caf50 commit ade96b7
Showing 1 changed file with 29 additions and 14 deletions.
43 changes: 29 additions & 14 deletions cake/libs/view/helpers/form.php
Expand Up @@ -72,8 +72,30 @@ class FormHelper extends AppHelper {
*/ */
var $requestType = null; var $requestType = null;


/**
* The default model being used for the current form.
*
* @var string
*/
var $defaultModel = null; var $defaultModel = null;



/**
* Persistent default options used by input(). Set by FormHelper::create().
*
* @var array
* @access protected
*/
var $_inputDefaults = array();

/**
* Introspects model information and extracts information related
* to validation, field length and field type. Appends information into
* $this->fieldset.
*
* @return Model Returns a model instance
* @access protected
*/
function &_introspectModel($model) { function &_introspectModel($model) {
$object = null; $object = null;
if (is_string($model) && strpos($model, '.') !== false) { if (is_string($model) && strpos($model, '.') !== false) {
Expand Down Expand Up @@ -122,27 +144,20 @@ function &_introspectModel($model) {
return $object; return $object;
} }


/**
* Persistent default options used by input(). Set by FormHelper::create().
*
* @var array
* @access protected
*/
var $_inputDefaults = array();

/** /**
* Returns an HTML FORM element. * Returns an HTML FORM element.
* *
* #### Options: * #### Options:
* *
* - 'type' Form method defaults to POST * - `type` Form method defaults to POST
* - 'action' The Action the form submits to. Can be a string or array, * - `action` The Action the form submits to. Can be a string or array,
* - 'url' The url the form submits to. Can be a string or a url array, * - `url` The url the form submits to. Can be a string or a url array,
* - 'default' Allows for the creation of Ajax forms. * - `default` Allows for the creation of Ajax forms.
* - 'onsubmit' Used in conjunction with 'default' to create ajax forms. * - `onsubmit` Used in conjunction with 'default' to create ajax forms.
* - 'inputDefaults' set the default $options for FormHelper::input(). Any options that would * - `inputDefaults' set the default $options for FormHelper::input(). Any options that would
* be set when using FormHelper::input() can be set here. Options set with `inputDefaults` * be set when using FormHelper::input() can be set here. Options set with `inputDefaults`
* can be overridden when calling input() * can be overridden when calling input()
* - `encoding` Set the accept-charset encoding for the form. Defaults to `Configure::read('App.encoding')`
* *
* @access public * @access public
* @param string $model The model object which the form is being defined for * @param string $model The model object which the form is being defined for
Expand Down

0 comments on commit ade96b7

Please sign in to comment.