Squiz Matrix  4.12.2
 All Data Structures Namespaces Functions Variables Pages
Design_Edit_Fns Class Reference
Inheritance diagram for Design_Edit_Fns:
Design_Area_Edit_Fns Asset_Edit_Fns MySource_Object Design_Css_Edit_Fns Design_Customisation_Edit_Fns EES_Login_Design_Edit_Fns Login_Design_Edit_Fns Password_Change_Design_Edit_Fns Design_Css_Customisation_Edit_Fns

Public Member Functions

 __construct ()
 
 paintParseFile (Design $asset, Backend_Outputter $o, $prefix)
 
 processParseFile (Design $asset, Backend_Outputter $o, $prefix)
 
 paintReparseFile (Design $asset, Backend_Outputter $o, $prefix)
 
 processReparseFile (Design $asset, Backend_Outputter $o, $prefix)
 
 paintEditParseFile (Design $asset, Backend_Outputter $o, $prefix)
 
 processEditParseFile (Design $asset, Backend_Outputter $o, $prefix)
 
 paintNewFiles (Design $asset, Backend_Outputter $o, $prefix)
 
 processNewFiles (Design $asset, Backend_Outputter $o, $prefix)
 
 _processUploadedFile (Design $asset, $info=Array())
 
 paintNewCustomisation (Design $asset, Backend_Outputter $o, $prefix)
 
 processNewCustomisation (Design $asset, Backend_Outputter $o, $prefix)
 
 paintCurrentCustomisations (Design $asset, Backend_Outputter $o, $prefix)
 
 parseAndProcessFile (Design $asset)
 
 _parseString (Design $asset, $file_contents)
 
 _processContents (Design $asset, Array $contents)
 
 paintImport (Design $asset, Backend_Outputter $o, $prefix)
 
 processImport (Design $asset, Backend_Outputter $o, $prefix)
 
 paintExport (Design $asset, Backend_Outputter $o, $prefix)
 
 processExport (Design $asset, Backend_Outputter $o, $prefix)
 
 paintCurrentFiles (Design $asset, Backend_Outputter $o, $prefix)
 
 processCurrentFiles (Design $asset, Backend_Outputter $o, $prefix)
 
 paintUsage (Design $asset, Backend_Outputter $o, $prefix)
 
 _getTreeTops (Array $treeids)
 
 _strlenCmp ($a, $b)
 
 _paintSelection (Design $asset, Backend_Outputter $o, $prefix, $attribute)
 
 _processSelection (Design $asset, Backend_Outputter $o, $prefix, $attribute)
 
 paintWysiwygClasses (Design $asset, Backend_Outputter $o, $prefix)
 
 processWysiwygClasses (Design $asset, Backend_Outputter $o, $prefix)
 
 paintDivClasses (Design $asset, Backend_Outputter $o, $prefix)
 
 processDivClasses (Design $asset, Backend_Outputter $o, $prefix)
 
- Public Member Functions inherited from Design_Area_Edit_Fns
 __construct ()
 
 paintIdName (Design_Area $asset, Backend_Outputter $o, $prefix)
 
 _parseString ($file_contents)
 
 _processContents (Design_Area $asset, Array $contents)
 
- Public Member Functions inherited from Asset_Edit_Fns
 Asset_Edit_Fns ()
 
 paintPaths (&$asset, &$o, $prefix)
 
 paintEditRemapURLs (&$asset, &$o, $prefix)
 
 processPaths (&$asset, &$o, $prefix)
 
 processEditRemapURLs (&$asset, &$o, $prefix)
 
 paintURLs (&$asset, &$o, $prefix)
 
 paintAddRemapURLs (&$asset, &$o, $prefix)
 
 processAddRemapURLs (&$asset, &$o, $prefix)
 
 isWorkflowComplete (&$asset)
 
 paintNoticeLinkedAsset (&$asset, $link_value, $type_codes=Array(), $field_name='', $multiple=FALSE)
 
 processNoticeLinkedAsset (&$asset, $link_value, $field_name='', $multiple=FALSE)
 
 isSearchInstalled (&$asset, $prefix)
 
 isBeingCreated (&$asset)
 
 isNotBeingCreated (&$asset)
 
 paintAutomaticRemapSetting (&$asset, &$o, $prefix)
 
 paintCreateLink (&$asset, &$o, $prefix)
 
