Exponential 6.0.13 Exponential Enterprise Open Source CMS - PHP Class Reference

ezfilehandler.php
Go to the documentation of this file.
1 <?php
55 class eZFileHandler
56 {
57 public $Identifier;
58 public $FileHandler;
65 public function __construct( $handlerIdentifier = false, $handlerName = false )
66 {
67 if ( !$handlerIdentifier )
68 {
69 $handlerIdentifier = 'plain';
70 $handlerName = 'Plain';
71 }
72 $this->Name = $handlerName;
73 $this->Identifier = $handlerIdentifier;
74 $this->FileName = false;
75 $this->FileHandler = false;
76 $this->Mode = false;
77 $this->IsOpen = false;
78 $this->IsBinary = false;
79 }
80
84 function isOpen()
85 {
86 return $this->IsOpen;
87 }
88
92 function isBinaryMode()
93 {
94 return $this->IsBinary;
95 }
96
100 function filename()
101 {
102 return $this->FileName;
103 }
104
108 function mode()
109 {
110 return $this->Mode;
111 }
112
117 function name()
118 {
119 return $this->Name;
120 }
121
126 function identifier()
127 {
128 return $this->Identifier;
129 }
130
135 static function isAvailable()
136 {
137 return true;
138 }
139
147 static function linkCopy( $sourceFilename, $destinationFilename, $symbolicLink = true )
148 {
149 if ( in_array( eZSys::osType(),
150 array( 'unix', 'linux', 'mac' ) ) )
151 {
152 if ( $symbolicLink )
153 $result = eZFileHandler::symlink( $sourceFilename, $destinationFilename );
154 else
155 $result = eZFileHandler::link( $sourceFilename, $destinationFilename );
156 if ( $result )
157 return $result;
158 return eZFileHandler::copy( $sourceFilename, $destinationFilename );
159 }
160 else
161 {
162 return eZFileHandler::copy( $sourceFilename, $destinationFilename );
163 }
164 }
165
173 static function symlink( $sourceFilename, $destinationFilename )
174 {
175 if ( !file_exists( $sourceFilename ) and
176 !is_link( $sourceFilename ) )
177 {
178 eZDebug::writeError( "Cannot symbolicly link to file $sourceFilename, it does not exist", __METHOD__ );
179 return false;
180 }
181 $isDir = false;
182 if ( is_dir( $destinationFilename ) )
183 {
184 $isDir = true;
185 $dirPosition = strrpos( $sourceFilename, '/' );
186 $filePosition = 0;
187 if ( $dirPosition !== false )
188 $filePosition = $dirPosition + 1;
189 if ( strlen( $destinationFilename ) > 0 and
190 $destinationFilename[strlen( $destinationFilename ) - 1] == '/' )
191 $destinationFilename .= substr( $sourceFilename, $filePosition );
192 else
193 $destinationFilename .= '/' . substr( $sourceFilename, $filePosition );
194 }
195 $destinationFilename = preg_replace( "#/+#", '/', $destinationFilename );
196 $sourceDir = $sourceFilename;
197 $sourceName = false;
198 $sourceDirPos = strrpos( $sourceDir, '/' );
199 if ( $sourceDirPos !== false )
200 {
201 $sourceName = substr( $sourceDir, $sourceDirPos + 1 );
202 $sourceDir = substr( $sourceDir, 0, $sourceDirPos );
203 }
204 $commonOffset = 0;
205 for ( $i = 0; $i < strlen( $sourceFilename ) and $i < strlen( $sourceDir ); ++$i )
206 {
207 if ( $sourceFilename[$i] != $sourceDir[$i] )
208 break;
209 $commonOffset = $i;
210 }
211 if ( $commonOffset > 0 )
212 $sourceDir = substr( $sourceDir, $commonOffset + 1 );
213 $directoryCount = substr_count( $sourceDir, '/' );
214 $cdupText = str_repeat( '../', $directoryCount );
215 if ( file_exists( $destinationFilename ) and
216 !is_dir( $destinationFilename ) )
217 {
218 if ( !@unlink( $destinationFilename ) )
219 {
220 eZDebug::writeError( "Cannot symbolicly link to file $sourceFilename on destination $destinationFilename, destination file cannot be removed", __METHOD__ );
221 return false;
222 }
223 }
224 if ( $sourceDir )
225 $sourceDir = $sourceDir . '/' . $sourceName;
226 else
227 $sourceDir = $sourceName;
228 if ( symlink( $cdupText . $sourceDir, $destinationFilename ) )
229 {
230 return true;
231 }
232 eZDebug::writeError( "Failed to symbolicly link to $sourceFilename on destination $destinationFilename", __METHOD__ );
233 return false;
234 }
235
243 static function link( $sourceFilename, $destinationFilename )
244 {
245 if ( !file_exists( $sourceFilename ) and
246 !is_link( $sourceFilename ) )
247 {
248 eZDebug::writeError( "Cannot link to file $sourceFilename, it does not exist", __METHOD__ );
249 return false;
250 }
251 $isDir = false;
252 if ( is_dir( $destinationFilename ) )
253 {
254 $isDir = true;
255 $dirPosition = strrpos( $sourceFilename, '/' );
256 $filePosition = 0;
257 if ( $dirPosition !== false )
258 $filePosition = $dirPosition + 1;
259 if ( strlen( $destinationFilename ) > 0 and
260 $destinationFilename[strlen( $destinationFilename ) - 1] == '/' )
261 $destinationFilename .= substr( $sourceFilename, $filePosition );
262 else
263 $destinationFilename .= '/' . substr( $sourceFilename, $filePosition );
264 }
265 $destinationFilename = preg_replace( "#/+#", '/', $destinationFilename );
266 if ( file_exists( $destinationFilename ) and
267 !is_dir( $destinationFilename ) )
268 {
269 if ( !@unlink( $destinationFilename ) )
270 {
271 eZDebug::writeError( "Cannot link to file $sourceFilename on destination $destinationFilename, destination file cannot be removed", __METHOD__ );
272 return false;
273 }
274 }
275 if ( link( $sourceFilename, $destinationFilename ) )
276 {
277 return true;
278 }
279 eZDebug::writeError( "Failed to link to $sourceFilename on destination $destinationFilename", __METHOD__ );
280 return false;
281 }
282
289 static function move( $sourceFilename, $destinationFilename )
290 {
291 if ( !file_exists( $sourceFilename ) and
292 !is_link( $sourceFilename ) )
293 {
294 eZDebug::writeError( "Cannot rename file $sourceFilename, it does not exist", __METHOD__ );
295 return false;
296 }
297 $isDir = false;
298 if ( is_dir( $destinationFilename ) )
299 {
300 $isDir = true;
301 $dirPosition = strrpos( $sourceFilename, '/' );
302 $filePosition = 0;
303 if ( $dirPosition !== false )
304 $filePosition = $dirPosition + 1;
305 if ( strlen( $destinationFilename ) > 0 and
306 $destinationFilename[strlen( $destinationFilename ) - 1] == '/' )
307 $destinationFilename .= substr( $sourceFilename, $filePosition );
308 else
309 $destinationFilename .= '/' . substr( $sourceFilename, $filePosition );
310 }
311
312
313 // If source and destination are the same files we just return true
314 if ( $sourceFilename == $destinationFilename )
315 {
316 return true;
317 }
318
319 if ( file_exists( $destinationFilename ) and
320 !is_dir( $destinationFilename ) )
321 {
322 if ( !@unlink( $destinationFilename ) )
323 {
324 eZDebug::writeError( "Cannot move file $sourceFilename to destination $destinationFilename, destination file cannot be removed", __METHOD__ );
325 return false;
326 }
327 }
328 $isLink = false;
329 if ( is_link( $sourceFilename ) )
330 {
331 $isLink = true;
332 }
333 if ( !$isLink and
334 eZFile::rename( $sourceFilename, $destinationFilename ) )
335 {
336 return true;
337 }
338 if ( eZFileHandler::copy( $sourceFilename, $destinationFilename ) )
339 {
340 if ( !@unlink( $sourceFilename ) )
341 {
342 eZDebug::writeError( "Cannot remove source file $sourceFilename, file was not succesfully moved", __METHOD__ );
343 @unlink( $destinationFilename );
344 return false;
345 }
346 return true;
347 }
348 eZDebug::writeError( "Failed to copy $sourceFilename to $destinationFilename, file was not succesfully moved", __METHOD__ );
349 return false;
350 }
351
356 static function copy( $sourceFilename, $destinationFilename )
357 {
358 if ( is_dir( $sourceFilename ) )
359 {
360 eZDebug::writeError( "Unable to copy directory $sourceFilename, use eZDir::copy instead", __METHOD__ );
361 return false;
362 }
363 $sourceFD = @fopen( $sourceFilename, 'rb' );
364 if ( !$sourceFD )
365 {
366 eZDebug::writeError( "Unable to open source file $sourceFilename in read mode", __METHOD__ );
367 return false;
368 }
369 if ( is_dir( $destinationFilename ) )
370 {
371 $dirPosition = strrpos( $sourceFilename, '/' );
372 $filePosition = 0;
373 if ( $dirPosition !== false )
374 $filePosition = $dirPosition + 1;
375 if ( strlen( $destinationFilename ) > 0 and
376 $destinationFilename[strlen( $destinationFilename ) - 1] == '/' )
377 $destinationFilename .= substr( $sourceFilename, $filePosition );
378 else
379 $destinationFilename .= '/' . substr( $sourceFilename, $filePosition );
380 }
381
382 // If source and destination are the same files we just return true
383 if ( $sourceFilename == $destinationFilename )
384 {
385 @fclose( $sourceFD );
386 return true;
387 }
388
389 $destinationFD = fopen( $destinationFilename, 'wb' );
390 chmod( $destinationFilename, octdec( eZINI::instance()->variable( 'FileSettings', 'StorageFilePermissions' ) ) );
391 if ( !$destinationFD )
392 {
393 @fclose( $sourceFD );
394 eZDebug::writeError( "Unable to open destination file $destinationFilename in write mode", __METHOD__ );
395 return false;
396 }
397 $bytesCopied = 0;
398 do
399 {
400 $data = fread( $sourceFD, 4096 );
401 if ( strlen( $data ) == 0 )
402 break;
403 fwrite( $destinationFD, $data );
404 $bytesCopied += strlen( $data );
405 } while( true );
406
407 @fclose( $sourceFD );
408 @fclose( $destinationFD );
409 return true;
410 }
411
416 function exists( $filename = false )
417 {
418 if ( !$filename )
419 $filename = $this->FileName;
420 return $this->doExists( $filename );
421 }
422
426 function isDirectory( $filename = false )
427 {
428 if ( !$filename )
429 $filename = $this->FileName;
430 return $this->doIsDirectory( $filename );
431 }
432
436 function isExecutable( $filename = false )
437 {
438 if ( !$filename )
439 $filename = $this->FileName;
440 return $this->doIsExecutable( $filename );
441 }
442
446 function isFile( $filename = false )
447 {
448 if ( !$filename )
449 $filename = $this->FileName;
450 return $this->doIsFile( $filename );
451 }
452
456 function isLink( $filename = false )
457 {
458 if ( !$filename )
459 $filename = $this->FileName;
460 return $this->doIsLink( $filename );
461 }
462
466 function isReadable( $filename = false )
467 {
468 if ( !$filename )
469 $filename = $this->FileName;
470 return $this->doIsReadable( $filename );
471 }
472
476 function isWriteable( $filename = false )
477 {
478 if ( !$filename )
479 $filename = $this->FileName;
480 return $this->doIsWriteable( $filename );
481 }
482
486 function statistics( $filename = false )
487 {
488 if ( !$filename )
489 $filename = $this->FileName;
490 return $this->doStatistics( $filename );
491 }
492
502 function open( $filename, $mode, $binaryFile = true )
503 {
504 if ( $this->isOpen() )
505 {
506 eZDebug::writeError( "A file is already open (" . $this->FileName . "), close the file before opening a new one.",
507 'eZFileHandler::open' );
508 return false;
509 }
510 if ( !$filename and
511 !$this->FileName )
512 {
513 eZDebug::writeError( "The supplied filename is empty and no filename set for object, cannot open any file", __METHOD__ );
514 return false;
515 }
516 if ( !$filename )
517 $filename = $this->FileName;
518 if ( !$mode )
519 $mode = 'r';
520 if ( strpos( $mode, 'b' ) !== false )
521 $binaryFile = true;
522 $mode = str_replace( 'b', '', $mode );
523 if ( $binaryFile )
524 $mode .= 'b';
525 $this->IsBinary = $binaryFile;
526 $result = $this->doOpen( $filename, $mode );
527 if ( $result )
528 {
529 // eZDebugSetting::writeNotice( 'lib-ezfile-openclose',
530 // "Opened file $filename with mode '$mode'",
531 // 'eZFileHandler::open' );
532 $this->FileName = $filename;
533 $this->Mode = $mode;
534 $this->IsOpen = true;
535 }
536 else
537 eZDebug::writeError( "Failed opening file $filename with mode $mode", __METHOD__ );
538 return $result;
539 }
540
544 function close()
545 {
546 if ( !$this->isOpen() )
547 {
548 eZDebug::writeError( "A file is not currently opened, cannot close.", __METHOD__ );
549 return false;
550 }
551 // eZDebugSetting::writeNotice( 'lib-ezfile-openclose',
552 // "Closing file " . $this->filename() . " with previously opened mode '" . $this->mode() . "'",
553 // 'eZFileHandler::close' );
554 $result = $this->doClose();
555 if ( !$result )
556 eZDebug::writeError( "Failed closing file " . $this->FileName . " opened with mode " . $this->Mode, __METHOD__ );
557 else
558 $this->IsOpen = false;
559 return $result;
560 }
561
565 function unlink( $filename = false )
566 {
567 if ( !$filename )
568 {
569 if ( $this->isOpen() )
570 $this->close();
571 $filename = $this->FileName;
572 }
573 $result = eZFileHandler::doUnlink( $filename );
574 if ( !$result )
575 eZDebug::writeError( "Failed unlinking file " . $filename, __METHOD__ );
576 return $result;
577 }
578
585 function rename( $destinationFilename, $sourceFilename = false )
586 {
587 if ( !$sourceFilename )
588 {
589 $wasOpen = $this->isOpen();
590 if ( $wasOpen )
591 $this->close();
592 $result = $this->doRename( $destinationFilename, $this->filename() );
593 if ( $wasOpen and
594 $result )
595 $this->open( $destinationFilename, $this->mode() );
596 }
597 else
598 $result = $this->doRename( $destinationFilename, $sourceFilename );
599 return $result;
600 }
601
609 function read( $length = false )
610 {
611 if ( !$this->isOpen() )
612 {
613 eZDebug::writeError( "A file is not currently opened, cannot read.", __METHOD__ );
614 return false;
615 }
616 if ( $length < 0 )
617 {
618 eZDebug::writeError( "length cannot be negative ($length)", __METHOD__ );
619 return false;
620 }
621 if ( $length )
622 {
623 return $this->doRead( $length );
624 }
625 else
626 {
627 $string = '';
628 $data = false;
629 do
630 {
631 $data = $this->doRead( 1024 );
632 if ( $data )
633 $string .= $data;
634 } while( $data );
635 return $string;
636 }
637 }
638
645 function write( $data, $length = false )
646 {
647 if ( !$this->isOpen() )
648 {
649 eZDebug::writeError( "A file is not currently opened, cannot write.", __METHOD__ );
650 return false;
651 }
652 if ( $length < 0 )
653 {
654 eZDebug::writeError( "length cannot be negative ($length)", __METHOD__ );
655 return false;
656 }
657 return $this->doWrite( $data, $length );
658 }
659
664 function flush()
665 {
666 if ( !$this->isOpen() )
667 {
668 eZDebug::writeError( "A file is not currently opened, cannot flush.", __METHOD__ );
669 return false;
670 }
671 return $this->doFlush();
672 }
673
683 function seek( $offset, $whence = SEEK_SET )
684 {
685 if ( !$this->isOpen() )
686 {
687 eZDebug::writeError( "A file is not currently opened, cannot seek.", __METHOD__ );
688 return false;
689 }
690 return $this->doSeek( $offset, $whence );
691 }
692
697 function rewind()
698 {
699 if ( !$this->isOpen() )
700 {
701 eZDebug::writeError( "A file is not currently opened, cannot rewind.", __METHOD__ );
702 return false;
703 }
704 return $this->doRewind();
705 }
706
711 function tell()
712 {
713 if ( !$this->isOpen() )
714 {
715 eZDebug::writeError( "A file is not currently opened, cannot tell position.", __METHOD__ );
716 return false;
717 }
718 return $this->doTell();
719 }
720
724 function eof()
725 {
726 if ( !$this->isOpen() )
727 {
728 eZDebug::writeError( "A file is not currently opened, cannot report EOF status.", __METHOD__ );
729 return false;
730 }
731 return $this->doEOF();
732 }
733
739 function passtrough( $closeFile = true )
740 {
741 if ( !$this->isOpen() )
742 {
743 eZDebug::writeError( "A file is not currently opened, cannot do a data passtrough.", __METHOD__ );
744 return false;
745 }
746 return $this->doPasstrough( $closeFile );
747 }
748
754 function doOpen( $filename, $mode )
755 {
756 $this->FileHandler = @fopen( $filename, $mode );
757 return $this->FileHandler;
758 }
759
765 function doClose()
766 {
767 $result = @fclose( $this->FileHandler );
768 $this->FileHandler = false;
769 return $result;
770 }
771
777 static function doUnlink( $filename )
778 {
779 return @unlink( $filename );
780 }
781
787 static function doExists( $filename )
788 {
789 return file_exists( $filename );
790 }
791
797 static function doIsDirectory( $filename )
798 {
799 return is_dir( $filename );
800 }
801
807 static function doIsExecutable( $filename )
808 {
809 return is_executable( $filename );
810 }
811
817 static function doIsFile( $filename )
818 {
819 return is_file( $filename );
820 }
821
827 static function doIsLink( $filename )
828 {
829 return is_link( $filename );
830 }
831
837 static function doIsReadable( $filename )
838 {
839 return is_readable( $filename );
840 }
841
847 static function doIsWriteable( $filename )
848 {
849 return is_writable( $filename );
850 }
851
857 static function doStatistics( $filename )
858 {
859 return @stat( $filename );
860 }
861
867 function doSeek( $offset, $whence )
868 {
869 return @fseek( $this->FileHandler, $offset, $whence );
870 }
871
877 function doRewind()
878 {
879 $this->doSeek( 0, SEEK_SET );
880 }
881
887 function doTell()
888 {
889 return @ftell( $this->FileHandler );
890 }
891
897 function doEOF()
898 {
899 return @feof( $this->FileHandler );
900 }
901
907 function doPasstrough( $closeFile = true )
908 {
909 $result = @fpassthru( $this->FileHandler );
910 if ( $closeFile )
911 {
912 @fclose( $this->FileHandler );
913 $this->FileHandler = false;
914 }
915 }
916
922 function doRead( $length = false )
923 {
924 return @fread( $this->FileHandler, $length );
925 }
926
932 function doWrite( $data, $length = false )
933 {
934 if ( $length === false )
935 return @fwrite( $this->FileHandler, $data );
936 else
937 return @fwrite( $this->FileHandler, $data, $length );
938 }
939
945 function doFlush()
946 {
947 return @fflush( $this->FileHandler );
948 }
949
955 static function doRename( $destinationFilename, $sourceFilename )
956 {
957 return eZFile::rename( $sourceFilename, $destinationFilename );
958 }
959
966 function error()
967 {
968 return array( 'string' => $this->errorString(),
969 'number' => $this->errorNumber() );
970 }
971
976 function errorString()
977 {
978 return false;
979 }
980
985 function errorNumber()
986 {
987 return false;
988 }
989
994 function duplicate()
995 {
996 $copy = clone $this;
997 return $copy;
998 }
999
1017 static function instance( $identifier, $filename = false, $mode = false, $binaryFile = true )
1018 {
1019 $ini = eZINI::instance( 'file.ini' );
1020 $handlers = $ini->variable( 'FileSettings', 'Handlers' );
1021 $instance = false;
1022 if ( !$identifier )
1023 {
1024 $instance = new eZFileHandler();
1025 }
1026 else if ( isset( $handlers[$identifier] ) )
1027 {
1028 $className = $handlers[$identifier];
1029 $includeFile = 'lib/ezfile/classes/' . $className . '.php';
1030 include_once( $includeFile );
1031 $instance = new $className();
1032 if ( $instance->isAvailable() )
1033 {
1034 if ( $filename )
1035 $instance->open( $filename, $mode, $binaryFile );
1036 }
1037 else
1038 {
1039 unset( $instance );
1040 $instance = false;
1041 }
1042 }
1043 return $instance;
1044 }
1045
1047 public $Name;
1048 public $FileName;
1049 public $Mode;
1050 public $IsBinary;
1051 public $IsOpen;
1052 }
1053
1054 ?>
eZDebug\writeError
static writeError( $string, $label="", $backgroundClass="")
Definition: ezdebug.php:545
eZFileHandler
Interface for file handlers.
Definition: ezfilehandler.php:56
eZFileHandler\doRead
doRead( $length=false)
Definition: ezfilehandler.php:922
eZFileHandler\symlink
static symlink( $sourceFilename, $destinationFilename)
Definition: ezfilehandler.php:173
eZFileHandler\passtrough
passtrough( $closeFile=true)
Definition: ezfilehandler.php:739
eZFileHandler\doExists
static doExists( $filename)
Definition: ezfilehandler.php:787
eZFileHandler\isExecutable
isExecutable( $filename=false)
Definition: ezfilehandler.php:436
eZFileHandler\doRewind
doRewind()
Definition: ezfilehandler.php:877
eZFileHandler\$FileHandler
$FileHandler
Definition: ezfilehandler.php:58
eZFileHandler\$IsOpen
$IsOpen
Definition: ezfilehandler.php:1051
eZFileHandler\$Name
$Name
Definition: ezfilehandler.php:1047
eZFileHandler\flush
flush()
Definition: ezfilehandler.php:664
eZFileHandler\isWriteable
isWriteable( $filename=false)
Definition: ezfilehandler.php:476
eZFileHandler\__construct
__construct( $handlerIdentifier=false, $handlerName=false)
Definition: ezfilehandler.php:65
eZFileHandler\isOpen
isOpen()
Definition: ezfilehandler.php:84
eZFileHandler\rewind
rewind()
Definition: ezfilehandler.php:697
eZFileHandler\doStatistics
static doStatistics( $filename)
Definition: ezfilehandler.php:857
eZFileHandler\mode
mode()
Definition: ezfilehandler.php:108
eZFileHandler\duplicate
duplicate()
Definition: ezfilehandler.php:994
eZFileHandler\errorString
errorString()
Definition: ezfilehandler.php:976
eZFileHandler\doClose
doClose()
Definition: ezfilehandler.php:765
eZFileHandler\doEOF
doEOF()
Definition: ezfilehandler.php:897
eZFileHandler\linkCopy
static linkCopy( $sourceFilename, $destinationFilename, $symbolicLink=true)
Definition: ezfilehandler.php:147
eZFileHandler\doRename
static doRename( $destinationFilename, $sourceFilename)
Definition: ezfilehandler.php:955
eZFileHandler\doWrite
doWrite( $data, $length=false)
Definition: ezfilehandler.php:932
eZFileHandler\name
name()
Definition: ezfilehandler.php:117
eZFileHandler\instance
static instance( $identifier, $filename=false, $mode=false, $binaryFile=true)
Definition: ezfilehandler.php:1017
eZFileHandler\copy
static copy( $sourceFilename, $destinationFilename)
Definition: ezfilehandler.php:356
eZFileHandler\tell
tell()
Definition: ezfilehandler.php:711
eZFileHandler\move
static move( $sourceFilename, $destinationFilename)
Definition: ezfilehandler.php:289
eZFileHandler\$FileName
$FileName
Definition: ezfilehandler.php:1048
eZFileHandler\seek
seek( $offset, $whence=SEEK_SET)
Definition: ezfilehandler.php:683
eZFileHandler\$IsBinary
$IsBinary
Definition: ezfilehandler.php:1050
eZFileHandler\open
open( $filename, $mode, $binaryFile=true)
Definition: ezfilehandler.php:502
eZFileHandler\close
close()
Definition: ezfilehandler.php:544
eZFileHandler\doSeek
doSeek( $offset, $whence)
Definition: ezfilehandler.php:867
eZFileHandler\isBinaryMode
isBinaryMode()
Definition: ezfilehandler.php:92
eZFileHandler\doOpen
doOpen( $filename, $mode)
Definition: ezfilehandler.php:754
eZFileHandler\link
static link( $sourceFilename, $destinationFilename)
Definition: ezfilehandler.php:243
eZFileHandler\doFlush
doFlush()
Definition: ezfilehandler.php:945
eZFileHandler\eof
eof()
Definition: ezfilehandler.php:724
eZFileHandler\doIsExecutable
static doIsExecutable( $filename)
Definition: ezfilehandler.php:807
eZFileHandler\error
error()
Definition: ezfilehandler.php:966
eZFileHandler\statistics
statistics( $filename=false)
Definition: ezfilehandler.php:486
eZFileHandler\doPasstrough
doPasstrough( $closeFile=true)
Definition: ezfilehandler.php:907
eZFileHandler\doIsFile
static doIsFile( $filename)
Definition: ezfilehandler.php:817
eZFileHandler\$Mode
$Mode
Definition: ezfilehandler.php:1049
eZFileHandler\doIsReadable
static doIsReadable( $filename)
Definition: ezfilehandler.php:837
eZFileHandler\errorNumber
errorNumber()
Definition: ezfilehandler.php:985
eZFileHandler\isAvailable
static isAvailable()
Definition: ezfilehandler.php:135
eZFileHandler\isFile
isFile( $filename=false)
Definition: ezfilehandler.php:446
eZFileHandler\unlink
unlink( $filename=false)
Definition: ezfilehandler.php:565
eZFileHandler\exists
exists( $filename=false)
Definition: ezfilehandler.php:416
eZFileHandler\isDirectory
isDirectory( $filename=false)
Definition: ezfilehandler.php:426
eZFileHandler\doIsDirectory
static doIsDirectory( $filename)
Definition: ezfilehandler.php:797
eZFileHandler\filename
filename()
Definition: ezfilehandler.php:100
eZFileHandler\identifier
identifier()
Definition: ezfilehandler.php:126
eZFileHandler\doIsLink
static doIsLink( $filename)
Definition: ezfilehandler.php:827
eZFileHandler\rename
rename( $destinationFilename, $sourceFilename=false)
Definition: ezfilehandler.php:585
eZFileHandler\isReadable
isReadable( $filename=false)
Definition: ezfilehandler.php:466
eZFileHandler\doIsWriteable
static doIsWriteable( $filename)
Definition: ezfilehandler.php:847
eZFileHandler\doUnlink
static doUnlink( $filename)
Definition: ezfilehandler.php:777
eZFileHandler\$Identifier
$Identifier
Definition: ezfilehandler.php:57
eZFileHandler\read
read( $length=false)
Definition: ezfilehandler.php:609
eZFileHandler\doTell
doTell()
Definition: ezfilehandler.php:887
eZFileHandler\write
write( $data, $length=false)
Definition: ezfilehandler.php:645
eZFileHandler\isLink
isLink( $filename=false)
Definition: ezfilehandler.php:456
eZFile\rename
static rename( $srcFile, $destFile, $mkdir=false, $flags=0)
Definition: ezfile.php:152
eZSys\osType
static osType()
Definition: ezsys.php:221
Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.