Procedural File: IOHelper.php

Source Location: /CORE/system/classes/util/IOHelper.php

Page Details

BIGACE - a PHP and MySQL based Web CMS.

Copyright (C) Kevin Papst.

BIGACE is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

BIGACE is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

For further information visit http://www.bigace.de.

Classes
Class Description
IOHelper This class provides static helper methods for Filesystem IO.
Functions
copyFile  [line 212]

boolean copyFile( $from, $to, [ $rights = '']  )

Copies a File. Tries to set the correct Rights and Owner.

Parameters:
   $from: 
   $to: 
   $rights: 

API Tags:
Return:  TRUE if the Copy Command processed successful, otherwise FALSE


[ Top ]
createDirectory  [line 148]

void createDirectory( $name, [ $rights = 0], [ $mask = _BIGACE_DEFAULT_UMASK_DIRECTORY]  )
Parameters:
   $name: 
   $rights: 
   $mask: 


[ Top ]
getFileExtension  [line 164]

void getFileExtension( $filename  )

Returns the File Extension excluding the Dot Separator "."

Parameters:
   $filename: 


[ Top ]
getNameWithoutExtension  [line 176]

void getNameWithoutExtension( $filename  )

Returns File Name without Extension.

Parameters:
   $filename: 


[ Top ]
splitDirectoryName  [line 187]

void splitDirectoryName( $filename, [ $count = 0]  )

Splits a Directory Name by the Delimitier /.

Parameters:
   $filename: 
   $count: 


[ Top ]
stripFileExtension  [line 201]

void stripFileExtension( $filename  )

Returns the Filename without the File Extension, which is identified by the Last Dot (.) separator .

Parameters:
   $filename: 


[ Top ]