apidoc
[ class tree: apidoc ] [ index: apidoc ] [ all elements ]

Class: HTML_Template_Flexy_Factory

Source Location: /HTML_Template_Flexy-1.3.13/HTML/Template/Flexy/Factory.php

Class Overview




Methods


Inherited Variables

Inherited Methods


Class Details

[line 26]


[ Top ]


Method Detail

freeze   [line 186]

array freeze( array &$array)

freeze - freeze's an element. - just copies the value to the override.

this probably needs more thought.. - it would probably need to merge the full tag info with types, to be usefull..

$ar = HTML_Element_Factory::freeze($ar);

  • Return: Array of HTML_Elements
  • Access: public

Parameters:

array   &$array   —  (return by referencekey(tag name) => HTML_Element

[ Top ]

fromArray   [line 41]

array fromArray( array $ar, [optional $ret = array()])

fromArray - builds a set of elements from a key=>value array (eg. DO->toArray()) the second parameter is an optional HTML_Element array to merge it into.
  • Return: Array of HTML_Elements
  • Access: public

Parameters:

array   $ar   —  key(tag name) => value
optional   $ret   —  array key(tag name) => HTML_Element

[ Top ]

fromArrayPrefixed   [line 69]

array fromArrayPrefixed( array $prefix, array $ar, [optional $ret = array()])

fromArrayPrefixed - takes a multi dimensional array, and builds the 'xxx[sss][xx]' => value
  • Return: Array of HTML_Elements
  • Access: public

Parameters:

array   $prefix   —  key(tag name) => value
array   $ar   —  key(tag name) => value
optional   $ret   —  array key(tag name) => HTML_Element

[ Top ]

setErrors   [line 109]

array &setErrors( array &$ret, array $set, [string $format = '<span class="error">%s</span>'])

setErrors - sets the suffix of an element to a value..

HTML_Element_Factory::setErrors($elements,array('name','not long enough'));

  • Return: Array of HTML_Elements
  • Access: public

Parameters:

array   &$ret   —  of HTML_Element's
array   $set   —  key(tag name) => error
string   $format   —  sprintf error format..

[ Top ]

setRequired   [line 150]

array &setRequired( array &$ret, array $set, [string $format = '<span class="required">*</span>'])

setRequired - sets the prefix of an element to a value..

HTML_Element_Factory::setRequired($elements,array('name',true));

  • Return: Array of HTML_Elements
  • Access: public

Parameters:

array   &$ret   —  of HTML_Element's
array   $set   —  key(tag name) => error
string   $format   —  sprintf error format..

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:59:56 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.