' . 'g: ' . 'b: '; } } class BxSampleFormCheckerHelper extends BxDolFormCheckerHelper { protected $_sDiv = ','; /** * prepare RBG values to save to the DB */ function passRgb ($s) { if (!is_array($s)) return false; $sRet = ''; foreach ($s as $k => $v) $sRet .= (int)trim($v) . $this->_sDiv; return trim($sRet, $this->_sDiv); } /** * prepare RGB values to output to the screen */ function displayRgb ($s) { return explode($this->_sDiv, $s); } } /** @} */