Squiz Matrix  4.12.2
 All Data Structures Namespaces Functions Variables Pages
Prefs Class Reference
Inheritance diagram for Prefs:
MySource_Object Bodycopy_Container_Prefs Calendar_Event_Recurring_Prefs Comment_Prefs Content_Type_Code_Prefs Content_Type_Image_Prefs Content_Type_Markdown_Prefs Content_Type_Raw_HTML_Prefs Content_Type_Snippet_Prefs Content_Type_Structure_Tree_Prefs Content_Type_WYSIWYG_Prefs File_Prefs Inbox_Prefs Search_Manager_Prefs Site_Prefs User_Prefs

Public Member Functions

 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 = Array()
 
 $pref_file = ''
 
- Data Fields inherited from MySource_Object
 $_tmp
 

Detailed Description

Definition at line 29 of file prefs.inc.

Member Function Documentation

mergePrefs (   $prefs1,
  $prefs2 
)

Merges two group-defined preference arrays for a content type

Note that this function is only called if there is a conflict between two groups' preferences. If there is a conflict between a group's prefs and the global prefs, the group automatically wins and this function is not called.

Parameters
array$prefs1array of preferences to merge
array$prefs2array of preferences to merge
Returns
array Prefs for this asset type, prefs_var => prefs_details public

Definition at line 121 of file prefs.inc.

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

Paints the backend interface to edit preferences

Parameters
objectBackend_Outputter &$o reference to the backend outputter
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 84 of file prefs.inc.

Prefs (   $pref_file = '')

Constructor

Definition at line 50 of file prefs.inc.

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

Processes the backend interface to edit preferences

Parameters
objectBackend_Outputter &$o reference to the backend outputter
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 101 of file prefs.inc.


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