Development

Changeset 6588

You must first sign up to be able to contribute.

Changeset 6588

Show
Ignore:
Timestamp:
12/19/07 18:37:53 (10 months ago)
Author:
pookey
Message:

adding sfForm::getValue()

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/form/sfForm.class.php

    r6326 r6588  
    173173 
    174174  /** 
     175   * Returns a cleaned value 
     176   * 
     177   * If the form is not bound, it will return nul 
     178   * 
     179   * @param  string  The name of the value required 
     180   * @return string  The cleaned value 
     181   */ 
     182  public function getValue($key) 
     183  { 
     184    return $this->isBound ? $this->values[$key] : null; 
     185  } 
     186 
     187  /** 
    175188   * Gets the error schema associated with the form. 
    176189   *