Tuskfish API V1.1.1
  • Package
  • Class

Packages

  • content
  • core
  • database
  • installation
  • security
  • user
  • utilities

Classes

  • someClass
  • someClassHandler
  • TfCache
  • TfFileHandler
  • TfLogger
  • TfPreference
  • TfPreferenceHandler
  • TfTree

Traits

  • TfLanguage
  • TfMagicMethods
  • TfMimetypes

Functions

  • checkPasswordStrength
  • hashPassword
  • tf_autoload
  • tfContentModuleAutoload
  • tfSomeModuleAutoload

Class TfPreferenceHandler

Read and write site preferences to the database.

Package: core
Copyright: Simon Wilkinson 2013+ (https://tuskfish.biz)
License: GNU General Public License (GPL) V2
Author: Simon Wilkinson simon@isengard.biz
Version: Release: 1.0
Since: 1.1
Var: TfDatabase $db Instance of the Tuskfish database class.
Located at trust_path/libraries/tuskfish/class/TfPreferenceHandler.php

Methods summary

public
# __construct( TfDatabase $db )

Constructor.

Constructor.

Parameters

$db
Instance of the database class.
public array
# readPreferencesFromDatabase( )

Read out the site preferences into an array.

Read out the site preferences into an array.

Returns

array
Array of site preferences.
public boolean
# writePreferences( TfPreference $preference )

Updates the site preferences in the database.

Updates the site preferences in the database.

Parameters

$preference
Instance of the Tuskfish site preference class.

Returns

boolean
True on success false on failure.

Properties summary

protected $db
#
Tuskfish API V1.1.1 API documentation generated by ApiGen