[cvs] [Wiki] changed: FieldTypeProposal
Wiki Guest
wiki at wiki.horde.org
Wed May 26 13:33:08 PDT 2004
guest [65.112.23.131] Wed, 26 May 2004 13:33:07 -0700
Modified page: http://wiki.horde.org/display.php?page=FieldTypeProposal
New Revision: 1.4
@@ -97,9 +97,9 @@
Here are some notes:
* The Get_Field() function at the end is equivalent to Horde's ::singleton() method.
* Data describing the field is stored in a table in the database. Fields are loaded by name. We design our database schemas so that all fields have unique names (we prepend the field name with the table name, except with foreign keys where we use the same name as the referenced field). This way we can just say to our framework "get me a user_id" and it will return a class which can:
- * Render the value as text (::Get_Display_Text()), HTML (::Get_Display_Html()), or TeX (::Get_Display_TeX())
+ * Render the value as text (::Get_Display_Text()), HTML (::Get_Display_Html()), or !TeX (::Get_Display_TeX())
* Render the value as an HTML field for input. (::Get_Edit_Html())
* Convert the HTML representation back into the data representation (::Get_Db_Value()).
* Render a search field for the value (::Get_Filter_Html()). For a date field, this might render a start date and end date fields.
* Convert the HTML filter representation into an SQL filter expression. (In the previous example, it might return "$field_name >= <date> AND $field_name <= <date2>". If all blank, it will return "TRUE". (::Get_Filter_SQL()).
More information about the cvs
mailing list