CoolCMS API

FtpFolder
in package

Value object of a folder in the uploads directory. `path` is always relative to the root (`uploads/`); the real server path never leaves the application.

Table of Contents

Properties

$name  : string
$path  : string

Methods

__construct()  : mixed
getName()  : string
getPath()  : string
Path of the folder relative to the uploads root (e.g. `photos/2024`).
setName()  : $this
setPath()  : $this

Properties

Methods

__construct()

public __construct([string $name = '' ][, string $path = '' ]) : mixed
Parameters
$name : string = ''
$path : string = ''

getName()

public getName() : string
Return values
string

getPath()

Path of the folder relative to the uploads root (e.g. `photos/2024`).

public getPath() : string
Return values
string

setName()

public setName(string $name) : $this
Parameters
$name : string
Return values
$this

setPath()

public setPath(string $path) : $this
Parameters
$path : string
Return values
$this
On this page

Search results