Class

FileSystemElement

Abstract Package: IO\Filesystem Copyright: © 2005-2019 PHPBoost License: GNU/GPL-3.0 Author: Nicolas Duhamel akhenathon2@gmail.com Version: PHPBoost 5.2 - last update: 2018 11 07 Since: PHPBoost 2.0 - 2008 07 06 Contributor: Loic ROUCHON horn@phpboost.com Contributor: Julien BRISWALTER j1.seth@phpboost.com Contributor: Arnaud GENET elenwii@phpboost.com Contributor: ph-7 me@ph7.me Located at: io/filesystem/FileSystemElement.class.php

This class represents any file system element.

Direct known subclasses
File, Folder, Image
Methods summary
protected
# __construct( string $path )

Builds a FileSystemElement object from the path of the element.

public boolean
# exists( )

Allows you to know if the file system element exists.

public string
# get_path( )

Returns the element full path.

public string
# get_path_from_root( )

Returns the element path from the phpboost root.

public string
# get_name( )

Returns the element name.

public true
# is_writable( boolean $force_chmod = false )

Returns true if the file or the folder is writable.

public true
# change_chmod( integer $chmod )

Changes the chmod of the element.

abstract public
# delete( )
Properties summary
protected string $path

Path of the file system element

#
Annonces