Hi everyone, Marat is right. At times 'str' type was intended to store any alphanumeric value supplied. Having in mind that int and string values would be stored in the same db column and data validation should be performed on caller side anyways, there was no real need to differentiate between those 2 types.
Have a good weekend Tomas Liubinas From: [email protected] [mailto:[email protected]] On Behalf Of MB Sent: Thursday, May 02, 2013 3:57 PM To: [email protected] Subject: Re: [oxid-dev-general] Var types INT and FLOAT missing for module settings i guess cause its hard to validate user inputs (or at least the effort wasn't worth it). I use 'str' type + intval() to get the value as an integer and sometimes a fallback default value if intval() returns 0 2013/5/2 Joachim Barthel <[email protected]<mailto:[email protected]>> Hi, when you want to save settings for your module with the variable types INT or FLOAT, you will get only the variable label, but no textbox will be displayed in the Admin. After taking a look to the source code, I know why. There are only the types 'bool', 'str', 'aarr', 'arr' and 'select' defined. (module_config-php, function _loadMetadataConfVars) Does anybody know, why there are not all types (even when the table oxconfig itself contains INT values)? Best Regards Joachim Barthel ----------------------------- OxAds<http://exchange.oxid-esales.com/de/Marketing/Produktmarketing/OxAds-0-3-Stable-CE-4-3-x-4-7-x.html> -- OxProbs<http://exchange.oxid-esales.com/de/Datenmanagement/Produktdaten/OxProbs-0-4-Stable-CE-4-3-x-4-7-x.html> -- Piwik-Plugin<http://exchange.oxid-esales.com/de/Controlling/Data-Mining/OXID-Plugin-fuer-Piwik-0-10-Stable-CE-4-3-x-4-7-x.html> _______________________________________________ dev-general mailing list [email protected]<mailto:[email protected]> http://dir.gmane.org/gmane.comp.php.oxid.general
_______________________________________________ dev-general mailing list [email protected] http://dir.gmane.org/gmane.comp.php.oxid.general
