cakephp2-php8/lib/Cake/Utility
rooseveltrp 98e11cea5d Adds File::replaceText().
Added File::replace()

Searches for a given text and replaces the text if found

Renamed File::replace() to File::replaceText()

Updated the replaceText() method to utilize File Locking

Updated File::replaceText()

1. Method now checks if the lock is not identical to null
2. Since the method uses File::read() to get the contents of the file,
there is no need for a temporary file. Removed the temporary file
creation

File::replaceText() update

Opening file with r+ mode
2013-10-26 14:05:12 +02:00
..
CakeNumber.php more cs 2013-09-17 14:53:07 +02:00
CakeTime.php Updated CakeTime::i18nFormat() doc block description 2013-09-17 23:09:46 -04:00
ClassRegistry.php Replaced all is_a() calls with instanceof operator 2013-09-24 21:08:06 -04:00
Debugger.php remove code, class names and paths from translation strings. 2013-08-21 00:05:53 +02:00
File.php Adds File::replaceText(). 2013-10-26 14:05:12 +02:00
Folder.php Added missing semi-colon in return 2013-10-02 22:55:09 -04:00
Hash.php Merge branch 'master' into 2.5 2013-09-21 20:01:50 -04:00
Inflector.php Cake to CakePHP name 2013-09-27 19:36:43 +02:00
ObjectCollection.php cs corrections, bool to boolean and int to integer. 2013-09-17 14:44:34 +02:00
Sanitize.php App::import to App::uses 2013-09-25 19:40:14 +02:00
Security.php Fix coding standards error. 2013-09-01 21:44:45 -04:00
Set.php Remove last yoda conditions as per coding standards guidelines. 2013-09-06 18:36:57 +02:00
String.php Make String::wrap() unicode aware. Solves #3981. 2013-10-01 22:35:11 +02:00
Validation.php Merge branch 'master' into 2.5 2013-10-14 22:57:50 -04:00
Xml.php Updated additional references of Cake to CakePHP 2013-09-27 21:31:35 -04:00