- Public Member Functions inherited from MySource_Object
 MySource_Object ()
 
 __sleep ()
 
 __wakeup ()
 

Additional Inherited Members

- Data Fields inherited from Design_Area_Edit_Fns
 $tag_name = 'MySource'
 
- Protected Member Functions inherited from Design_Area_Edit_Fns
 _parseStringContents (&$file_contents, &$cur_pos, &$nest_level)
 
 _tagToParse (&$file_contents, &$cur_pos)
 
 _parseOpenTag (&$file_contents, &$cur_pos)
 
 _parseTerminateTag (&$file_contents, &$cur_pos)
 
 _isWhitespace ($str)
 
 _setVariables (Design_Area &$asset, Array &$contents)
 
 _removeFileRoot ($str)
 
 _getDefaultContents (Design_Area $asset, $content_type)
 

Detailed Description

Definition at line 32 of file design_edit_fns.inc.

Constructor & Destructor Documentation

__construct ( )

Constructor

Definition at line 40 of file design_edit_fns.inc.

Member Function Documentation

_getTreeTops ( Array  $treeids)

Get the "tree tops" in the supplied list of assets

An asset is a "tree top" in a set of assets if none of its ancestors in the asset tree are in the set with it. Conversely if an asset's parent or grandparent etc is in the set, then that asset is not a tree top.

Returns an array indexed by treeid, where each value is another array containing assetid and number of children of that assetid found in the set.

Parameters
array$assetidsThe assetids we are analysing
Returns
array public

Definition at line 1504 of file design_edit_fns.inc.

_paintSelection ( Design  $asset,
Backend_Outputter  $o,
  $prefix,
  $attribute 
)

Generic fucntion to paint the interface for dropdown classes selection box

Parameters
Design$assetthe asset whose interface we are painting
Backend_Outputter$othe outputter class
string$prefixprefix for the form elements
string$attributename of the attribute to paint
Returns
boolean public

Definition at line 1562 of file design_edit_fns.inc.

_parseString ( Design  $asset,
  $file_contents 
)

Parses the string into an array recursively cut up into html and tag pieces

Parameters
Design$assetthe asset to which we belong
string$file_contentsthe contents to parse
Returns
array public

Definition at line 789 of file design_edit_fns.inc.

_processContents ( Design  $asset,
Array  $contents 
)

Loops through the contents array and creates the necessary objects

Parameters
Design$assetthe asset to which we belong
array$contentsthe contents array we generated with _parseString()
Returns
boolean private

Definition at line 826 of file design_edit_fns.inc.

_processSelection ( Design  $asset,
Backend_Outputter  $o,
  $prefix,
  $attribute 
)

Generic function to process the interface for classes dropdown selection box

Parameters
Design$assetthe asset whose interface we are painting
Backend_Outputter$othe outputter class
string$prefixprefix for the form elements
string$attributename of the attribute to paint
Returns
boolean public

Definition at line 1649 of file design_edit_fns.inc.

_processUploadedFile ( Design  $asset,
  $info = Array() 
)

Creates a new file asset, populates it, and links it to $asset

Parameters
Design$assetthe asset to link the file to
array$infoinfo about the uploaded file
Returns
boolean public

Definition at line 501 of file design_edit_fns.inc.

_strlenCmp (   $a,
  $b 
)

Compare the lengths of two strings

Parameters
string$aFirst comparee
string$bSecond comparee
Returns
boolean public

