Documentation

Link extends File
in package

Class \Hoa\File\Link.

Link handler.

Tags
copyright

Copyright © 2007-2017 Hoa community

license

New BSD License

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
throws
Exception

changeGroup()

Change file group.

public changeGroup(mixed $group) : bool
Parameters
$group : mixed

Group name or number.

Return values
bool

changeOwner()

Change file owner.

public changeOwner(mixed $user) : bool
Parameters
$user : mixed

User.

Return values
bool

create()

Create a link.

public static create(string $name, string $target) : bool
Parameters
$name : string

Link name.

$target : string

Target name.

Return values
bool

getPermissions()

Get file permissions.

public getPermissions() : int
Return values
int

getStatistic()

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
throws
Exception
Return values
Generic

getTargetName()

Get the target name of a symbolic link.

public getTargetName() : string
Return values
string

        
On this page

Search results