Documentation

pm_FileManager_Action
in package
implements pm_Hook_Interface

Content action for FileManager

Tags
since
11.5

Interfaces, Classes and Traits

pm_Hook_Interface
Generic interface for hooks

Table of Contents

$_item  : array<string|int, mixed>
File or directory item
getHref()  : string
Retrieve URL for action
getName()  : string
Retrieve name for action
getTitle()  : string
Retrieve title for action
isActive()  : bool
Checks if action is available for a file
isDefault()  : bool
Checks if action is default for a file
lmsg()  : string
Retrieve translated message from locale file

Properties

$_item

File or directory item

protected array<string|int, mixed> $_item = []
[
    'name' => 'hello.txt',
    'modificationTimestamp' => '1380276799',
    'modificationDate' => 'Sep 27, 2013 05:13 PM',
    'size' => '8192',
    'formatedSize' => '8.0 KB',
    'user' => 'user_ifvbjsgcdk',
    'group' => 'psacln',
    'filePerms' => 'rw- r-- r-- ',
    'isDirectory' => false,
    'icon' => '/theme/icons/16/plesk/file-txt.png',
    'isReadonly' => false,
    'currentDir' => '/httpdocs',
]

Methods

getHref()

Retrieve URL for action

public getHref() : string
Return values
string

getName()

Retrieve name for action

public getName() : string
Return values
string

getTitle()

Retrieve title for action

public getTitle() : string
Return values
string

isActive()

Checks if action is available for a file

public isActive() : bool
Return values
bool

isDefault()

Checks if action is default for a file

public isDefault() : bool
Return values
bool

lmsg()

Retrieve translated message from locale file

public lmsg(string $key[, array<string|int, mixed> $params = [] ]) : string
Parameters
$key : string
$params : array<string|int, mixed> = []
Return values
string

Search results