Class: I2CE PrintedForm Render (Development): Difference between revisions

From IHRIS Wiki
(Created page with '{{otherversions|Class: I2CE_PrintedForm_Render}} This article describes the ''abstract'' class ''I2CE_PrintedForm_Render'' . *Extends the class: [[Class: I2CE_Fuzzy (Development)…')
 
No edit summary
Line 49: Line 49:
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/PrintedForms/lib/I2CE_PrintedForm_Render.php#L256 i2ce/modules/Forms/modules/PrintedForms/lib/I2CE_PrintedForm_Render.php] on line 256
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/PrintedForms/lib/I2CE_PrintedForm_Render.php#L256 i2ce/modules/Forms/modules/PrintedForms/lib/I2CE_PrintedForm_Render.php] on line 256
*Type: protected [http://www.php.net/manual/en/language.types.array.php array ] $forms
*Type: protected [http://www.php.net/manual/en/language.types.array.php array ] $forms
===$id===
The id of the form currently being processed
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/PrintedForms/lib/I2CE_PrintedForm_Render.php#L274 i2ce/modules/Forms/modules/PrintedForms/lib/I2CE_PrintedForm_Render.php] on line 274
*Type: protected [http://www.php.net/manual/en/language.types.string.php string ] $id


==Methods==
==Methods==
Line 62: Line 67:
===_render()===
===_render()===
business  method to render the forms
business  method to render the forms
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/PrintedForms/lib/I2CE_PrintedForm_Render.php#L274 i2ce/modules/Forms/modules/PrintedForms/lib/I2CE_PrintedForm_Render.php] on line 274
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/PrintedForms/lib/I2CE_PrintedForm_Render.php#L297 i2ce/modules/Forms/modules/PrintedForms/lib/I2CE_PrintedForm_Render.php] on line 297
*Signature: protected function _render($textProps)
*Signature: protected function _render($textProps)
*Parameters:
*Parameters:
Line 69: Line 74:
===addForm()===
===addForm()===
Adds the form data at the specified position on the current page.
Adds the form data at the specified position on the current page.
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/PrintedForms/lib/I2CE_PrintedForm_Render.php#L356 i2ce/modules/Forms/modules/PrintedForms/lib/I2CE_PrintedForm_Render.php] on line 356
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/PrintedForms/lib/I2CE_PrintedForm_Render.php#L380 i2ce/modules/Forms/modules/PrintedForms/lib/I2CE_PrintedForm_Render.php] on line 380
*Signature: protected function addForm($left_x,$top_y,$formData,$textProps)
*Signature: protected function addForm($left_x,$top_y,$formData,$textProps)
*Parameters:
*Parameters:
Line 79: Line 84:
===addPage()===
===addPage()===
Add a page to the rendered document
Add a page to the rendered document
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/PrintedForms/lib/I2CE_PrintedForm_Render.php#L492 i2ce/modules/Forms/modules/PrintedForms/lib/I2CE_PrintedForm_Render.php] on line 492
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/PrintedForms/lib/I2CE_PrintedForm_Render.php#L516 i2ce/modules/Forms/modules/PrintedForms/lib/I2CE_PrintedForm_Render.php] on line 516
*Signature: abstract protected function addPage($textProps)
*Signature: abstract protected function addPage($textProps)
*Parameters:
*Parameters:
Line 85: Line 90:
===display()===
===display()===
Abstract method to retreive/display the contents of the rendered forms
Abstract method to retreive/display the contents of the rendered forms
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/PrintedForms/lib/I2CE_PrintedForm_Render.php#L501 i2ce/modules/Forms/modules/PrintedForms/lib/I2CE_PrintedForm_Render.php] on line 501
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/PrintedForms/lib/I2CE_PrintedForm_Render.php#L525 i2ce/modules/Forms/modules/PrintedForms/lib/I2CE_PrintedForm_Render.php] on line 525
*Signature: abstract public function display($as_string)
*Signature: abstract public function display($as_string)
*Parameters:
*Parameters:
Line 91: Line 96:
***Default Value: false
***Default Value: false
*Returns: mixed.<br/>If {$as_string} is false the it is a  boolean true on sucess.  If $as_string is true, then it is a string on success, false on failure
*Returns: mixed.<br/>If {$as_string} is false the it is a  boolean true on sucess.  If $as_string is true, then it is a string on success, false on failure
===getCurrentId()===
Gets the id of the form currently being processsed
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/PrintedForms/lib/I2CE_PrintedForm_Render.php#L279 i2ce/modules/Forms/modules/PrintedForms/lib/I2CE_PrintedForm_Render.php] on line 279
*Signature: protected function getCurrentId()
*Returns: [http://www.php.net/manual/en/language.types.string.php string ]
===getFormData()===
===getFormData()===
Get the form data for the given id
Get the form data for the given id
Line 99: Line 109:
===processElement_image()===
===processElement_image()===
Abstract business method to render a text element from the elements tree
Abstract business method to render a text element from the elements tree
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/PrintedForms/lib/I2CE_PrintedForm_Render.php#L485 i2ce/modules/Forms/modules/PrintedForms/lib/I2CE_PrintedForm_Render.php] on line 485
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/PrintedForms/lib/I2CE_PrintedForm_Render.php#L509 i2ce/modules/Forms/modules/PrintedForms/lib/I2CE_PrintedForm_Render.php] on line 509
*Signature: abstract protected function processElement_image($left_x,$top_y,$formData,$textProps,$elementConfig)
*Signature: abstract protected function processElement_image($left_x,$top_y,$formData,$textProps,$elementConfig)
*Parameters:
*Parameters:
Line 110: Line 120:
===processElement_text()===
===processElement_text()===
Abstract business method to render a text element from the elements tree
Abstract business method to render a text element from the elements tree
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/PrintedForms/lib/I2CE_PrintedForm_Render.php#L474 i2ce/modules/Forms/modules/PrintedForms/lib/I2CE_PrintedForm_Render.php] on line 474
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/PrintedForms/lib/I2CE_PrintedForm_Render.php#L498 i2ce/modules/Forms/modules/PrintedForms/lib/I2CE_PrintedForm_Render.php] on line 498
*Signature: abstract protected function processElement_text($left_x,$top_y,$formData,$textProps,$elementConfig)
*Signature: abstract protected function processElement_text($left_x,$top_y,$formData,$textProps,$elementConfig)
*Parameters:
*Parameters:
Line 121: Line 131:
===processTextString()===
===processTextString()===
Processes the printf string and args
Processes the printf string and args
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/PrintedForms/lib/I2CE_PrintedForm_Render.php#L399 i2ce/modules/Forms/modules/PrintedForms/lib/I2CE_PrintedForm_Render.php] on line 399
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/PrintedForms/lib/I2CE_PrintedForm_Render.php#L423 i2ce/modules/Forms/modules/PrintedForms/lib/I2CE_PrintedForm_Render.php] on line 423
*Signature: protected function processTextString($printf,$printf_args,$formData)
*Signature: protected function processTextString($printf,$printf_args,$formData)
*Parameters:
*Parameters:
Line 133: Line 143:
*Signature: public function render()
*Signature: public function render()
*Returns: [http://www.php.net/manual/en/language.types.boolean.php boolean ]<br/>true on sucess.
*Returns: [http://www.php.net/manual/en/language.types.boolean.php boolean ]<br/>true on sucess.
===setCurrentId()===
Sets the id of the form currently being processsed
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/PrintedForms/lib/I2CE_PrintedForm_Render.php#L287 i2ce/modules/Forms/modules/PrintedForms/lib/I2CE_PrintedForm_Render.php] on line 287
*Signature: protected function setCurrentId($id)
*Parameters:
** [http://www.php.net/manual/en/language.types.string.php string ] $id
===validateTextProps()===
===validateTextProps()===
Validates the text properties
Validates the text properties
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/PrintedForms/lib/I2CE_PrintedForm_Render.php#L299 i2ce/modules/Forms/modules/PrintedForms/lib/I2CE_PrintedForm_Render.php] on line 299
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Forms/modules/PrintedForms/lib/I2CE_PrintedForm_Render.php#L323 i2ce/modules/Forms/modules/PrintedForms/lib/I2CE_PrintedForm_Render.php] on line 323
*Signature: protected function validateTextProps($textProps)
*Signature: protected function validateTextProps($textProps)
*Parameters:
*Parameters:

Revision as of 07:58, 3 August 2010


This article describes the abstract class I2CE_PrintedForm_Render .

@filesource Class I2CE_PrintedForm_Render

Variables

$std_form

. The standardized printed form we are rendeding

$ids

. The ids of the primary form in the relationship

$base_rel_config

The magic data path that we look for the base relationship in.

$rel

The form relationshiop

$stdConfig

@var protected I2CE_MagicDataNode $stdConfg the magic data node for the standard config

$layoutOptions

. Main options for page layout

$content

. Content descrtiption

$forms

. Indedx by id's of the primary form it is an array of the forms satisfying the relationship

$id

The id of the form currently being processed

Methods

__construct()

Constructor

  • Defined in i2ce/modules/Forms/modules/PrintedForms/lib/I2CE_PrintedForm_Render.php on line 56
  • Signature: public function __construct($std_form,$ids,$base_rel_config)
  • Parameters:
    • string $std_form
      The standardized printed form we are rendeding @parm array $ids of string. The ids of the primary form in the relationship
    • $ids
    • string $base_rel_config
      The magic data path that we look for the base relationship in. Defaults to /modules/CustomReports/relationships
      • Default Value: '/modules/CustomReports/relationships'

_render()

business method to render the forms

addForm()

Adds the form data at the specified position on the current page.

addPage()

Add a page to the rendered document

display()

Abstract method to retreive/display the contents of the rendered forms

getCurrentId()

Gets the id of the form currently being processsed

getFormData()

Get the form data for the given id

processElement_image()

Abstract business method to render a text element from the elements tree

processElement_text()

Abstract business method to render a text element from the elements tree

processTextString()

Processes the printf string and args

render()

Abstract method to render the form. Makes sure all ducks are in a row

setCurrentId()

Sets the id of the form currently being processsed

validateTextProps()

Validates the text properties

Inherited Methods

_hasMethod()

This public method is inherited from I2CE_Fuzzy->_hasMethod()

Inherited Fuzzy Methods

userMessage()

This method is inherited from I2CE_Fuzzy->userMessage()