Cascade Core  v0.12-1-g22cbbeb
 All Classes Namespaces Functions Variables Pages
Protected Member Functions | List of all members
TemplatingProxyBlock Class Reference

TemplatingProxyBlock is like ProxyBlock, but all valus are passed thru template_format() function. More...

Inheritance diagram for TemplatingProxyBlock:
Inheritance graph

Protected Member Functions

 preprocessConfiguration ($conf)
 Preprocess configuration before it is interpreted by proxy itself. More...
 
- Protected Member Functions inherited from ProxyBlock
 preprocessConfiguration ($conf)
 Preprocess configuration before it is interpreted by proxy itself. More...
 
 policy__require_block ($arg, &$conf)
 Deny entire block if specified block is not available.
 
 policy__dummy_if_denied ($arg, &$conf)
 Silently replace denied blocks with dummy. More...
 
 policy__skip_if_denied ($arg, &$conf)
 Silently skip denied blocks. More...
 
- Protected Member Functions inherited from Block
 in ($name)
 Get value from input.
 
 inAll ()
 Get values from all inputs.
 
 inputNames ()
 Get all input names, excluding common inputs (enable and *)
 
 collectNumericInputs ()
 Collect values from numeric inputs - works well with vsprintf() More...
 
 out ($name, $value)
 Set value to output.
 
 outAll ($values)
 Set all output values. More...
 
 outForward ($name, $source_block, $source_name=null)
 Forward output from another block. More...
 
 templateAdd ($id_suffix, $template, $data=array())
 Add output object to template subsystem.
 
 templateAddToSlot ($id_suffix, $slot, $weight, $template, $data=array())
 Add output object to template subsystem (with slot and weight)
 
 templateSetPageTitle ($title, $format=null)
 Set page title.
 
 templateSetType ($type)
 Set output type.
 
 templateOptionSet ($slot, $option, $value)
 Set slot option.
 
 templateOptionAppend ($slot, $option, $value)
 Append value to slot option (which is list)
 
 cascadeAdd ($id, $block, $force_exec=null, $in_connections=array(), $in_values=array(), $context=null)
 Add block to cascade.
 
 cascadeAddFromArray ($array_of_blocks, $context=null)
 Add array of blocks to cascade (calls cascadeAdd() for each item). More...
 
 cascadeGetErrors ()
 Get errors from cascade controller (errors can occur when cascade_add or cascade_add_from_ini is called)
 
 auth ()
 Get auth object from cascade controller.
 
 authIsBlockAllowed ($block_name, &$details=null)
 Check if block is allowed before cascade controller loads it.
 

Additional Inherited Members

- Public Member Functions inherited from ProxyBlock
 main ()
 Body of the block. More...
 
- Public Member Functions inherited from Block
 main ()
 Body of the block. More...
 
 id ()
 Get block id without namespaces.
 
 fullId ()
 Get full block id (including all parent namespaces).
 
 blockName ()
 Get block type.
 
 status ()
 Get block state.
 
 statusMessage ()
 Get status message - usually contains an error message why block failed.
 
 getCascadeController ()
 Get CascadeController which owns this block.
 
 getTimestamps ()
 Get profiler data. More...
 
 visibleBlockNames ()
 List all visible block names already in cascade (for debugging only) More...
 
 cc_init ($parent, $id, $full_id, $cascade_controller, $block_name, $context, $initial_status=self::QUEUED, $initial_status_message=null)
 
 cc_connect (array $in_connections, array $in_values)
 
 cc_registerBlock ($block)
 
 cc_resolveBlockName ($block_name)
 
 cc_execute ()
 
 cc_getOutput ($name)
 
 cc_connections ()
 
 cc_outputs ()
 
 cc_outputCache ()
 
 cc_forwardedOutputs ()
 
 cc_outputExists ($name, $accept_wildcard=true)
 
 cc_getNamespace ()
 
 cc_executionTime ()
 
 cc_dumpNamespace ($level=1)
 
 cc_describeBlock ()
 
 getOutput ($name)
 Calculate output value on demand. More...
 
- Static Public Member Functions inherited from ProxyBlock
static createFromShebang ($block_config, $shebang_config, Context $context, $block_type)
 Create block proxy.
 
- Public Attributes inherited from ProxyBlock
const force_exec = true
 Block must be always executed.
 
- Public Attributes inherited from Block
const force_exec = false
 Default value of 'force_exec' flag. More...
 
const QUEUED = 0x00
 The block is waiting for execution.
 
const RUNNING = 0x01
 The block or its dependencies are being evaluated.
 
const ZOMBIE = 0x02
 The block is finished, exist only to maintain its outputs.
 
const DISABLED = 0x04
 The block is disabled, its 'enable' input is false.
 
const FAILED = 0x08
 The block has failed, because its inputs cannot be connected, or its dependencies cannot be solved, or it threw an exception. More...
 
- Static Public Attributes inherited from Block
static $STATUS_NAMES
 Map block state constants to strings. More...
 
- Protected Attributes inherited from ProxyBlock
 $inputs
 Block inputs. More...
 
 $outputs
 Block outputs. More...
 
- Protected Attributes inherited from Block
 $inputs
 List of inputs and their default values. More...
 
 $connections
 List of default input connections (all inputs mentioned here must be present in $inputs array too) More...
 
 $outputs
 List of outputs (no default values) More...
 
 $context
 Global context. More...
 

Detailed Description

TemplatingProxyBlock is like ProxyBlock, but all valus are passed thru template_format() function.

Input values and predefined constants are available as template variables.

Member Function Documentation

preprocessConfiguration (   $conf)
protected

Preprocess configuration before it is interpreted by proxy itself.

Receives original configuration and returns modified version.

Here is the call graph for this function: