Blesta Source Documentation

File

Trait for components handling files

Table of Contents

Properties

$allowed_paths

Methods

addAllowedPath() Adds a new path to the whitelist of allowed paths
getAllowedPaths() Returns an array of all allowed paths
removeAllowedPath() Removes an existing path from the whitelist of allowed paths
setAllowedPaths() Sets an array of paths, as the whitelist of allowed paths
Properties

$allowed_paths

private array<string|int, mixed> $allowed_paths = [CACHEDIR]

A list of directories that are allowed for reading and writing

Methods

addAllowedPath()

Adds a new path to the whitelist of allowed paths

public addAllowedPath(mixed $path) : mixed
Parameters
$path : mixed

getAllowedPaths()

Returns an array of all allowed paths

public getAllowedPaths() : array<string|int, mixed>
Return values
array<string|int, mixed>

removeAllowedPath()

Removes an existing path from the whitelist of allowed paths

public removeAllowedPath(mixed $path) : mixed
Parameters
$path : mixed

setAllowedPaths()

Sets an array of paths, as the whitelist of allowed paths

public setAllowedPaths(array<string|int, mixed> $paths) : mixed
Parameters
$paths : array<string|int, mixed>
Tags
subpackage

core.Util.Components

copyright

Copyright (c) 2024, Phillips Data, Inc.

license

http://www.blesta.com/license/ The Blesta License Agreement

link

Blesta


        
On this page

Search results