#include <httpform.h>
Inheritance diagram for PHTTPFieldArray:
Public Member Functions | |
PHTTPFieldArray (PHTTPField *baseField, BOOL ordered, PINDEX fixedSize=0) | |
~PHTTPFieldArray () | |
virtual PHTTPField * | NewField () const |
virtual void | ExpandFieldNames (PString &text, PINDEX start, PINDEX &finish) const |
virtual void | GetHTMLTag (PHTML &html) const |
virtual void | LoadFromConfig (PConfig &cfg) |
virtual void | SaveToConfig (PConfig &cfg) const |
virtual void | SetAllValues (const PStringToString &data) |
virtual PINDEX | GetSize () const |
void | SetSize (PINDEX newSize) |
PStringArray | GetStrings (PConfig &cfg) |
void | SetStrings (PConfig &cfg, const PStringArray &values) |
Protected Member Functions | |
void | AddBlankField () |
void | AddArrayControlBox (PHTML &html, PINDEX fld) const |
void | SetArrayFieldName (PINDEX idx) const |
Protected Attributes | |
PHTTPField * | baseField |
BOOL | orderedArray |
BOOL | canAddElements |
PHTTPFieldArray::PHTTPFieldArray | ( | PHTTPField * | baseField, | |
BOOL | ordered, | |||
PINDEX | fixedSize = 0 | |||
) |
PHTTPFieldArray::~PHTTPFieldArray | ( | ) |
virtual PHTTPField* PHTTPFieldArray::NewField | ( | ) | const [virtual] |
Create a new field of the same class as the current field.
Reimplemented from PHTTPCompositeField.
virtual void PHTTPFieldArray::ExpandFieldNames | ( | PString & | text, | |
PINDEX | start, | |||
PINDEX & | finish | |||
) | const [virtual] |
Reimplemented from PHTTPCompositeField.
virtual void PHTTPFieldArray::GetHTMLTag | ( | PHTML & | html | ) | const [virtual] |
Convert the field to HTML form tag for inclusion into the HTTP page.
Reimplemented from PHTTPCompositeField.
virtual 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.
virtual void PHTTPFieldArray::SaveToConfig | ( | PConfig & | cfg | ) | const [virtual] |
Set the value of the sub-field into the PConfig. If the field is not composite then it always sets the value as for the non-indexed version.
Reimplemented from PHTTPCompositeField.
virtual void PHTTPFieldArray::SetAllValues | ( | const PStringToString & | data | ) | [virtual] |
Set the value of the field in a list of fields.
Reimplemented from PHTTPCompositeField.
virtual PINDEX PHTTPFieldArray::GetSize | ( | ) | const [virtual] |
Get the number of sub-fields in the composite field. Note that this is the total including any composite sub-fields, ie, it is the size of the whole tree of primitive fields.
Reimplemented from PHTTPCompositeField.
void PHTTPFieldArray::SetSize | ( | PINDEX | newSize | ) |
PStringArray PHTTPFieldArray::GetStrings | ( | PConfig & | cfg | ) |
cfg | Config file to get strings from |
void PHTTPFieldArray::SetStrings | ( | PConfig & | cfg, | |
const PStringArray & | values | |||
) |
cfg | Config file to Set strings to |
values | Strings to set |
void PHTTPFieldArray::AddBlankField | ( | ) | [protected] |
void PHTTPFieldArray::AddArrayControlBox | ( | PHTML & | html, | |
PINDEX | fld | |||
) | const [protected] |
void PHTTPFieldArray::SetArrayFieldName | ( | PINDEX | idx | ) | const [protected] |
PHTTPField* PHTTPFieldArray::baseField [protected] |
BOOL PHTTPFieldArray::orderedArray [protected] |
BOOL PHTTPFieldArray::canAddElements [protected] |