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 45)
P4A_Object | --P4A_Widget | --P4A_Field
string
$align
= 'left' (line 123)
Field align.
integer
$allow_null
= false (line 109)
Defines if a SELECT has "none selected" record.
array
$buttons
= NULL (line 52)
Buttons collection.
data_source
$data
= NULL (line 59)
Data source for the field.
string
$data_description_field
= NULL (line 87)
The data source member that contains the descriptions for this field.
data_field
$data_field
= NULL (line 66)
Data source for the field.
data_field
$data_member
= NULL (line 73)
Will be used for future implementations.
string
$data_value_field
= NULL (line 80)
The data source member that contains the values for this field.
string
$encryption_type
= 'md5' (line 158)
Type of encryption to use for password fields
string
$formatted
= true (line 130)
Tells if the fields content is formatted or not.
string
$formatter_name
= NULL (line 137)
The formatter class name for the data field.
string
$format_name
= NULL (line 144)
The format name for the data field.
integer
$max_thumbnail_size
= 100 (line 102)
Max size in pixels for image thumbnail.
integer
$null_message
= NULL (line 116)
Defines the message for "none selected" record for select.
string
$type
= 'text' (line 95)
Field type.
boolean
$upload
= false (line 166)
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
$upload_subpath
= NULL (line 151)
Path under P4A_UPLOADS_PATH where uploads happens.
Inherited from P4A_Widget
P4A_Widget::$actions
P4A_Widget::$enabled
P4A_Widget::$label
P4A_Widget::$map_actions
P4A_Widget::$properties
P4A_Widget::$style
P4A_Widget::$template_name
P4A_Widget::$use_template
P4A_Widget::$value
P4A_Widget::$visible
P4A_Widget::$_temp_vars
Inherited from P4A_Object
P4A_Object::$_id
P4A_Object::$_map_actions
P4A_Object::$_name
P4A_Object::$_objects
P4A_Object::$_parent_id
Constructor P4A_Field (line 175)
Class constructor.
Istances the widget, sets name and initializes its value.
allowNull (line 974)
Used ony for select, sets the select to allow a "none selected" record.
cleanNewValue (line 649)
Resets the "new_value".
composeLabel (line 1321)
Gets the HTML rendered field's label.
composeStringProperties (line 1342)
Composes a string containing all the HTML properties of the widget.
Note: it will also contain the name and the value.
composeStringValue (line 1360)
Returns the field's value differently if we are in an '<input value="' environment on in a '<tag>value</tag>' environment.
enableUpload (line 1384)
fileDeleteOnClick (line 1122)
Action handler for file deletetion.
fileDownloadOnClick (line 1143)
Action handler for file download.
filePreviewOnClick (line 1131)
Action handler for file preview (only images).
format (line 609)
Format the given value using the current formatting options.
Empty values are not formatted.
If formatting is turned of it does nothing.
getAsCheckbox (line 1050)
Returns the HTML rendered field as checkbox.
getAsDate (line 696)
getAsFile (line 1076)
Returns the HTML rendered field as file upload.
getAsHidden (line 799)
Returns the HTML rendered field as '<input type="hidden"'.
getAsImage (line 1191)
Returns the HTML rendered field as image upload.
getAsLabel (line 813)
Returns the HTML rendered field as '<div>$value</div>'.
getAsMulticheckbox (line 934)
getAsMultiselect (line 891)
getAsPassword (line 736)
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 1004)
Returns the HTML rendered field as radio buttons group.
getAsRichTextarea (line 781)
Returns the HTML rendered field as '<input type="textarea"' with rich text editing features.
getAsSelect (line 845)
Returns the HTML rendered field as combo box.
getAsString (line 659)
Returns the HTML rendered field.
getAsText (line 683)
Returns the HTML rendered field as '<input type="text"'.
getAsTextarea (line 758)
Returns the HTML rendered field as '<input type="textarea"'.
getEncryptionType (line 525)
Returns the encryption type (for password fields)
getLabel (line 1311)
Returns the label for the field.
getMaxThumbnailSize (line 1289)
Returns the maximum size for image thumbnails.
getNewValue (line 329)
Returns the "new_value" for the field (with locale formatting).
getSourceDescriptionField (line 504)
Returns the name of the data source member that keeps the field's description.
getSourceValueField (line 494)
Returns the name of the data source member that keeps the field's value.
getStringValue (line 277)
Return the field's value always as string.
If the value is an array, it will be encoded in {value1, value2}
getType (line 514)
Returns the field's type.
getUnformattedNewValue (line 356)
Returns the "new_value" for the field (without locale formatting).
getUploadSubpath (line 1181)
Return the subpath for upload..
getValue (line 266)
Returns the value for the field.
isFormattable (line 534)
Returns true if the field is text or textarea.
isFormatted (line 552)
Returns true if a formatting format for the field has been set.
isNullAllowed (line 994)
Used ony for select, returns if the select allows a "none selected" record.
noAllowNull (line 984)
Used ony for select, sets the select to do not allow a "none selected" record.
setAlign (line 1331)
Sets the alignment property for the field.
setDataField (line 201)
Sets a data field as current data_field.
This changes default text alignment for integer, decimal, float, date, time to right.
setDefaultVisualizationProperties (line 226)
Sets the default visualization property for the field.
setEncryptionType (line 408)
Set type of encryption to use for password fields (md5|none)
setFormat (line 583)
Sets the field formatter and format.
This also turns formatting on.
Eg: set_format('numbers', 'decimal')
setFormatted (line 561)
Sets the field as formatted.
setLabel (line 1301)
Sets the label for the field.
In rendering phase it will be added with ': '.
setMaxThumbnailSize (line 1270)
Sets the maximum size for image thumbnails.
setNewValue (line 294)
Examines the value passed by the web form and set the new value.
setSource (line 426)
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 481)
Sets what data source member is the keeper of the field's description.
setSourceValueField (line 469)
Sets what data source member is the keeper of the field's value.
setType (line 380)
Sets the field's type.
setUploadSubpath (line 1163)
Sets the subpath of P4A_UPLOADS_PATH where the upload will happen.
setValue (line 256)
Sets the value for the field.
unformat (line 631)
Takes the formatted passed value and takes it back to its unformatted form.
unsetFormat (line 594)
Removes formatting options and turns formatting off.
unsetFormatted (line 570)
Sets the field as not formatted.
unsetMaxThumbnailSize (line 1279)
Removes the maximum size for image thumbnails.
unsetUploadSubpath (line 1172)
Removes the subpath for upload.
Inherited From P4A_Widget
P4A_Widget::addAction()
P4A_Widget::addTempVar()
P4A_Widget::changeEvent()
P4A_Widget::clearTemplateVars()
P4A_Widget::clearTempVars()
P4A_Widget::composeStringActions()
P4A_Widget::composeStringClassStyle()
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::getHeight()
P4A_Widget::getLabel()
P4A_Widget::getProperty()
P4A_Widget::getStyleProperty()
P4A_Widget::getValue()
P4A_Widget::getWidth()
P4A_Widget::isEnabled()
P4A_Widget::isVisible()
P4A_Widget::onChange()
P4A_Widget::onClick()
P4A_Widget::onKeyPress()
P4A_Widget::onMouseOver()
P4A_Widget::onReturnPress()
P4A_Widget::p4a_widget()
P4A_Widget::raise()
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::setValue()
P4A_Widget::setVisible()
P4A_Widget::setWidth()
P4A_Widget::unrequireConfirmation()
P4A_Widget::unsetProperty()
P4A_Widget::unsetStyleProperty()
P4A_Widget::useTemplate()
Inherited From P4A_Object
P4A_Object::actionHandler()
P4A_Object::build()
P4A_Object::destroy()
P4A_Object::errorHandler()
P4A_Object::getId()
P4A_Object::getName()
P4A_Object::getObjectType()
P4A_Object::getParentID()
P4A_Object::implementMethod()
P4A_Object::intercept()
P4A_Object::isActionTriggered()
P4A_Object::p4a_object()
P4A_Object::setName()
P4A_Object::setParentID()
P4A_Object::void()
Documentation generated on Fri, 26 May 2006 12:43:08 +0200 by phpDocumentor 1.3.0RC5