Back to PhocacartText class

Method parseDbColumnParameter

public static
parseDbColumnParameter
(mixed $string, mixed &$params = array())

Method parseDbColumnParameter - Source code

public static function parseDbColumnParameter($string, &$params = array())
{
    $stringA = explode('=', $string);
    if (isset($stringA[1])) {
        $pos = strpos($stringA[1], 'E');
        if ($pos !== false) {
            $params['edit'] = true;
        }
    }
    if (isset($stringA[0])) {
        return PhocacartText::filterValue($stringA[0], 'alphanumeric2');
    }
    return false;
}