IP.Board  3.3.0
adminBlockHelper Class Reference
Inheritance diagram for adminBlockHelper:
adminBlockHelper_custom adminBlockHelper_feed adminBlockHelper_plugin

Public Member Functions

 __construct (ipsRegistry $registry)
 getBlockContent ($block)
 saveRevision ($block, $newBlock)

Data Fields

 $html
 $session

Protected Member Functions

 _insertOrUpdate ($session, $block)
 _saveAndGo ($session, $step)
 _saveToDb ($sessionId, $currentStep, $configData)

Protected Attributes

 $cache
 $caches
 $DB
 $form_code
 $form_code_js
 $lang
 $member
 $memberData
 $registry
 $request
 $settings

Constructor & Destructor Documentation

__construct ( ipsRegistry registry)

Constructor

public

Parameters:
objectRegistry reference
Returns:
void

Reimplemented in adminBlockHelper_custom, adminBlockHelper_feed, and adminBlockHelper_plugin.


Member Function Documentation

_insertOrUpdate ( session,
block 
) [protected]

Insert or update block

protected

Parameters:
arraySession data
arrayBlock data to save
Returns:
array Block data + id
_saveAndGo ( session,
step 
) [protected]

Determine if we are saving and going elsewhere or not

protected

Parameters:
arraySession data
intStep number
Returns:
mixed void, or bool
_saveToDb ( sessionId,
currentStep,
configData 
) [protected]

Run DB update query

protected

Parameters:
stringSession ID
integerCurrent step
arrayConfig data
Returns:
bool
getBlockContent ( block)

Return the block content to display. Checks cache and updates cache if needed.

public

Parameters:
arrayBlock data
Returns:
string Content to output
saveRevision ( block,
newBlock 
)

Save a new block revision

public

Parameters:
arrayOld data
arrayNew data
Returns:
void

The documentation for this class was generated from the following file:
 All Data Structures Functions Variables