$factory->fromArray()

$factory->fromArray() – 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.

Synopsis

require_once 'Flexy/Factory.php';

array HTML_Template_Flexy_Factory::fromArray ( array $ar , optional $ret = array() )

Description

This package is not documented yet.

Parameter

  • $ar key(tag name) => value

  • $ret array key(tag name) => HTML_Element

Return value

return Array of HTML_Template_Flexy_Elements

Throws

throws no exceptions thrown

Note

Not documented yet.

freeze - freeze's an element. - just copies the value to the override. (Previous) fromArrayPrefixed - takes a multi dimensional array, and builds the 'xxx[sss][xx]' => value (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.