Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: e187eabdaf
Fetching contributors…

Cannot retrieve contributors at this time

executable file 28 lines (22 sloc) 0.63 kb
<?php
class RC_Format {
function GetInputName($fieldName) {
$name = 'rc_cwp_meta_' . str_replace(' ', '_', $fieldName);
$name = attribute_escape(str_replace('.', '$DOT$', $name));
return $name;
}
function GetFieldName($inputName) {
$fieldName = str_replace('rc_cwp_meta_', '', $inputName);
//$fieldName = str_replace('_', ' ', $fieldName);
$fieldName = str_replace('$DOT$', '.', $fieldName);
return $fieldName;
}
function TextToSql($value) {
$value = trim($value);
$sql = $value == '' ? 'NULL' : "'$value'";
return $sql;
}
function TrimArrayValues(&$value, $key) {
$value = trim($value);
}
}
Jump to Line
Something went wrong with that request. Please try again.