/CORE/system/classes/util/IOHelper.php

Description

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 helper methods for Filesystem IO.
Functions
copyFile (line 156)

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

  • return: TRUE if the Copy Command processed successful, otherwise FALSE
boolean copyFile ( $from,  $to, [ $rights = ''])
  • $from
  • $to
  • $rights
createDirectory (line 67)
void createDirectory ( $name, [ $rights = 0], [ $mask = _BIGACE_DEFAULT_UMASK_DIRECTORY])
  • $name
  • $rights
  • $mask
getFileExtension (line 83)

Returns the File Extension excluding the Dot Separator "."

void getFileExtension ( $filename)
  • $filename
getFilesFromDirectory (line 133)

Returns an Array of all Files from a given Directory with the defined File Extension.

If no File Extension is given we return all found Files. If the Last parameter is set, we return the full Filename including the Directory, otherwise we return only the File name itself.

void getFilesFromDirectory ( $directory, [ $fileExtension = ''], [ $includeDir = true])
  • $directory
  • $fileExtension
  • $includeDir
getNameWithoutExtension (line 95)

Returns File Name without Extension.

void getNameWithoutExtension ( $filename)
  • $filename
splitDirectoryName (line 107)

Splits a Directory Name by the Delimitier /.

void splitDirectoryName ( $filename, [ $count = 0])
  • $filename
  • $count
stripFileExtension (line 121)

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

void stripFileExtension ( $filename)
  • $filename

Documentation generated by phpDocumentor 1.3.1