class Preference

Read and write site preferences to the database.

Methods

__construct(Database $database, CriteriaFactory $criteriaFactory, Preference $preference, Cache $cache)

Constructor.

bool
update()

Update site preferences.

preference()

Return instance of the site preferences class.

Details

at line 46
__construct(Database $database, CriteriaFactory $criteriaFactory, Preference $preference, Cache $cache)

Constructor.

Parameters

Database $database Instance of the Tuskfish database class.
CriteriaFactory $criteriaFactory Instance of the criteria factory class.
Preference $preference Instance of the Tuskfish site preferences class.
Cache $cache Instance of the Tuskfish cache class.

at line 66
bool update()

Update site preferences.

Return Value

bool True on success, false on failure.

at line 109
Preference preference()

Return instance of the site preferences class.

Return Value

Preference