Logo Search packages:      
Sourcecode: pwlib version File versions  Download package

void PHTTPFieldArray::LoadFromConfig ( PConfig &  cfg ) [virtual]

Get the value of the PConfig to the sub-field. If the field is not composite then it always sets the value as for the non-indexed version.

Reimplemented from PHTTPCompositeField.

Definition at line 996 of file httpform.cxx.

References GetSize().

Referenced by GetStrings().

{
  if (canAddElements) {
    PString section, key;
    switch (SplitArraySizeKey(fullName, section, key)) {
      case 1 :
        SetSize(cfg.GetInteger(key, GetSize()));
        break;
      case 2 :
        SetSize(cfg.GetInteger(section, key, GetSize()));
    }
  }
  PHTTPCompositeField::LoadFromConfig(cfg);
}

Here is the call graph for this function:

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index