Permalink
Browse files

API CHANGE Remove deprecated methods getAllowedMaxFileSize, setAllowe…

…dMaxSize, getAllowedExtensions and setAllowedExtensions on FileField
  • Loading branch information...
1 parent 09db4ba commit 454023c666799fe3abbb3a32c0e7dcf3adeae898 @halkyon halkyon committed Mar 16, 2011
Showing with 1 addition and 52 deletions.
  1. +1 −52 forms/FileField.php
View
@@ -179,56 +179,6 @@ public function setValidator($validator) {
}
/**
- * Get maximum file size for all or specified file extension.
- * Falls back to the default filesize restriction ('*')
- * if the extension was not found.
- *
- * @deprecated 2.5
- * @param string $ext
- * @return int Filesize in bytes (0 means no filesize set)
- */
- public function getAllowedMaxFileSize($ext = null) {
- user_error('Upload::getAllowedMaxFileSize() is deprecated. Please use Upload_Validator::getAllowedMaxFileSize() instead', E_USER_NOTICE);
- $this->getValidator()->getAllowedMaxFileSize($ext);
- }
-
- /**
- * Set filesize maximums (in bytes).
- * Automatically converts extensions to lowercase
- * for easier matching.
- *
- * Example:
- * <code>
- * array('*' => 200, 'jpg' => 1000)
- * </code>
- *
- * @deprecated 2.5
- * @param unknown_type $rules
- */
- public function setAllowedMaxFileSize($rules) {
- user_error('Upload::setAllowedMaxFileSize() is deprecated. Please use Upload_Validator::setAllowedMaxFileSize() instead', E_USER_NOTICE);
- $this->getValidator()->setAllowedMaxFileSize($rules);
- }
-
- /**
- * @deprecated 2.5
- * @return array
- */
- public function getAllowedExtensions() {
- user_error('Upload::getAllowedExtensions() is deprecated. Please use Upload_Validator::getAllowedExtensions() instead', E_USER_NOTICE);
- return $this->getValidator()->getAllowedExtensions();
- }
-
- /**
- * @deprecated 2.5
- * @param array $rules
- */
- public function setAllowedExtensions($rules) {
- user_error('Upload::setAllowedExtensions() is deprecated. Please use Upload_Validator::setAllowedExtensions() instead', E_USER_NOTICE);
- $this->getValidator()->setAllowedExtensions($rules);
- }
-
- /**
* @param string $folderName
*/
public function setFolderName($folderName) {
@@ -258,5 +208,4 @@ public function validate($validator) {
return true;
}
-}
-?>
+}

0 comments on commit 454023c

Please sign in to comment.