/** * Returns a given CamelCasedString as an lowercase string with underscores. * Example: Converts BlogExample to blog_example, and minimalValue to minimal_value * Taken from t3lib_div for backward compatibility * * @deprecated use tx_rnbase_util_Strings::camelCaseToLowerCaseUnderscored instead * * @param string $string: String to be converted to lowercase underscore * @return string lowercase_and_underscored_string */ public static function camelCaseToLowerCaseUnderscored($string) { self::logDeprecatedFunction(); tx_rnbase::load('tx_rnbase_util_Strings'); return tx_rnbase_util_Strings::camelCaseToLowerCaseUnderscored($string); }
/** * Converts field names for setters and geters * * @param string $string * @return string */ protected function underscore($string) { tx_rnbase::load('tx_rnbase_util_Strings'); return tx_rnbase_util_Strings::camelCaseToLowerCaseUnderscored($string); }