[cvs] [Wiki] changed: NewFieldType
Wiki Guest
wiki at wiki.horde.org
Sun Aug 21 20:07:00 PDT 2005
guest [65.19.150.231] Sun, 21 Aug 2005 20:07:00 -0700
Modified page: http://wiki.horde.org/NewFieldType
New Revision: 11.0
Change log: Revert
@@ -252,9 +252,9 @@
*
* For example, a boolean field might appear on an edit form as a
* checkbox and return the value "On" if the box is checked. For a
* boolean field type, this method would convert "On" to "t", which is
- * the way the !PostgreSQL database likes to receive its boolean true.
+ * the way the PostgreSQL database likes to receive its boolean true.
*
* This method is not responsible for quoting or escaping the value.
*
* @param value the value received from the HTML form.
@@ -340,9 +340,9 @@
*/
Function Get_Display_Html ($value)
{
$value = $this->Get_Display_Text ($value);
- if ( !IsBlank ($value) )
+ if ( IsBlank ($value) )
return " ";
else
return htmlspecialchars ($value);
}
@@ -350,14 +350,14 @@
//}}}
//{{{ Get_Display_TeX()
/**
- * This method translates a database value into an !TeX representation
- * that you might display to a user. This method uses !TeX markup for
+ * This method translates a database value into an TeX representation
+ * that you might display to a user. This method uses TeX markup for
* formatting if necessary.
*
* Implementors of this method in derived classes should ensure that the
- * returned string is properly escaped for !TeX output or call this base
+ * returned string is properly escaped for TeX output or call this base
* implementation.
*
* @param value the value retreived from the database.
* @returns a human-readable, marked-up representation of the value.
@@ -410,9 +410,9 @@
$postvar = $base."[".$this->info[field_name]."]";
if ( $post[validation_failed] )
eval("\$value = \$$postvar;");
- elseif ( isset($store[$postvar]) )
+ elseif ( IsSet($store[$postvar]) )
$value = $store[$postvar];
return ($value);
}
@@ -544,9 +544,9 @@
else
$info = $r->Fetch_Row (0);
if ( $r )
$r->Free ();
- if ( !IsBlank ($info["field_edit_type"]) )
+ if ( IsBlank ($info["field_edit_type"]) )
$info["field_edit_type"] = 'Field';
include_once "class.$info[field_edit_type].php";
$field_cache[$name] = new $info['field_edit_type'] ($info, $field_options);
return $field_cache[$name];
More information about the cvs
mailing list