Class UserDataContainer

Description

A UserDataContainer is like a DataContainer, but is targeted towards data used from http forms instead of configuration options in a script.

  • version: $Id: UserDataContainer.abstract.php,v 1.6 2007/09/05 19:55:22 adamfranco Exp $
  • license: GNU General Public License (GPL)
  • copyright: Copyright © 2005, Middlebury College

Located in /harmoni/core/utilities/UserDataContainer.abstract.php (line 14)

DataContainerInterface
   |
   --DataContainer
      |
      --UserDataContainer
Variable Summary
array $_setFields
Method Summary
integer countChanged ()
boolean hasValue (mixed $field)
void populate (array $data)
boolean set (string $field, mixed $val)
Variables
array $_setFields (line 19)
  • var: An array of fields that have been set.
  • access: private

Inherited Variables

Inherited from DataContainer

DataContainer::$_fieldSet
DataContainer::$_ruleSet
Methods
countChanged (line 57)

Returns the number of fields for which new values have been specified.

  • access: public
integer countChanged ()
hasValue (line 48)

Checks to see if this field has been set.

  • access: public
boolean hasValue (mixed $field)
populate (line 68)

Populates the attached FieldSet without processing rules or keeping track of what has been set.

  • access: public
void populate (array $data)
  • array $data: An array of key=>value pairs.
set (line 28)

The set method sets the value for a field while checking constrictions.

  • return: True if setting $field succeeds.
  • access: public
boolean set (string $field, mixed $val)
  • string $field: The field to set.
  • mixed $val: The value to set $field to.

Redefinition of:
DataContainer::set()
The set method sets the value for a field while checking constrictions.

Inherited Methods

Inherited From DataContainer

DataContainer::add()
DataContainer::checkAll()
DataContainer::get()
DataContainer::init()
DataContainer::set()

Inherited From DataContainerInterface

DataContainerInterface::add()
DataContainerInterface::checkAll()
DataContainerInterface::get()
DataContainerInterface::init()
DataContainerInterface::set()

Documentation generated on Wed, 19 Sep 2007 10:27:39 -0400 by phpDocumentor 1.3.0RC3