P4A_FieldA fields is a GUI element that shows its value, and this value can be changed.
Located in /p4a/objects/widgets/field.php (line 41)
P4A_Object | --P4A_Widget | --P4A_Field
string
$align
= 'left' (line 97)
Field alignment
boolean
$allow_null
= false (line 85)
Defines if a SELECT has "none selected" record
P4A_Collection
$buttons
= null (line 46)
P4A_Data_Source
$data
= null (line 51)
string
$data_description_field
= null (line 68)
The data source member that contains the descriptions for this field
P4A_Data_Field
$data_field
= null (line 56)
string
$data_value_field
= null (line 62)
The data source member that contains the values for this field.
string
$encryption_type
= 'md5' (line 109)
Type of encryption to use for password fields
boolean
$formatted
= true (line 103)
Tells if the fields content is formatted or not
string
$input_mask
= null (line 147)
integer
$max_thumbnail_size
= 100 (line 79)
Max size in pixels for image thumbnail
string
$multivalue_separator
= '' (line 132)
string
$null_message
= null (line 91)
Defines the message for "none selected" record for select
string
$rich_textarea_theme
= 'Default' (line 121)
string
$type
= 'text' (line 73)
boolean
$upload
= false (line 116)
Is upload enabled on rich text area? This is disabled by default for security reasons, enable it only after a well done permission check.
string
$_error
= null (line 127)
The error message
Zend_Validate
$_validator_chain
= null (line 137)
string
$_year_range
= null (line 142)
Inherited from P4A_Widget
P4A_Widget::$actions
P4A_Widget::$enabled
P4A_Widget::$label
P4A_Widget::$properties
P4A_Widget::$style
P4A_Widget::$template_name
P4A_Widget::$use_template
P4A_Widget::$visible
P4A_Widget::$_css_classes
P4A_Widget::$_temp_vars
P4A_Widget::$_tpl_vars
Inherited from P4A_Object
P4A_Object::$_helpers
P4A_Object::$_id
P4A_Object::$_map_actions
P4A_Object::$_name
P4A_Object::$_objects
P4A_Object::$_parent_id
Constructor __construct (line 153)
addValidator (line 1384)
allowNull (line 982)
Used ony for select, sets the select to allow a "none selected" record
buildDeletePreviewDownloadButtons (line 1235)
composeLabel (line 1281)
Renders the label to HTML
composeStringProperties (line 1302)
Composes a string containing all the HTML properties of the widget.
Note: it will also contain the name and the value.
composeStringValue (line 1319)
Returns the field's value differently if we are in an '<input value="' environment on in a '<tag>value</tag>' environment.
enableUpload (line 1347)
Enables upload for rich_textarea fields
fileDeleteOnClick (line 1134)
Action handler for file deletetion
fileDownloadOnClick (line 1161)
Action handler for file download
filePreviewOnClick (line 1143)
Action handler for file preview (only images)
format (line 582)
Format the given value using the current formatting options.
Empty values are not formatted.
If formatting is turned of it does nothing.
getAsCheckbox (line 1058)
Returns the HTML rendered field as checkbox
getAsDate (line 684)
getAsFile (line 1086)
Returns the HTML rendered field as file upload
getAsHidden (line 791)
Returns the HTML rendered field as '<input type="hidden"'.
getAsImage (line 1189)
Returns the HTML rendered field as image upload
getAsLabel (line 801)
Returns the HTML rendered field as '<div>$value</div>'.
getAsMulticheckbox (line 934)
getAsMultiselect (line 885)
getAsPassword (line 735)
Returns the HTML rendered field as '<input type="password"'.
We use P4A_PASSWORD_OBFUSCATOR for password value so the old password isn't sent over the net.
getAsRadio (line 1007)
Returns the HTML rendered field as radio buttons group
getAsRichTextarea (line 780)
Returns the HTML rendered field as '<input type="textarea"' with rich text editing features.
getAsSelect (line 832)
Returns the HTML rendered field as combo box.
getAsString (line 619)
Returns the HTML rendered field.
getAsText (line 660)
Returns the HTML rendered field as '<input type="text"'.
getAsTextarea (line 757)
Returns the HTML rendered field as '<input type="textarea"'.
getEncryptionType (line 539)
Returns the encryption type (for password fields)
getError (line 238)
Returns the error message
getInputMask (line 1440)
getLabel (line 1272)
Returns the label for the field
getMaxThumbnailSize (line 1227)
Returns the maximum size for image thumbnails.
getNewValue (line 321)
Returns the "new_value" for the field (with locale formatting).
getNormalizedNewValue (line 357)
Returns the "new_value" for the field (without locale formatting).
getRichTextareaTheme (line 1374)
getSourceDescriptionField (line 522)
Returns the name of the data source member that keeps the field's description.
getSourceValueField (line 513)
Returns the name of the data source member that keeps the field's value.
getSQLNewValue (line 347)
Returns the "new_value" for the field to make safe SQL query
getSQLValue (line 273)
Returns the "value" for the field to create safe SQL query
getTooltip (line 256)
getType (line 530)
getUploadSubpath (line 1180)
getValue (line 264)
getVisualizedDataType (line 195)
getYearRange (line 725)
Retrieve the range of years that can be selected with the datepicker
isFormattable (line 547)
Returns true if the field is text, textarea, label or date
isFormatted (line 566)
Tells you if the field is formatted or not, also sets formatting on/off
isNullAllowed (line 998)
Used ony for select, returns if the select allows a "none selected" record
isUploadEnabled (line 1356)
isValid (line 1409)
Validate the normalized new value.
Returns true if there are no validators or if validation passes, returns the array of error messages if validators fail.
normalize (line 602)
Takes the formatted passed value and takes it back to its normalized form.
removeValidator (line 1394)
setAlign (line 1291)
Sets the alignment property for the field.
setDataField (line 176)
Sets a data field as current data_field.
This changes default text alignment for integer, decimal, float, date, time to right.
setEncryptionType (line 431)
Set type of encryption to use for password fields
setInputMask (line 1431)
Sets the input mask for the field (only if field type is "text").
The mask is used to guide users typing data in the right format. When using this feature users will be able to type only letters and numbers while the mask can contain special charset too.
setLabel (line 1262)
Sets the label for the field.
In rendering phase it will be added with ': '.
setMaxThumbnailSize (line 1217)
Sets the maximum size for image thumbnails
setMultivalueSeparator (line 971)
Use this method when you're creating a multivalue field which rely on a single db field instead of an external table
setNewValue (line 283)
Examines the value passed by the web form and set the new value.
setRichTextareaTheme (line 1365)
sets the rich textarea theme (Basic|Default|Full)
setSource (line 450)
If we use fields like combo box we have to set a data source.
By default we'll take the data source primary key as value field and the first fiels (not pk) as description.
setSourceDescriptionField (line 503)
When the field has a source, this is used to know which source's field keeps the description to be displayed by this field
setSourceValueField (line 492)
When the field has a source, this is used to know which source's field keeps the value to be used in this field
setType (line 381)
setUploadSubpath (line 1171)
Sets the subpath of P4A_UPLOADS_PATH where the upload will happen
setYearRange (line 715)
Sets the range of years that can be selected with the datepicker
Inherited From P4A_Widget
P4A_Widget::__construct()
P4A_Widget::addAction()
P4A_Widget::addAjaxAction()
P4A_Widget::addCSSClass()
P4A_Widget::addTempVar()
P4A_Widget::changeEvent()
P4A_Widget::clearTemplateVars()
P4A_Widget::clearTempVars()
P4A_Widget::composeStringActions()
P4A_Widget::composeStringClass()
P4A_Widget::composeStringProperties()
P4A_Widget::composeStringStyle()
P4A_Widget::disable()
P4A_Widget::display()
P4A_Widget::dropAction()
P4A_Widget::dropTempVar()
P4A_Widget::enable()
P4A_Widget::fetchTemplate()
P4A_Widget::getAccessKey()
P4A_Widget::getAsString()
P4A_Widget::getCSSClasses()
P4A_Widget::getHeight()
P4A_Widget::getLabel()
P4A_Widget::getProperty()
P4A_Widget::getStyleProperty()
P4A_Widget::getWidth()
P4A_Widget::isEnabled()
P4A_Widget::isVisible()
P4A_Widget::onBlur()
P4A_Widget::onChange()
P4A_Widget::onClick()
P4A_Widget::onDblClick()
P4A_Widget::onFocus()
P4A_Widget::onKeyDown()
P4A_Widget::onKeyPress()
P4A_Widget::onKeyUp()
P4A_Widget::onMouseDown()
P4A_Widget::onMouseMove()
P4A_Widget::onMouseOver()
P4A_Widget::onMouseUp()
P4A_Widget::onReturnPress()
P4A_Widget::onSelect()
P4A_Widget::redesign()
P4A_Widget::removeCSSClass()
P4A_Widget::requireConfirmation()
P4A_Widget::setAccessKey()
P4A_Widget::setBgcolor()
P4A_Widget::setBgimage()
P4A_Widget::setDefaultLabel()
P4A_Widget::setFontColor()
P4A_Widget::setFontWeight()
P4A_Widget::setHeight()
P4A_Widget::setInvisible()
P4A_Widget::setLabel()
P4A_Widget::setProperty()
P4A_Widget::setStyleProperty()
P4A_Widget::setVisible()
P4A_Widget::setWidth()
P4A_Widget::unrequireConfirmation()
P4A_Widget::unsetProperty()
P4A_Widget::unsetStyleProperty()
P4A_Widget::useTemplate()
Inherited From P4A_Object
P4A_Object::__construct()
P4A_Object::actionHandler()
P4A_Object::build()
P4A_Object::destroy()
P4A_Object::dropImplement()
P4A_Object::dropMethod()
P4A_Object::errorHandler()
P4A_Object::getId()
P4A_Object::getName()
P4A_Object::getObjectType()
P4A_Object::getParentID()
P4A_Object::implement()
P4A_Object::intercept()
P4A_Object::isActionTriggered()
P4A_Object::setName()
P4A_Object::setParentID()
P4A_Object::void()
P4A_Object::_loadHelper()
P4A_Object::__call()
Documentation generated on Tue, 02 Sep 2008 10:04:00 +0200 by phpDocumentor 1.4.2