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.
string
$multivalue_separator
= '' (line 194)
The multivalue separator
integer
$null_message
= NULL (line 116)
Defines the message for "none selected" record for select.
string
$rich_textarea_theme
= 'Default' (line 173)
rich textarea theme/toolbar (advanced|simple)
array
$rich_textarea_toolbars
= array() (line 180)
buttons for rich textarea toolbars
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.
string
$_error
= NULL (line 187)
The error message
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
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 P4A_Field (line 203)
Class constructor.
Istances the widget, sets name and initializes its value.
allowNull (line 1110)
Used ony for select, sets the select to allow a "none selected" record.
cleanNewValue (line 758)
Resets the "new_value".
composeLabel (line 1532)
Gets the HTML rendered field's label.
composeStringProperties (line 1553)
Composes a string containing all the HTML properties of the widget.
Note: it will also contain the name and the value.
composeStringValue (line 1571)
Returns the field's value differently if we are in an '<input value="' environment on in a '<tag>value</tag>' environment.
enableUpload (line 1595)
fileDeleteOnClick (line 1291)
Action handler for file deletetion.
fileDownloadOnClick (line 1319)
Action handler for file download.
filePreviewOnClick (line 1301)
Action handler for file preview (only images).
format (line 714)
Format the given value using the current formatting options.
Empty values are not formatted.
If formatting is turned of it does nothing.
getAsCheckbox (line 1195)
Returns the HTML rendered field as checkbox.
getAsColor (line 1486)
getAsDate (line 835)
getAsFile (line 1224)
Returns the HTML rendered field as file upload.
getAsHidden (line 925)
Returns the HTML rendered field as '<input type="hidden"'.
getAsImage (line 1374)
Returns the HTML rendered field as image upload.
getAsLabel (line 936)
Returns the HTML rendered field as '<div>$value</div>'.
getAsMulticheckbox (line 1066)
getAsMultiselect (line 1019)
getAsPassword (line 866)
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 1140)
Returns the HTML rendered field as radio buttons group.
getAsRichTextarea (line 913)
Returns the HTML rendered field as '<input type="textarea"' with rich text editing features.
getAsSelect (line 968)
Returns the HTML rendered field as combo box.
getAsString (line 778)
Returns the HTML rendered field.
getAsText (line 818)
Returns the HTML rendered field as '<input type="text"'.
getAsTextarea (line 889)
Returns the HTML rendered field as '<input type="textarea"'.
getAutoMaxlength (line 763)
getEncryptionType (line 630)
Returns the encryption type (for password fields)
getError (line 310)
Returns the error message.
getLabel (line 1522)
Returns the label for the field.
getMaxThumbnailSize (line 1481)
Returns the maximum size for image thumbnails.
getNewValue (line 405)
Returns the "new_value" for the field (with locale formatting).
getRichTextareaTheme (line 1619)
DOESN'T WORK WITH FCK
getRichTextareaToolbar (line 1639)
getRichTextareaToolbars (line 1649)
returns all toolbars buttons
getSourceDescriptionField (line 609)
Returns the name of the data source member that keeps the field's description.
getSourceValueField (line 599)
Returns the name of the data source member that keeps the field's value.
getSQLNewValue (line 432)
Returns the "new_value" for the field to make safe SQL query
getSQLValue (line 340)
Returns the "value" for the field to make safe SQL query
getStringValue (line 351)
Return the field's value always as string.
If the value is an array, it will be encoded in {value1, value2}
getTooltip (line 320)
getType (line 619)
Returns the field's type.
getUnformattedNewValue (line 443)
Returns the "new_value" for the field (without locale formatting).
getUploadSubpath (line 1364)
Return the subpath for upload..
getValue (line 330)
Returns the value for the field.
isFormattable (line 639)
Returns true if the field is text or textarea.
isFormatted (line 657)
Returns true if a formatting format for the field has been set.
isNullAllowed (line 1130)
Used ony for select, returns if the select allows a "none selected" record.
isUploadEnabled (line 1600)
noAllowNull (line 1120)
Used ony for select, sets the select to do not allow a "none selected" record.
setAlign (line 1542)
Sets the alignment property for the field.
setDataField (line 234)
Sets a data field as current data_field.
This changes default text alignment for integer, decimal, float, date, time to right.
setDefaultVisualizationProperties (line 258)
Sets the default visualization property for the field.
setEncryptionType (line 511)
Set type of encryption to use for password fields (md5|none)
setError (line 301)
Sets the error message.
setFormat (line 688)
Sets the field formatter and format.
This also turns formatting on.
Eg: set_format('numbers', 'decimal')
setFormatted (line 666)
Sets the field as formatted.
setLabel (line 1512)
Sets the label for the field.
In rendering phase it will be added with ': '.
setMaxThumbnailSize (line 1462)
Sets the maximum size for image thumbnails.
setMultivalueSeparator (line 1100)
setNewValue (line 368)
Examines the value passed by the web form and set the new value.
setRichTextareaTheme (line 1609)
sets the rich textarea theme (Basic|Default|Full)
setRichTextareaToolbar (line 1630)
sets buttons for every richtextarea toolbar
setSource (line 529)
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 586)
Sets what data source member is the keeper of the field's description.
setSourceValueField (line 574)
Sets what data source member is the keeper of the field's value.
setTooltip (line 315)
setType (line 468)
Sets the field's type.
setUploadSubpath (line 1346)
Sets the subpath of P4A_UPLOADS_PATH where the upload will happen.
setValue (line 291)
Sets the value for the field.
unformat (line 740)
Takes the formatted passed value and takes it back to its unformatted form.
unsetFormat (line 699)
Removes formatting options and turns formatting off.
unsetFormatted (line 675)
Sets the field as not formatted.
unsetMaxThumbnailSize (line 1471)
Removes the maximum size for image thumbnails.
unsetUploadSubpath (line 1355)
Removes the subpath for upload.
Inherited From P4A_Widget
P4A_Widget::addAction()
P4A_Widget::addAjaxAction()
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::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::p4a_widget()
P4A_Widget::raise()
P4A_Widget::redesign()
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::dropIntercept()
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()
P4A_Object::_loadHelper()
P4A_Object::__call()
Documentation generated on Mon, 07 Jan 2008 11:29:18 +0100 by phpDocumentor 1.4.0