phpDocumentor SpoolTemplate
[ Back ] [ class tree: SpoolTemplate ] [ index: SpoolTemplate ] [ all elements ]

Class: CBlock

Source Location: /sptpl_clsBlock.php

Class CBlock

Class Overview

Located in /sptpl_clsBlock.php [line 33]



		
				Author(s):
		
		
		
Information Tags:
Version:  $Header: d:\cvs/classistd/sptpl/sptpl_clsBlock.php,v 2.6 2005/03/02 21:00:54 Darvin Exp $
Copyright:  sptpl_clsBlock.php is part of Sptpl project http://www.andrioli.com/en/sptpl.html and it is LGPL

Properties

Methods

[ Top ]
Property Summary
string   $ColumnSet   Id of the columnset to use to print the block's contents
array   $Counters   Array holding the name of the counters defined in this block.
object CDataStorage   $DataMgr   reference to the instance of DataManager, created by the class sptpl
array   $Db   Parameters to connect to the db to extract tha data
array   $GlobalCounters   Array holding the name of the counters defined at block
array   $Groups   Groups definition
array   $Levels   The array contains the parameters for each level of grouping
mixed   $MyId  
object CPageMgr   $PageMgr   reference to the instance of PageManager created by the class sptpl
mixed   $Param  
mixed   $Rows  
array   $Source   Name of tha global array where look for the information to printout
string   $SourceType   Type of data source configured for the block.
mixed   $SuggestedId  
string   $Type   Block type:

[ Top ]
Method Summary
CBlock   CBlock()   Class constructor
void   GetId()   Returns the block Id
void   ParseXml()   Parse the block tag and its childs and set the intenal structure
void   RunBlock()   Draw one block. In this function I establish wich type block I've and run the right function to manage it
void   _RunBlockSingleRow()   Block without repetition

[ Top ]
Properties
string   $ColumnSet [line 57]

Id of the columnset to use to print the block's contents

default='' =no columnset required


[ Top ]
array   $Counters [line 101]

Array holding the name of the counters defined in this block.


[ Top ]
object CDataStorage   $DataMgr [line 38]

reference to the instance of DataManager, created by the class sptpl


[ Top ]
array   $Db [line 76]

Parameters to connect to the db to extract tha data


[ Top ]
array   $GlobalCounters [line 107]

Array holding the name of the counters defined at block

level


[ Top ]
array   $Groups [line 70]

Groups definition

API Tags:
See:  CBlock::ParseXml()


[ Top ]
array   $Levels [line 63]

The array contains the parameters for each level of grouping

API Tags:
See:  CBlock::ParseXml()


[ Top ]
mixed   $MyId [line 42]

[ Top ]
object CPageMgr   $PageMgr [line 95]

reference to the instance of PageManager created by the class sptpl


[ Top ]
mixed   $Param [line 44]

[ Top ]
mixed   $Rows [line 90]

[ Top ]
array   $Source [line 81]

Name of tha global array where look for the information to printout


[ Top ]
string   $SourceType [line 88]

Type of data source configured for the block.

Values: Sql, Variable, Function


[ Top ]
mixed   $SuggestedId [line 40]

[ Top ]
string   $Type [line 51]

Block type:

block (block of rows), single (single row)


[ Top ]
Methods
Constructor CBlock  [line 116]

  CBlock CBlock( object CDataStorage &$RefToDataMgr, object CPageMgr &$clsPageMgr, string $id, object CXml2Array $Node  )

Class constructor

Parameters:
object CDataStorage   &$RefToDataMgr: 
object CPageMgr   &$clsPageMgr: 
string   $id: 
object CXml2Array   $Node: 


[ Top ]
GetId  [line 150]

  void GetId( )

Returns the block Id


API Tags:
Access:  public


[ Top ]
ParseXml  [line 162]

  void ParseXml( mixed $Cfg, object CXml2Array $Node  )

Parse the block tag and its childs and set the intenal structure

Parameters:
object CXml2Array   $Node: 

API Tags:
Access:  public


[ Top ]
RunBlock  [line 523]

  void RunBlock( )

Draw one block. In this function I establish wich type block I've and run the right function to manage it


API Tags:
Access:  public


[ Top ]
_RunBlockSingleRow  [line 566]

  void _RunBlockSingleRow( )

Block without repetition



[ Top ]

Documentation generated on Mon, 28 Mar 2005 15:13:11 +0200 by phpDocumentor 1.3.0RC3