Link
extends File
in package
Class \Hoa\File\Link.
Link handler.
Tags
Table of Contents
Methods
- __construct() : mixed
- Open a link.
- changeGroup() : bool
- Change file group.
- changeOwner() : bool
- Change file owner.
- create() : bool
- Create a link.
- getPermissions() : int
- Get file permissions.
- getStatistic() : array<string|int, mixed>
- Get informations about a link.
- getTarget() : Generic
- Get the target of a symbolic link.
- getTargetName() : string
- Get the target name of a symbolic link.
Methods
__construct()
Open a link.
public
__construct(string $streamName, string $mode[, string $context = null ][, bool $wait = false ]) : mixed
Parameters
- $streamName : string
-
Stream name.
- $mode : string
-
Open mode, see the parent::MODE_* constants.
- $context : string = null
-
Context ID (please, see the \Hoa\Stream\Context class).
- $wait : bool = false
-
Differ opening or not.
Tags
changeGroup()
Change file group.
public
changeGroup(mixed $group) : bool
Parameters
- $group : mixed
-
Group name or number.
Return values
boolchangeOwner()
Change file owner.
public
changeOwner(mixed $user) : bool
Parameters
- $user : mixed
-
User.
Return values
boolcreate()
Create a link.
public
static create(string $name, string $target) : bool
Parameters
- $name : string
-
Link name.
- $target : string
-
Target name.
Return values
boolgetPermissions()
Get file permissions.
public
getPermissions() : int
Return values
intgetStatistic()
Get informations about a link.
public
getStatistic() : array<string|int, mixed>
Return values
array<string|int, mixed>getTarget()
Get the target of a symbolic link.
public
getTarget() : Generic
Tags
Return values
GenericgetTargetName()
Get the target name of a symbolic link.
public
getTargetName() : string