Development

Upgrade1.1-DeprecatedMethods (diff)

You must first sign up to be able to contribute.

Changes from Version 1 of Upgrade1.1-DeprecatedMethods

Show
Ignore:
Author:
GaryFx (IP: 71.232.85.188)
Timestamp:
08/15/08 18:20:26 (9 years ago)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Upgrade1.1-DeprecatedMethods

    v0 v1  
     1= Deprecated Methods in Core Classes = 
     2 
     3Three key classes, `sfAction`, `sfRequest`, and `sfWebRequest`, have had a number of methods deprecated.  These methods are still available if you have enabled 1.0 compatibility mode, but otherwise they will throw an exception.  Because of the effort involved in converting these, you may wish to enable [wiki:Upgrade1.1-CompatibilityMode compatibility mode] for now, and migrate these uses over time. 
     4 
     5 
     6== Deprecated methods in sfAction == 
     7 
     8The following methods of `sfAction` have been deprecated and throw 
     9a `sfConfigurationException` if `sf_compat_10` is set to `false`: 
     10 
     11  * `->validate()` 
     12  * `->handleError()` 
     13 
     14== Deprecated methods in sfRequest == 
     15 
     16The following methods of `sfRequest` have been deprecated and throw 
     17a `sfConfigurationException` if `sf_compat_10` is set to `false`.  Note that the new ''forms'' mechanism is the preferred way to deal with these functions, but that means it's non-trivial to migrate your use of these functions. 
     18 
     19  * `->getError()` 
     20  * `->getErrors()` 
     21  * `->getErrorNames()` 
     22  * `->hasError()` 
     23  * `->hasErrors()` 
     24  * `->setError()` 
     25  * `->setErrors()` 
     26  * `->removeError()` 
     27 
     28== Deprecated methods in sfWebRequest == 
     29 
     30The following methods of `sfWebRequest` have been deprecated and throw 
     31a `sfConfigurationException` if `sf_compat_10` is set to `false`: 
     32 
     33  * `->getFile()` 
     34  * `->getFileError()` 
     35  * `->getFileName()` 
     36  * `->getFileNames()` 
     37  * `->getFilePath()` 
     38  * `->getFileSize()` 
     39  * `->getFileType()` 
     40  * `->hasFile()` 
     41  * `->hasFileError()` 
     42  * `->hasFileErrors()` 
     43  * `->hasFiles()` 
     44  * `->getFileValue()` 
     45  * `->getFileValues()` 
     46  * `->getFileExtension()` 
     47  * `->moveFile()`