\TriTan\Common\PluginPluginFile

Summary

Methods
Properties
Constants
__construct()
basename()
path()
$file
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$file

$file : 

Type

Methods

basename()

basename(string  $filename) : string

Plugin Basename

The method extracts the file name of a specific plugin.

Parameters

string $filename

Plugin's file name.

Returns

string —

The file name of the plugin.

path()

path(string  $filename) : string

Get the filesystem directory path (with trailing slash) for the plugin __FILE__ passed in.

Parameters

string $filename

The filename of the plugin (FILE).

Returns

string —

The filesystem path of the directory that contains the plugin.