Squiz Matrix  4.12.2
 All Data Structures Namespaces Functions Variables Pages
File_Prefs Class Reference
Inheritance diagram for File_Prefs:
Prefs MySource_Object

Public Member Functions

 File_Prefs ($pref_file='')
 
 paintBackend (&$o, $have_lock, $pref=NULL)
 
 processBackend (&$o, $have_lock, $pref=NULL)
 
 _tidyFileTypeString ($str)
 
 mergePrefs ($prefs1, $prefs2)
 
- Public Member Functions inherited from Prefs
 Prefs ($pref_file='')
 
 paintBackend (&$o, $have_lock, $pref=null)
 
 processBackend ($o, $have_lock, $pref=null)
 
 mergePrefs ($prefs1, $prefs2)
 
- Public Member Functions inherited from MySource_Object
 MySource_Object ()
 
 __sleep ()
 
 __wakeup ()
 

Data Fields

 $pref_vars
 
- Data Fields inherited from Prefs
 $pref_vars = Array()
 
 $pref_file = ''
 
- Data Fields inherited from MySource_Object
 $_tmp
 

Detailed Description

Definition at line 31 of file file_prefs.inc.

Member Function Documentation

_tidyFileTypeString (   $str)

Clean up the user input string for file types

Never trust user input, let's get our hands dirty here.

Parameters
string$strinput string
Returns
string private

Definition at line 370 of file file_prefs.inc.

File_Prefs (   $pref_file = '')

Constructor

Definition at line 79 of file file_prefs.inc.

mergePrefs (   $prefs1,
  $prefs2 
)

Merges two preference arrays for a content type

Parameters
array$prefs1array of preferences to merge
array$prefs2array of preferences to merge
Returns
array public

Definition at line 408 of file file_prefs.inc.

paintBackend ( $o,
  $have_lock,
  $pref = NULL 
)

Paints the backend interface to edit preferences

Parameters
object&$oreference to the Backend Outputter object
boolean$have_lockdo we have the lock to edit these preferences or not
string$prefa particular preference to paint
Returns
boolean public

Definition at line 96 of file file_prefs.inc.

processBackend ( $o,
  $have_lock,
  $pref = NULL 
)

Processes the backend interface to edit preferences

Parameters
object&$oreference to the Backend Outputter object
boolean$have_lockdo we have the lock to edit these preferences or not
string$prefa particular preference to process
Returns
boolean public

Definition at line 290 of file file_prefs.inc.


The documentation for this class was generated from the following file: