Return the data stored in the given column.
public getProperty ( string $p_dbColumnName, boolean $p_forceFetchFromDatabase = false ) : mixed | ||
$p_dbColumnName | string | |
$p_forceFetchFromDatabase | boolean | Get the data from the database instead of cached value that is stored in the object. |
return | mixed | Return a string if the property exists, NULL if the value doesnt exist, or a PEAR_Error if $p_forceFetchFromDatabase is TRUE and there was a problem fetching the data. |
function getProperty($p_name) { switch ($p_name) { case 'content': global $Campsite; $content = preg_replace('!(../)*javascript/tinymce/plugins/emotions/img/!', $Campsite['WEBSITE_URL'].'/javascript/tinymce/plugins/emotions/img/', parent::getProperty($p_name)); return $content; break; default: return parent::getProperty($p_name); break; } }
public function getFieldValue($p_property, $p_forceFetchFromDatabase = false) { $dbColumnName = 'F'.$p_property; return parent::getProperty($dbColumnName, $p_forceFetchFromDatabase); }