Definition at line 1544 of file design_edit_fns.inc.

paintCurrentCustomisations ( Design  $asset,
Backend_Outputter  $o,
  $prefix 
)

Paint current customisation

Parameters
Design$assetthe asset to which we belong
Backend_Outputter$othe backend outputter object
string$prefixprefix for the form element
Returns
boolean public

Definition at line 744 of file design_edit_fns.inc.

paintCurrentFiles ( Design  $asset,
Backend_Outputter  $o,
  $prefix 
)

Paints files that are currently underneath this file

Parameters
Design$assetthe asset to which we belong
Backend_Outputter$othe backend outputter object
string$prefixprefix for the form element
Returns
boolean public

Definition at line 1184 of file design_edit_fns.inc.

paintDivClasses ( Design  $asset,
Backend_Outputter  $o,
  $prefix 
)

Function to paint the interface for DIV classes dropdown selection box

Parameters
Design$assetthe asset whose interface we are painting
Backend_Outputter$othe outputter class
string$prefixprefix for the form elements

Definition at line 1723 of file design_edit_fns.inc.

paintEditParseFile ( Design  $asset,
Backend_Outputter  $o,
  $prefix 
)

Paint the interface for editing the parse file

Parameters
Design$assetthe asset to which we belong
Backend_Outputter$othe backend outputter object
string$prefixprefix for the form element
Returns
boolean public

Definition at line 207 of file design_edit_fns.inc.

paintExport ( Design  $asset,
Backend_Outputter  $o,
  $prefix 
)

Paints the interface for exporting this design

Parameters
Design$assetthe asset to which we belong
Backend_Outputter$othe backend outputter object
string$prefixprefix for the form element
Returns
boolean public

Definition at line 1070 of file design_edit_fns.inc.

paintImport ( Design  $asset,
Backend_Outputter  $o,
  $prefix 
)

Paints the facility to upload and import files into the design

Parameters
Design$assetthe asset to which we belong
Backend_Outputter$othe backend outputter object
string$prefixprefix for the form element
Returns
boolean public

Definition at line 989 of file design_edit_fns.inc.

paintNewCustomisation ( Design  $asset,
Backend_Outputter  $o,
  $prefix 
)

Paint New Customisation

Parameters
Design$assetthe asset to which we belong
Backend_Outputter$othe backend outputter object
string$prefixprefix for the form element
Returns
boolean public

Definition at line 584 of file design_edit_fns.inc.

paintNewFiles ( Design  $asset,
Backend_Outputter  $o,
  $prefix 
)

Paint New Files

Parameters
Design$assetthe asset to which we belong
Backend_Outputter$othe backend outputter object
string$prefixprefix for the form element
Returns
boolean public

Definition at line 389 of file design_edit_fns.inc.

paintParseFile ( Design  $asset,
Backend_Outputter  $o,
  $prefix 
)

Paint the interface for the parse file uploading

Parameters
Design$assetthe asset to which we belong
Backend_Outputter$othe backend outputter object
string$prefixprefix for the form element
Returns
boolean public

Definition at line 58 of file design_edit_fns.inc.

paintReparseFile ( Design  $asset,
Backend_Outputter  $o,
  $prefix 
)

Paint the interface for the reparsing the current parse file

Parameters
Design$assetthe asset to which we belong
Backend_Outputter$othe backend outputter object
string$prefixprefix for the form element
Returns
boolean public

Definition at line 156 of file design_edit_fns.inc.

paintUsage ( Design  $asset,
Backend_Outputter  $o,
  $prefix 
)

Paint the usage of this paint layout

Parameters
Design$assetthe asset to which we belong
Backend_Outputter$othe backend outputter object
string$prefixprefix for the form element
Returns
void public

Definition at line 1394 of file design_edit_fns.inc.

paintWysiwygClasses ( Design  $asset,
Backend_Outputter  $o,
  $prefix 
)

