cchost
[ class tree: cchost ] [ index: cchost ] [ all elements ]

Class: CCUserProfileForm

Source Location: /cclib/cc-user.inc

Class Overview

CCForm
   |
   --CCUploadForm
      |
      --CCUserProfileForm

Sets up an HTML form that is capable of receiving file uploads.


Variables

Methods


Inherited Methods

Class: CCUploadForm

CCUploadForm::CCUploadForm()
Constructor
CCUploadForm::DoSubmitMessage()
Adds the necessary javascript macros to show submit message
CCUploadForm::EnableSubmitMessage()
Shows or hides the message during file submits
CCUploadForm::FinalizeAvatarUpload()
Avatar upload is not completed until this helper is called.
CCUploadForm::GenerateForm()
Generate the form
CCUploadForm::generator_avatar()
Handles generation of HTML field for avatars.
CCUploadForm::generator_upload()
Handles generation of HTML field for simple file uploads.
CCUploadForm::validator_avatar()
Validates HTML field for avatars at POST time.
CCUploadForm::validator_upload()
Validates HTML field for file uploads at POST time.

Class: CCForm

CCForm::CCForm()
Constructor
CCForm::AddFormField()
Set (or replace) a field's meta-data structure.
CCForm::AddFormFields()
Add meta-data for HTML form fields
CCForm::AddTemplateVars()
Set (or replace) a a group of template fields to be passed to the template generator
CCForm::CallFormMacro()
Sets up for custom macros to be called when generating the form
CCForm::FormFieldExists()
Checks the existance of a field in the form
CCForm::GenerateForm()
Prepares form variables for display.
CCForm::GenerateHTML()
Generate HTML from this form.
CCForm::generator_checkbox()
Handles generation of HMTL field <input type='checkbox'
CCForm::generator_date()
Handles generation a bunch of &lt;select HTML fields that represents a date/time
CCForm::generator_email()
Handles generation of &lt;input type='text' HTML field
CCForm::generator_localdir()
Handles generation of HTML field
CCForm::generator_metalmacro()
CCForm::generator_passthru()
Handles generation of HTML field (passes 'value' as straight html)
CCForm::generator_password()
Handles generation of &lt;input type='password' HTML field
CCForm::generator_pattern()
Validates the user against a regex pattern
CCForm::generator_radio()
Handles generation of several &lt;input type='radio' HTML field
CCForm::generator_regex()
Accepts a regular expression as input and compiles to verify it
CCForm::generator_select()
Handles generation &lt;select and several &lt;option HTML field
CCForm::generator_statictext()
Handles generation of HTML field &lt;span
CCForm::generator_tagsedit()
Handles generation of &lt;input type='text' HTML field
CCForm::generator_textarea()
Handles generation of HTML field &lt;textarea
CCForm::generator_textedit()
Handles generation of HMTL field INPUT type='text'
CCForm::GetFieldError()
Returns the error the validator set on this field
CCForm::GetFormFieldItem()
Retrieves a specific element from the field's meta-data structure.
CCForm::GetFormID()
Retrieves the value that will be put into the HTML forms 'id' attribute
CCForm::GetFormValue()
Get the current value in a form field.
CCForm::GetFormValues()
Returns an array of all the fields in the table.
CCForm::GetTemplateMacro()
Retrieves the main template macro to be used for this form (default is 'html_form')
CCForm::GetTemplateVar()
Get template data to be passed to the template generator
CCForm::GetTemplateVars()
Get all template vars for this form (used by page generator)
CCForm::InnerInsertFormFields()
Put fields into a specific place into an array of fields
CCForm::InsertFormFields()
Put fields into a specific place in the form
CCForm::PopulateValues()
Populate the values of the field with specific data (e.g. a database record)
CCForm::SetFieldError()
Sets error text when a validator has failed on a given field.
CCForm::SetFormFieldItem()
Set the value for a specific element in a field's meta-data structure.
CCForm::SetFormHelp()
Alias for SetHelpText
CCForm::SetFormValue()
Set the value of an html form field.
CCForm::SetHandler()
Set the 'action' field of the form element. (The default is the current url.)
CCForm::SetHelpText()
Puts up a helper caption text above the form.
CCForm::SetHiddenField()
Creates a hidden form field and sets it's value
CCForm::SetSubmitText()
Set the text for the submit button. (Set to '' to remove the button from the form.)
CCForm::SetTemplateMacro()
Determines the main template macro to be used for this form (default is 'html_form')
CCForm::SetTemplateVar()
Set (or replace) a template field to be passed to the template generator
CCForm::TemplateVarExists()
Test if a specific form adornment template exists.
CCForm::ValidateFields()
Validates the fields in this form, called during POST processing.
CCForm::validator_checkbox()
Handles validator for HTML field, called during ValidateFields()
CCForm::validator_date()
Handles validator for HTML field, called during ValidateFields()
CCForm::validator_email()
Handles validator for HTML field, called during ValidateFields()
CCForm::validator_localdir()
Handles validator for HTML field, called during ValidateFields()
CCForm::validator_metalmacro()
Handles validator for HTML field, called during ValidateFields()
CCForm::validator_must_exist()
Generic 'check-for-null-value' validator for HTML field, called during ValidateFields()
CCForm::validator_passthru()
Handles validator for HTML field, called during ValidateFields()
CCForm::validator_password()
Handles validator for HTML field, called during ValidateFields()
CCForm::validator_pattern()
Validates the user against a regex pattern
CCForm::validator_radio()
Handles validator for HTML field, called during ValidateFields()
CCForm::validator_regex()
Validates that a regular expression will compile
CCForm::validator_select()
Handles validator for HTML field, called during ValidateFields()
CCForm::validator_statictext()
Handles validator for HTML field, called during ValidateFields()
CCForm::validator_tagsedit()
Handles validator for HTML field, called during ValidateFields()
CCForm::validator_textarea()
Handles validator for HTML field, called during ValidateFields()
CCForm::validator_textedit()
Handles validator for HTML field, called during ValidateFields()
CCForm::_fetch_post_value()
Internal: return a $_POST value to be used as a value

Class Details

[line 189]
Sets up an HTML form that is capable of receiving file uploads.

Derive from this class when your form has file upload fields. It has built in support avatar images.




[ Top ]


Class Variables

$record =

[line 191]


Type:   mixed


[ Top ]



Class Methods


constructor CCUserProfileForm [line 193]

CCUserProfileForm CCUserProfileForm( mixed $userid, mixed $avatar_dir)



[ Top ]


Documentation generated on Sat, 17 Nov 2007 01:04:57 +0000 by phpDocumentor 1.3.0RC4