Documentation

Attributes
in package

File system attributes.

Represents attributes of the file system.

Table of Contents

Properties

$created  : int
$hidden  : int
$lastaccess  : int
$modified  : int
$readonly  : int
$attributes  : array<string|int, mixed>
The list of attributes.
$source  : File|Directory|null
The source file or directory.

Methods

__construct()  : mixed
Constructor.
__get()  : mixed
Getter.
__set()  : void
Setter.
update()  : void
Updates the value of the attribute.

Properties

$created

public int $created

The creation date of the file.

$hidden

public int $hidden

Indicates if the file is hidden.

$lastaccess

public int $lastaccess

The last access date of the file.

$modified

public int $modified

The last modification date of the file.

$readonly

public int $readonly

Indicates if the file is read-only.

$attributes

The list of attributes.

protected array<string|int, mixed> $attributes = array()

Methods

__get()

Getter.

public __get(string $property) : mixed
Parameters
$property : string

The property name.

__set()

Setter.

public __set(string $property, mixed $value) : void
Parameters
$property : string

The property name.

$value : mixed

The property value.

update()

Updates the value of the attribute.

private update(string $property, mixed $value) : void
Parameters
$property : string

The property name.

$value : mixed

The new value.


        
On this page

Search results