Class: I2CE PrintedForm Render (Development): Difference between revisions
(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# | *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# | *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# | *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# | *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# | *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# | *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# | *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# | *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 .
- Extends the class: I2CE_Fuzzy.
- Child Classes:
- Location: Part of the module PrintedForms in the package I2CE 4.0-dev
- Source: Defined in the file modules/Forms/modules/PrintedForms/lib/I2CE_PrintedForm_Render.php on line 33
- Author: Carl Leitner <litlfred@ibiblio.org>
- Since: v4.0.4
@filesource Class I2CE_PrintedForm_Render
Variables
$std_form
. The standardized printed form we are rendeding
- Defined in i2ce/modules/Forms/modules/PrintedForms/lib/I2CE_PrintedForm_Render.php on line 38
- Type: protected string $std_form
$ids
. The ids of the primary form in the relationship
- Defined in i2ce/modules/Forms/modules/PrintedForms/lib/I2CE_PrintedForm_Render.php on line 42
- Type: protected array $ids
$base_rel_config
The magic data path that we look for the base relationship in.
- Defined in i2ce/modules/Forms/modules/PrintedForms/lib/I2CE_PrintedForm_Render.php on line 48
- Type: protected string $base_rel_config
$rel
The form relationshiop
- Defined in i2ce/modules/Forms/modules/PrintedForms/lib/I2CE_PrintedForm_Render.php on line 66
- Type: protected I2CE_FormRelationsip $rel
$stdConfig
@var protected I2CE_MagicDataNode $stdConfg the magic data node for the standard config
- Defined in i2ce/modules/Forms/modules/PrintedForms/lib/I2CE_PrintedForm_Render.php on line 70
- Type: protected $stdConfig
$layoutOptions
. Main options for page layout
- Defined in i2ce/modules/Forms/modules/PrintedForms/lib/I2CE_PrintedForm_Render.php on line 77
- Type: protected array $layoutOptions
$content
. Content descrtiption
- Defined in i2ce/modules/Forms/modules/PrintedForms/lib/I2CE_PrintedForm_Render.php on line 81
- Type: protected array $content
$forms
. Indedx by id's of the primary form it is an array of the forms satisfying the relationship
- Defined in i2ce/modules/Forms/modules/PrintedForms/lib/I2CE_PrintedForm_Render.php on line 256
- Type: protected array $forms
$id
The id of the form currently being processed
- Defined in i2ce/modules/Forms/modules/PrintedForms/lib/I2CE_PrintedForm_Render.php on line 274
- Type: protected string $id
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'
- string $std_form
_render()
business method to render the forms
- Defined in i2ce/modules/Forms/modules/PrintedForms/lib/I2CE_PrintedForm_Render.php on line 297
- Signature: protected function _render($textProps)
- Parameters:
- array $textProps
- Returns: boolean
true on sucess.
addForm()
Adds the form data at the specified position on the current page.
- Defined in i2ce/modules/Forms/modules/PrintedForms/lib/I2CE_PrintedForm_Render.php on line 380
- Signature: protected function addForm($left_x,$top_y,$formData,$textProps)
- Parameters:
- Returns: boolean.
True on success
addPage()
Add a page to the rendered document
- Defined in i2ce/modules/Forms/modules/PrintedForms/lib/I2CE_PrintedForm_Render.php on line 516
- Signature: abstract protected function addPage($textProps)
- Parameters:
- array $textProps
display()
Abstract method to retreive/display the contents of the rendered forms
- Defined in i2ce/modules/Forms/modules/PrintedForms/lib/I2CE_PrintedForm_Render.php on line 525
- Signature: abstract public function display($as_string)
- Parameters:
- boolean $as_string
Defaults to false- Default Value: false
- boolean $as_string
- Returns: mixed.
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 i2ce/modules/Forms/modules/PrintedForms/lib/I2CE_PrintedForm_Render.php on line 279
- Signature: protected function getCurrentId()
- Returns: string
getFormData()
Get the form data for the given id
- Defined in i2ce/modules/Forms/modules/PrintedForms/lib/I2CE_PrintedForm_Render.php on line 261
- Signature: public function getFormData($id)
- Parameters:
- $id
processElement_image()
Abstract business method to render a text element from the elements tree
- Defined in 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)
- Parameters:
- int $left_x
- int $top_y
- array $formData
of I2CE_Form - array $textProps
- I2CE_MagicDataNode $elementConfig
The node defining the element
- Returns: boolean.
True on success
processElement_text()
Abstract business method to render a text element from the elements tree
- Defined in 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)
- Parameters:
- int $left_x
- int $top_y
- array $formData
of I2CE_Form - array $textProps
- I2CE_MagicDataNode $elementConfig
The node defining the element
- Returns: boolean.
True on success
processTextString()
Processes the printf string and args
- Defined in i2ce/modules/Forms/modules/PrintedForms/lib/I2CE_PrintedForm_Render.php on line 423
- Signature: protected function processTextString($printf,$printf_args,$formData)
- Parameters:
- Returns: string
render()
Abstract method to render the form. Makes sure all ducks are in a row
- Defined in i2ce/modules/Forms/modules/PrintedForms/lib/I2CE_PrintedForm_Render.php on line 87
- Signature: public function render()
- Returns: boolean
true on sucess.
setCurrentId()
Sets the id of the form currently being processsed
- Defined in i2ce/modules/Forms/modules/PrintedForms/lib/I2CE_PrintedForm_Render.php on line 287
- Signature: protected function setCurrentId($id)
- Parameters:
- string $id
validateTextProps()
Validates the text properties
- Defined in i2ce/modules/Forms/modules/PrintedForms/lib/I2CE_PrintedForm_Render.php on line 323
- Signature: protected function validateTextProps($textProps)
- Parameters:
- array &$textProps
Inherited Methods
_hasMethod()
This public method is inherited from I2CE_Fuzzy->_hasMethod()
Inherited Fuzzy Methods
userMessage()
This method is inherited from I2CE_Fuzzy->userMessage()