protected static function _replaceConstants($value)
    {
        foreach (self::_getConstants() as $constant) {
            if (strstr($value, $constant)) {
                $value = str_replace($constant, constant($constant), $value);
            }
        }
        return $value;
    }
protected static function _replaceConstants($value)
    {
        foreach (self::_getConstants() as $constant) {
            if (strstr($value, $constant)) {
                $value = str_replace($constant, constant($constant), $value);
            }
        }
        return $value;
    }
protected static function _replaceConstants ( $ value ) { foreach ( self :: _getConstants ( ) as $ constant ) { if ( strstr ( $ value , $ constant ) ) { $ value = str_replace ( $ constant , constant ( $ constant ) , $ value ) ; } } return $ value ; }
Replace any constants referenced in a string with their values

@param  string $value
@return string
Replace any constants referenced in a string with their values