Function to paint the interface for WYSIWYG classes dropdown selection box

Parameters
Design$assetthe asset whose interface we are painting
Backend_Outputter$othe outputter class
string$prefixprefix for the form elements

Definition at line 1686 of file design_edit_fns.inc.

parseAndProcessFile ( Design  $asset)

Parses the parse file and processes the contents

Parameters
Design$assetthe asset to which we belong
Returns
boolean public

Definition at line 768 of file design_edit_fns.inc.

processCurrentFiles ( Design  $asset,
Backend_Outputter  $o,
  $prefix 
)

Processes the deletion etc of current files

Parameters
Design$assetthe asset to which we belong
Backend_Outputter$othe backend outputter object
string$prefixprefix for the form element
Returns
boolean public

Definition at line 1251 of file design_edit_fns.inc.

processDivClasses ( Design  $asset,
Backend_Outputter  $o,
  $prefix 
)

Function to process the interface for DIV classes dropdown selection box

Parameters
Design$assetthe asset whose interface we are painting
Backend_Outputter$othe outputter class
string$prefixprefix for the form elements

Definition at line 1743 of file design_edit_fns.inc.

processEditParseFile ( Design  $asset,
Backend_Outputter  $o,
  $prefix 
)

Processes the interface for the editing the parse file

Parameters
Design$assetthe asset to which we belong
Backend_Outputter$othe backend outputter object
string$prefixprefix for the form element
Returns
boolean public

Definition at line 325 of file design_edit_fns.inc.

processExport ( Design  $asset,
Backend_Outputter  $o,
  $prefix 
)

Processes the options and exports the assets required to recreate this design

Parameters
Design$assetthe asset to which we belong
Backend_Outputter$othe backend outputter object
string$prefixprefix for the form element
Returns
boolean public

Definition at line 1096 of file design_edit_fns.inc.

processImport ( Design  $asset,
Backend_Outputter  $o,
  $prefix 
)

Processes uploaded files, and creates required assets and links to generate this design

Parameters
Design$assetthe asset to which we belong
Backend_Outputter$othe backend outputter object
string$prefixprefix for the form element
Returns
boolean public

Definition at line 1020 of file design_edit_fns.inc.

processNewCustomisation ( Design  $asset,
Backend_Outputter  $o,
  $prefix 
)

Process New Customisation

Parameters
Design$assetthe asset to which we belong
Backend_Outputter$othe backend outputter object
string$prefixprefix for the form element
Returns
boolean public

Definition at line 609 of file design_edit_fns.inc.

processNewFiles ( Design  $asset,
Backend_Outputter  $o,
  $prefix 
)

Process New Files

Parameters
Design$assetthe asset to which we belong
Backend_Outputter$othe backend outputter object
string$prefixprefix for the form element
Returns
boolean public

Definition at line 410 of file design_edit_fns.inc.

processParseFile ( Design  $asset,
Backend_Outputter  $o,
  $prefix 
)

Processes the interface for the parse file uploading

Parameters
Design$assetthe asset to which we belong
Backend_Outputter$othe backend outputter object
string$prefixprefix for the form element
Returns
boolean public

Definition at line 79 of file design_edit_fns.inc.

processReparseFile ( Design  $asset,
Backend_Outputter  $o,
  $prefix 
)

Processes the interface for the reparsing the current parse file

Parameters
Design$assetthe asset to which we belong
Backend_Outputter$othe backend outputter object
string$prefixprefix for the form element
Returns
boolean public

Definition at line 183 of file design_edit_fns.inc.

processWysiwygClasses ( Design  $asset,
Backend_Outputter  $o,
  $prefix 
)

Function to process the interface for WYSIWYG classes dropdown selection box

Parameters
Design$assetthe asset whose interface we are painting
Backend_Outputter$othe outputter class
string$prefixprefix for the form elements

Definition at line 1706 of file design_edit_fns.inc.


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