\FirefoxProfile

Summary

Methods
Properties
Constants
addExtension()
setPreference()
encode()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
installExtension()
createTempDirectory()
extractTo()
$preferences
$extensions
N/A

Properties

$preferences

$preferences : array

Type

array

$extensions

$extensions : array

Type

array

Methods

addExtension()

addExtension(string  $extension) : \FirefoxProfile

Parameters

string $extension

The path to the xpi extension.

Returns

\FirefoxProfile

setPreference()

setPreference(string  $key, string|boolean|integer  $value) : \FirefoxProfile

Parameters

string $key
string|boolean|integer $value

Returns

\FirefoxProfile

encode()

encode() : string

Returns

string

installExtension()

installExtension(string  $extension, string  $profile_dir) : string

Parameters

string $extension

The path to the extension.

string $profile_dir

The path to the profile directory.

Returns

string —

The path to the directory of this extension.

createTempDirectory()

createTempDirectory(string  $prefix = '') : string

Parameters

string $prefix

Prefix of the temp directory.

Returns

string —

The path to the temp directory created.

extractTo()

extractTo(string  $xpi,   $target_dir) : \FirefoxProfile

Parameters

string $xpi

The path to the .xpi extension.

$target_dir

Returns

\FirefoxProfile