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

Public Member Functions

 __construct ($pref_file='')
 
 paintBackend (Backend_Outputter $o, $have_lock, $pref=NULL)
 
 processBackend (Backend_Outputter $o, $have_lock, $pref=NULL)
 
 mergePrefs (Array $prefs1, Array $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 bodycopy_container_prefs.inc.

Constructor & Destructor Documentation

__construct (   $pref_file = '')

Constructor

Definition at line 65 of file bodycopy_container_prefs.inc.

Member Function Documentation

mergePrefs ( Array  $prefs1,
Array  $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 269 of file bodycopy_container_prefs.inc.

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

Paints the backend interface to edit preferences

Parameters
Backend_Outputter$oreference to the backend outputter instance
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 82 of file bodycopy_container_prefs.inc.

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

Processes the backend interface to edit preferences

Parameters
Backend_Outputter$oreference to the backend outputter instance
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 223 of file bodycopy_container_prefs.inc.

Field Documentation

$pref_vars
Initial value:
= Array(
'SQ_DEFAULT_CONTENT_TYPE' => Array(
'name' => 'default_content_type',
'description' => 'When bodycopy containers are created they will have this content type by default',
'default' => 'content_type_wysiwyg',
'protected' => FALSE,
),
'SQ_DEFAULT_PRESENTATION_TYPE' => Array(
'name' => 'default_presentation_type',
'description' => 'When bodycopy containers are created they will have this presentation type by default',
'default' => 'div',
'protected' => FALSE,
),
'SQ_DIV_DISABLE_CREATE' => Array(
'name' => 'div_disable_create',
'description' => 'If bodycopy containers are disabled for creating, they can not be created in Edit Content Screen',
'default' => 'no',
'protected' => FALSE,
),
'SQ_DIV_DISABLE_DELETE' => Array(
'name' => 'div_disable_delete',
'description' => 'If bodycopy containers are disabled for deleting, they can not be deleted in Edit Content Screen',
'default' => 'no',
'protected' => FALSE,
),
)

Definition at line 33 of file bodycopy_container_prefs.inc.


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