A 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
Field align.
Defines if a SELECT has "none selected" record.
Buttons collection.
Data source for the field.
The data source member that contains the descriptions for this field.
Data source for the field.
Will be used for future implementations.
The data source member that contains the values for this field.
Type of encryption to use for password fields
Tells if the fields content is formatted or not.
The formatter class name for the data field.
The format name for the data field.
Max size in pixels for image thumbnail.
The multivalue separator
Defines the message for "none selected" record for select.
rich textarea theme/toolbar (advanced|simple)
buttons for rich textarea toolbars
Field type.
Is upload enabled on rich text area? This is disabled by default for security reasons, enable it only after a well done permission check.
Path under P4A_UPLOADS_PATH where uploads happens.
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
Class constructor.
Istances the widget, sets name and initializes its value.
Used ony for select, sets the select to allow a "none selected" record.
Resets the "new_value".
Gets the HTML rendered field's label.
Composes a string containing all the HTML properties of the widget.
Note: it will also contain the name and the value.
Returns the field's value differently if we are in an '<input value="' environment on in a '<tag>value</tag>' environment.
Action handler for file deletetion.
Action handler for file download.
Action handler for file preview (only images).
Format the given value using the current formatting options.
Empty values are not formatted.
If formatting is turned of it does nothing.
Returns the HTML rendered field as checkbox.
Returns the HTML rendered field as file upload.
Returns the HTML rendered field as '<input type="hidden"'.
Returns the HTML rendered field as image upload.
Returns the HTML rendered field as '<div>$value</div>'.
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.
Returns the HTML rendered field as radio buttons group.
Returns the HTML rendered field as '<input type="textarea"' with rich text editing features.
Returns the HTML rendered field as combo box.
Returns the HTML rendered field.
Returns the HTML rendered field as '<input type="text"'.
Returns the HTML rendered field as '<input type="textarea"'.
Returns the encryption type (for password fields)
Returns the error message.
Returns the label for the field.
Returns the maximum size for image thumbnails.
Returns the "new_value" for the field (with locale formatting).
DOESN'T WORK WITH FCK
returns all toolbars buttons
Returns the name of the data source member that keeps the field's description.
Returns the name of the data source member that keeps the field's value.
Returns the "new_value" for the field to make safe SQL query
Returns the "value" for the field to make safe SQL query
Return the field's value always as string.
If the value is an array, it will be encoded in {value1, value2}
Returns the field's type.
Returns the "new_value" for the field (without locale formatting).
Return the subpath for upload..
Returns the value for the field.
Returns true if the field is text or textarea.
Returns true if a formatting format for the field has been set.
Used ony for select, returns if the select allows a "none selected" record.
Used ony for select, sets the select to do not allow a "none selected" record.
Sets the alignment property for the field.
Sets a data field as current data_field.
This changes default text alignment for integer, decimal, float, date, time to right.
Sets the default visualization property for the field.
Set type of encryption to use for password fields (md5|none)
Sets the error message.
Sets the field formatter and format.
This also turns formatting on.
Eg: set_format('numbers', 'decimal')
Sets the field as formatted.
Sets the label for the field.
In rendering phase it will be added with ': '.
Sets the maximum size for image thumbnails.
Examines the value passed by the web form and set the new value.
sets the rich textarea theme (Basic|Default|Full)
sets buttons for every richtextarea toolbar
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.
Sets what data source member is the keeper of the field's description.
Sets what data source member is the keeper of the field's value.
Sets the field's type.
Sets the subpath of P4A_UPLOADS_PATH where the upload will happen.
Sets the value for the field.
Takes the formatted passed value and takes it back to its unformatted form.
Removes formatting options and turns formatting off.
Sets the field as not formatted.
Removes the maximum size for image thumbnails.
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