Class: I2CE FieldContainer Factory (Development)

From IHRIS Wiki


This article describes the abstract class I2CE_FieldContainer_Factory .

This factory is used to create instances of I2CE_Form objects from the form name.

Variables

$instance

The single instance of this class.

$meta

Array of meta attributes indexed by named container

$fieldData

Array of meta attributes indexed by named container

$containerCache

@var protected array $conatinerCache. An doubly indexed array of of {I2CE_FieldContainer}s with the first index being the name of the container and the second being the id

Methods

__construct()

Constructor

_createContainer()

Worker method to create an instance of am I2CE_FieldContainer from the factory.

_getFieldData()

Worker method et data needed to create all the fields in this field container

_loadMetaAttributes()

Worker method et data needed to create all the fields in this field container

cleanup()

Cleanup any field containers

createContainer()

Return an instance of a I2CE_FieldContainer from the factory.

  • Defined in i2ce/modules/Forms/modules/Fields/lib/I2CE_FieldContainer_Factory.php on line 234
  • Signature: public function createContainer($nameId,$no_cache)
  • Parameters:
    • mixed $nameId
      The a string which is either the name of the field container, the name and id in the form of "$name|$id" or an array with two elements, the first is a name and the second is an id
    • boolean $no_cache
      Defaults to false. If true then we don't check the cache when the id is non-zero
      • Default Value: false
  • Returns: I2CE_FieldContianer
    or null on failure

exists()

Checks to see if the given field container name has been registered.

getContainerType()

Return type of container this factory makes

getFieldData()

Get data needed to create all the fields in this field container

getFieldNames()

Get the fields for the named container @param mixed $restict. Defaults to the empty array. If non-empty is data to restrict the field names returns.

getMetaAttribute()

Return the meta value for a given meta attribute of the named field container

getNames()

get the available names for this field container

hasMetaAttribute()

Return true if a given meta attribute exists for the named field container.

instance()

Return the instance of this factory and create it if it doesn't exist.

loadMetaAttributes()

Get data needed to create all the fields in this field container

removeFromCache()

Remvoe a given I2CE_FieldContainer from the cache

setMetaAttribute()

Set a meta attribtue for the named field container.

Inherited Methods

_hasMethod()

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

Inherited Fuzzy Methods

userMessage()

This method is inherited from I2CE_Fuzzy->userMessage()