5
5
* Static helper class for FileLogWriter (FLW).
6
6
*
7
7
* @author Michael Beyer <[email protected] >
8
- * @version v0.1.5
8
+ * @version v0.1.6
9
9
* @api
10
10
*/
11
11
class FileLogWriterHelper {
@@ -325,10 +325,10 @@ static public function content2CSV($content, $params= null) {
325
325
* @return boolean True if path is absolute, false if not.
326
326
*
327
327
* @author Michael Beyer <[email protected] >
328
- * @version v0.1.0
328
+ * @version v0.1.1
329
329
* @api
330
330
*/
331
- function isAbsolutePath ($ target ) {
331
+ static function isAbsolutePath ($ target ) {
332
332
return (substr ($ target , 0 , 1 ) == self ::FOLDER_SEPARATOR ? true : false );
333
333
}
334
334
@@ -339,10 +339,10 @@ function isAbsolutePath($target) {
339
339
* @return array Assoc. array, "pathname" contains path, "filename" contains file portion.
340
340
*
341
341
* @author Michael Beyer <[email protected] >
342
- * @version v0.1.0
342
+ * @version v0.1.1
343
343
* @api
344
344
*/
345
- function separatePathAndFile ($ target ) {
345
+ static function separatePathAndFile ($ target ) {
346
346
$ pathname = str_replace (basename ($ target ), "" , $ target );
347
347
$ filename = str_replace ($ pathname , "" , $ target );
348
348
return array ('pathname ' => $ pathname , 'filename ' => $ filename );
@@ -356,10 +356,10 @@ function separatePathAndFile($target) {
356
356
* @return string Purified path.
357
357
*
358
358
* @author Michael Beyer <[email protected] >
359
- * @version v0.1.0
359
+ * @version v0.1.1
360
360
* @api
361
361
*/
362
- function cleanupPath ($ target ) {
362
+ static function cleanupPath ($ target ) {
363
363
$ final_path = "" ;
364
364
365
365
$ token = explode (self ::FOLDER_SEPARATOR , $ target );
0 commit comments