diff --git a/docs/class-SmartFactory.ConfigSettingsManager.html b/docs/class-SmartFactory.ConfigSettingsManager.html index 7c5aa1a..fddced4 100644 --- a/docs/class-SmartFactory.ConfigSettingsManager.html +++ b/docs/class-SmartFactory.ConfigSettingsManager.html @@ -2329,7 +2329,7 @@

Uses

diff --git a/docs/class-SmartFactory.DatabaseWorkers.DBWorker.html b/docs/class-SmartFactory.DatabaseWorkers.DBWorker.html index 7d4f6b5..0c4de79 100644 --- a/docs/class-SmartFactory.DatabaseWorkers.DBWorker.html +++ b/docs/class-SmartFactory.DatabaseWorkers.DBWorker.html @@ -6013,7 +6013,7 @@

Source code

diff --git a/docs/class-SmartFactory.DatabaseWorkers.DBWorkerException.html b/docs/class-SmartFactory.DatabaseWorkers.DBWorkerException.html index 9979b6e..88238e5 100644 --- a/docs/class-SmartFactory.DatabaseWorkers.DBWorkerException.html +++ b/docs/class-SmartFactory.DatabaseWorkers.DBWorkerException.html @@ -376,7 +376,7 @@

Source code

diff --git a/docs/class-SmartFactory.DatabaseWorkers.MSSQL_DBWorker.html b/docs/class-SmartFactory.DatabaseWorkers.MSSQL_DBWorker.html index 7836e10..b0644a5 100644 --- a/docs/class-SmartFactory.DatabaseWorkers.MSSQL_DBWorker.html +++ b/docs/class-SmartFactory.DatabaseWorkers.MSSQL_DBWorker.html @@ -4881,7 +4881,7 @@

Source code

diff --git a/docs/class-SmartFactory.DatabaseWorkers.MySQL_DBWorker.html b/docs/class-SmartFactory.DatabaseWorkers.MySQL_DBWorker.html index 9ceff3e..e16afd1 100644 --- a/docs/class-SmartFactory.DatabaseWorkers.MySQL_DBWorker.html +++ b/docs/class-SmartFactory.DatabaseWorkers.MySQL_DBWorker.html @@ -4812,7 +4812,7 @@

Source code

diff --git a/docs/class-SmartFactory.DatabaseWorkers.PostgreSQL_DBWorker.html b/docs/class-SmartFactory.DatabaseWorkers.PostgreSQL_DBWorker.html index c7a49f3..6308be6 100644 --- a/docs/class-SmartFactory.DatabaseWorkers.PostgreSQL_DBWorker.html +++ b/docs/class-SmartFactory.DatabaseWorkers.PostgreSQL_DBWorker.html @@ -5006,7 +5006,7 @@

Source code

diff --git a/docs/class-SmartFactory.DatabaseWorkers.ShardManager.html b/docs/class-SmartFactory.DatabaseWorkers.ShardManager.html index fd9650e..39a416b 100644 --- a/docs/class-SmartFactory.DatabaseWorkers.ShardManager.html +++ b/docs/class-SmartFactory.DatabaseWorkers.ShardManager.html @@ -744,7 +744,7 @@

Source code

diff --git a/docs/class-SmartFactory.DebugProfiler.html b/docs/class-SmartFactory.DebugProfiler.html index d981a9c..189361a 100644 --- a/docs/class-SmartFactory.DebugProfiler.html +++ b/docs/class-SmartFactory.DebugProfiler.html @@ -1226,7 +1226,7 @@

See also

diff --git a/docs/class-SmartFactory.ErrorHandler.html b/docs/class-SmartFactory.ErrorHandler.html index e570d3d..e0dc893 100644 --- a/docs/class-SmartFactory.ErrorHandler.html +++ b/docs/class-SmartFactory.ErrorHandler.html @@ -1954,7 +1954,7 @@

Source code

diff --git a/docs/class-SmartFactory.EventManager.html b/docs/class-SmartFactory.EventManager.html index ad6aa29..e78d084 100644 --- a/docs/class-SmartFactory.EventManager.html +++ b/docs/class-SmartFactory.EventManager.html @@ -1378,7 +1378,7 @@

See also

diff --git a/docs/class-SmartFactory.JsonRequestHandler.html b/docs/class-SmartFactory.JsonRequestHandler.html index 13b8084..73d4bf7 100644 --- a/docs/class-SmartFactory.JsonRequestHandler.html +++ b/docs/class-SmartFactory.JsonRequestHandler.html @@ -481,7 +481,7 @@

Source code

diff --git a/docs/class-SmartFactory.LanguageManager.html b/docs/class-SmartFactory.LanguageManager.html index d3a1a5f..8d16eee 100644 --- a/docs/class-SmartFactory.LanguageManager.html +++ b/docs/class-SmartFactory.LanguageManager.html @@ -2959,7 +2959,7 @@

See also

diff --git a/docs/class-SmartFactory.MessageManager.html b/docs/class-SmartFactory.MessageManager.html index c5666aa..be77b31 100644 --- a/docs/class-SmartFactory.MessageManager.html +++ b/docs/class-SmartFactory.MessageManager.html @@ -3764,7 +3764,7 @@

Source code

diff --git a/docs/class-SmartFactory.ObjectFactory.html b/docs/class-SmartFactory.ObjectFactory.html index d3ea695..3ec546c 100644 --- a/docs/class-SmartFactory.ObjectFactory.html +++ b/docs/class-SmartFactory.ObjectFactory.html @@ -618,7 +618,7 @@

Source code

diff --git a/docs/class-SmartFactory.RecordsetManager.html b/docs/class-SmartFactory.RecordsetManager.html index 7a2cf73..268b711 100644 --- a/docs/class-SmartFactory.RecordsetManager.html +++ b/docs/class-SmartFactory.RecordsetManager.html @@ -3877,7 +3877,7 @@

Source code

diff --git a/docs/class-SmartFactory.RequestHandler.html b/docs/class-SmartFactory.RequestHandler.html index 4354272..83f981c 100644 --- a/docs/class-SmartFactory.RequestHandler.html +++ b/docs/class-SmartFactory.RequestHandler.html @@ -1036,7 +1036,7 @@

Source code

diff --git a/docs/class-SmartFactory.RuntimeSettingsManager.html b/docs/class-SmartFactory.RuntimeSettingsManager.html index 9c3d067..b0c4fd1 100644 --- a/docs/class-SmartFactory.RuntimeSettingsManager.html +++ b/docs/class-SmartFactory.RuntimeSettingsManager.html @@ -2225,7 +2225,7 @@

Uses

diff --git a/docs/class-SmartFactory.SessionManager.html b/docs/class-SmartFactory.SessionManager.html index bf51372..a991862 100644 --- a/docs/class-SmartFactory.SessionManager.html +++ b/docs/class-SmartFactory.SessionManager.html @@ -2184,7 +2184,7 @@

Source code

diff --git a/docs/class-SmartFactory.SessionMessageManager.html b/docs/class-SmartFactory.SessionMessageManager.html index aa45d6f..de9d998 100644 --- a/docs/class-SmartFactory.SessionMessageManager.html +++ b/docs/class-SmartFactory.SessionMessageManager.html @@ -365,7 +365,7 @@

Source code

diff --git a/docs/class-SmartFactory.SmartException.html b/docs/class-SmartFactory.SmartException.html index cc3a955..89f78e5 100644 --- a/docs/class-SmartFactory.SmartException.html +++ b/docs/class-SmartFactory.SmartException.html @@ -1399,7 +1399,7 @@

See also

diff --git a/docs/class-SmartFactory.UserSettingsManager.html b/docs/class-SmartFactory.UserSettingsManager.html index 4c52dee..26d6c44 100644 --- a/docs/class-SmartFactory.UserSettingsManager.html +++ b/docs/class-SmartFactory.UserSettingsManager.html @@ -2712,7 +2712,7 @@

Uses

diff --git a/docs/class-SmartFactory.XmlRequestHandler.html b/docs/class-SmartFactory.XmlRequestHandler.html index e5328b7..c7afa12 100644 --- a/docs/class-SmartFactory.XmlRequestHandler.html +++ b/docs/class-SmartFactory.XmlRequestHandler.html @@ -561,7 +561,7 @@

Source code

diff --git a/docs/classes.html b/docs/classes.html index abe5d6c..65d7556 100644 --- a/docs/classes.html +++ b/docs/classes.html @@ -409,7 +409,7 @@

Classes - SmartFactory Library

diff --git a/docs/elementlist.js b/docs/elementlist.js index 08b789b..0ba63af 100644 --- a/docs/elementlist.js +++ b/docs/elementlist.js @@ -655,6 +655,7 @@ ApiGen.elements = [ {"file":"function-SmartFactory.session_vars.html","label":"session_vars()"}, {"file":"function-SmartFactory.set_cookie.html","label":"set_cookie()"}, {"file":"function-SmartFactory.singleton.html","label":"singleton()"}, +{"file":"function-SmartFactory.string_to_number.html","label":"string_to_number()"}, {"file":"function-SmartFactory.table.html","label":"table()"}, {"file":"function-SmartFactory.text.html","label":"text()"}, {"file":"function-SmartFactory.textarea.html","label":"textarea()"}, diff --git a/docs/function-SmartFactory.aes_256_decrypt.html b/docs/function-SmartFactory.aes_256_decrypt.html index a19c8d4..ae2d7c8 100644 --- a/docs/function-SmartFactory.aes_256_decrypt.html +++ b/docs/function-SmartFactory.aes_256_decrypt.html @@ -203,7 +203,7 @@

Package

Source code

-utility_functions_inc.php +utility_functions_inc.php
@@ -216,7 +216,7 @@

See also

diff --git a/docs/function-SmartFactory.aes_256_encrypt.html b/docs/function-SmartFactory.aes_256_encrypt.html index dc60668..0bfb374 100644 --- a/docs/function-SmartFactory.aes_256_encrypt.html +++ b/docs/function-SmartFactory.aes_256_encrypt.html @@ -203,7 +203,7 @@

Package

Source code

-utility_functions_inc.php +utility_functions_inc.php
@@ -216,7 +216,7 @@

See also

diff --git a/docs/function-SmartFactory.array_to_dom.html b/docs/function-SmartFactory.array_to_dom.html index 4c64bdb..c3e8263 100644 --- a/docs/function-SmartFactory.array_to_dom.html +++ b/docs/function-SmartFactory.array_to_dom.html @@ -221,7 +221,7 @@

See also

diff --git a/docs/function-SmartFactory.array_to_json.html b/docs/function-SmartFactory.array_to_json.html index a124a1f..05af42d 100644 --- a/docs/function-SmartFactory.array_to_json.html +++ b/docs/function-SmartFactory.array_to_json.html @@ -196,7 +196,7 @@

Source code

diff --git a/docs/function-SmartFactory.checkbox.html b/docs/function-SmartFactory.checkbox.html index 149f012..212b5c3 100644 --- a/docs/function-SmartFactory.checkbox.html +++ b/docs/function-SmartFactory.checkbox.html @@ -265,7 +265,7 @@

See also

diff --git a/docs/function-SmartFactory.common_prefix.html b/docs/function-SmartFactory.common_prefix.html index b62eaff..74b51dd 100644 --- a/docs/function-SmartFactory.common_prefix.html +++ b/docs/function-SmartFactory.common_prefix.html @@ -225,7 +225,7 @@

Source code

diff --git a/docs/function-SmartFactory.config_settings.html b/docs/function-SmartFactory.config_settings.html index c998788..cd46bcc 100644 --- a/docs/function-SmartFactory.config_settings.html +++ b/docs/function-SmartFactory.config_settings.html @@ -171,7 +171,7 @@

Source code

diff --git a/docs/function-SmartFactory.dbshard.html b/docs/function-SmartFactory.dbshard.html index 24d175f..e9555f7 100644 --- a/docs/function-SmartFactory.dbshard.html +++ b/docs/function-SmartFactory.dbshard.html @@ -207,7 +207,7 @@

Source code

diff --git a/docs/function-SmartFactory.dbworker.html b/docs/function-SmartFactory.dbworker.html index 31f394f..b21494d 100644 --- a/docs/function-SmartFactory.dbworker.html +++ b/docs/function-SmartFactory.dbworker.html @@ -252,7 +252,7 @@

Source code

diff --git a/docs/function-SmartFactory.debug_message.html b/docs/function-SmartFactory.debug_message.html index 28a0a2b..409aa23 100644 --- a/docs/function-SmartFactory.debug_message.html +++ b/docs/function-SmartFactory.debug_message.html @@ -203,7 +203,7 @@

Source code

diff --git a/docs/function-SmartFactory.debugger.html b/docs/function-SmartFactory.debugger.html index 2013ab2..9e3378c 100644 --- a/docs/function-SmartFactory.debugger.html +++ b/docs/function-SmartFactory.debugger.html @@ -171,7 +171,7 @@

Source code

diff --git a/docs/function-SmartFactory.dom_to_array.html b/docs/function-SmartFactory.dom_to_array.html index f641441..496e505 100644 --- a/docs/function-SmartFactory.dom_to_array.html +++ b/docs/function-SmartFactory.dom_to_array.html @@ -221,7 +221,7 @@

See also

diff --git a/docs/function-SmartFactory.echo_html.html b/docs/function-SmartFactory.echo_html.html index 696653f..199afce 100644 --- a/docs/function-SmartFactory.echo_html.html +++ b/docs/function-SmartFactory.echo_html.html @@ -209,7 +209,7 @@

Uses

diff --git a/docs/function-SmartFactory.echo_js.html b/docs/function-SmartFactory.echo_js.html index 7d3bb9b..ad2bce1 100644 --- a/docs/function-SmartFactory.echo_js.html +++ b/docs/function-SmartFactory.echo_js.html @@ -209,7 +209,7 @@

Uses

diff --git a/docs/function-SmartFactory.escape_html.html b/docs/function-SmartFactory.escape_html.html index 8b52955..3be9d92 100644 --- a/docs/function-SmartFactory.escape_html.html +++ b/docs/function-SmartFactory.escape_html.html @@ -216,7 +216,7 @@

Used by

diff --git a/docs/function-SmartFactory.escape_html_array.html b/docs/function-SmartFactory.escape_html_array.html index 204e91a..5a7e4a3 100644 --- a/docs/function-SmartFactory.escape_html_array.html +++ b/docs/function-SmartFactory.escape_html_array.html @@ -200,7 +200,7 @@

See also

diff --git a/docs/function-SmartFactory.escape_js.html b/docs/function-SmartFactory.escape_js.html index af63187..4176135 100644 --- a/docs/function-SmartFactory.escape_js.html +++ b/docs/function-SmartFactory.escape_js.html @@ -213,7 +213,7 @@

Used by

diff --git a/docs/function-SmartFactory.event.html b/docs/function-SmartFactory.event.html index 4eb3596..647d488 100644 --- a/docs/function-SmartFactory.event.html +++ b/docs/function-SmartFactory.event.html @@ -171,7 +171,7 @@

Source code

diff --git a/docs/function-SmartFactory.format_number.html b/docs/function-SmartFactory.format_number.html index aff9988..f89e8de 100644 --- a/docs/function-SmartFactory.format_number.html +++ b/docs/function-SmartFactory.format_number.html @@ -250,11 +250,11 @@

Package

Source code

-utility_functions_inc.php +utility_functions_inc.php
diff --git a/docs/function-SmartFactory.get_cookie.html b/docs/function-SmartFactory.get_cookie.html index d48427d..f75b3c7 100644 --- a/docs/function-SmartFactory.get_cookie.html +++ b/docs/function-SmartFactory.get_cookie.html @@ -189,7 +189,7 @@

Source code

diff --git a/docs/function-SmartFactory.get_header.html b/docs/function-SmartFactory.get_header.html index 91dd113..038114c 100644 --- a/docs/function-SmartFactory.get_header.html +++ b/docs/function-SmartFactory.get_header.html @@ -189,7 +189,7 @@

Source code

diff --git a/docs/function-SmartFactory.input_hidden.html b/docs/function-SmartFactory.input_hidden.html index 5978de9..780998a 100644 --- a/docs/function-SmartFactory.input_hidden.html +++ b/docs/function-SmartFactory.input_hidden.html @@ -258,7 +258,7 @@

See also

diff --git a/docs/function-SmartFactory.input_password.html b/docs/function-SmartFactory.input_password.html index 7ed7963..22d5089 100644 --- a/docs/function-SmartFactory.input_password.html +++ b/docs/function-SmartFactory.input_password.html @@ -258,7 +258,7 @@

See also

diff --git a/docs/function-SmartFactory.input_text.html b/docs/function-SmartFactory.input_text.html index 4ce2dbb..acb6fab 100644 --- a/docs/function-SmartFactory.input_text.html +++ b/docs/function-SmartFactory.input_text.html @@ -263,7 +263,7 @@

See also

diff --git a/docs/function-SmartFactory.instance.html b/docs/function-SmartFactory.instance.html index 3c128db..367fb74 100644 --- a/docs/function-SmartFactory.instance.html +++ b/docs/function-SmartFactory.instance.html @@ -217,7 +217,7 @@

See also

diff --git a/docs/function-SmartFactory.is_associative.html b/docs/function-SmartFactory.is_associative.html index 79636d7..ca9683c 100644 --- a/docs/function-SmartFactory.is_associative.html +++ b/docs/function-SmartFactory.is_associative.html @@ -189,7 +189,7 @@

Source code

diff --git a/docs/function-SmartFactory.is_web.html b/docs/function-SmartFactory.is_web.html index 231c406..3084c2d 100644 --- a/docs/function-SmartFactory.is_web.html +++ b/docs/function-SmartFactory.is_web.html @@ -158,7 +158,7 @@

Source code

diff --git a/docs/function-SmartFactory.json_to_array.html b/docs/function-SmartFactory.json_to_array.html index d917627..399e32d 100644 --- a/docs/function-SmartFactory.json_to_array.html +++ b/docs/function-SmartFactory.json_to_array.html @@ -220,7 +220,7 @@

Source code

diff --git a/docs/function-SmartFactory.messenger.html b/docs/function-SmartFactory.messenger.html index 97a705c..b9d2187 100644 --- a/docs/function-SmartFactory.messenger.html +++ b/docs/function-SmartFactory.messenger.html @@ -171,7 +171,7 @@

Source code

diff --git a/docs/function-SmartFactory.preg_p_escape.html b/docs/function-SmartFactory.preg_p_escape.html index f949985..9d6bcfc 100644 --- a/docs/function-SmartFactory.preg_p_escape.html +++ b/docs/function-SmartFactory.preg_p_escape.html @@ -199,7 +199,7 @@

See also

diff --git a/docs/function-SmartFactory.preg_r_escape.html b/docs/function-SmartFactory.preg_r_escape.html index 15dd58c..954f944 100644 --- a/docs/function-SmartFactory.preg_r_escape.html +++ b/docs/function-SmartFactory.preg_r_escape.html @@ -199,7 +199,7 @@

See also

diff --git a/docs/function-SmartFactory.radiobutton.html b/docs/function-SmartFactory.radiobutton.html index 04b7306..024f2fb 100644 --- a/docs/function-SmartFactory.radiobutton.html +++ b/docs/function-SmartFactory.radiobutton.html @@ -267,7 +267,7 @@

See also

diff --git a/docs/function-SmartFactory.randomDBShard.html b/docs/function-SmartFactory.randomDBShard.html index d679a9a..9228272 100644 --- a/docs/function-SmartFactory.randomDBShard.html +++ b/docs/function-SmartFactory.randomDBShard.html @@ -203,7 +203,7 @@

Source code

diff --git a/docs/function-SmartFactory.reqvar_value.html b/docs/function-SmartFactory.reqvar_value.html index 508cac4..efeb19b 100644 --- a/docs/function-SmartFactory.reqvar_value.html +++ b/docs/function-SmartFactory.reqvar_value.html @@ -196,7 +196,7 @@

Source code

diff --git a/docs/function-SmartFactory.runtime_settings.html b/docs/function-SmartFactory.runtime_settings.html index 637fac3..bb86384 100644 --- a/docs/function-SmartFactory.runtime_settings.html +++ b/docs/function-SmartFactory.runtime_settings.html @@ -171,7 +171,7 @@

Source code

diff --git a/docs/function-SmartFactory.select.html b/docs/function-SmartFactory.select.html index ced9041..2c344d6 100644 --- a/docs/function-SmartFactory.select.html +++ b/docs/function-SmartFactory.select.html @@ -279,7 +279,7 @@

See also

diff --git a/docs/function-SmartFactory.session.html b/docs/function-SmartFactory.session.html index 3bdcb59..07c45b7 100644 --- a/docs/function-SmartFactory.session.html +++ b/docs/function-SmartFactory.session.html @@ -171,7 +171,7 @@

Source code

diff --git a/docs/function-SmartFactory.session_vars.html b/docs/function-SmartFactory.session_vars.html index 4190559..11fb133 100644 --- a/docs/function-SmartFactory.session_vars.html +++ b/docs/function-SmartFactory.session_vars.html @@ -173,7 +173,7 @@

Source code

diff --git a/docs/function-SmartFactory.set_cookie.html b/docs/function-SmartFactory.set_cookie.html index bd4fe27..29011cf 100644 --- a/docs/function-SmartFactory.set_cookie.html +++ b/docs/function-SmartFactory.set_cookie.html @@ -243,7 +243,7 @@

Source code

diff --git a/docs/function-SmartFactory.singleton.html b/docs/function-SmartFactory.singleton.html index 95e593c..a10b2c5 100644 --- a/docs/function-SmartFactory.singleton.html +++ b/docs/function-SmartFactory.singleton.html @@ -219,7 +219,7 @@

See also

diff --git a/docs/function-SmartFactory.table.html b/docs/function-SmartFactory.table.html index 4495163..4425083 100644 --- a/docs/function-SmartFactory.table.html +++ b/docs/function-SmartFactory.table.html @@ -306,7 +306,7 @@

Source code

diff --git a/docs/function-SmartFactory.text.html b/docs/function-SmartFactory.text.html index 5e82610..868e991 100644 --- a/docs/function-SmartFactory.text.html +++ b/docs/function-SmartFactory.text.html @@ -241,7 +241,7 @@

Source code

diff --git a/docs/function-SmartFactory.textarea.html b/docs/function-SmartFactory.textarea.html index e321b84..952e2f2 100644 --- a/docs/function-SmartFactory.textarea.html +++ b/docs/function-SmartFactory.textarea.html @@ -263,7 +263,7 @@

See also

diff --git a/docs/function-SmartFactory.timestamp.html b/docs/function-SmartFactory.timestamp.html index 5266c6d..2e5753a 100644 --- a/docs/function-SmartFactory.timestamp.html +++ b/docs/function-SmartFactory.timestamp.html @@ -210,7 +210,7 @@

Source code

diff --git a/docs/function-SmartFactory.user_settings.html b/docs/function-SmartFactory.user_settings.html index 834b985..3bb3f89 100644 --- a/docs/function-SmartFactory.user_settings.html +++ b/docs/function-SmartFactory.user_settings.html @@ -171,7 +171,7 @@

Source code

diff --git a/docs/functions.html b/docs/functions.html index 148881a..9b402a1 100644 --- a/docs/functions.html +++ b/docs/functions.html @@ -662,6 +662,20 @@

Functions - SmartFactory Library

+ + + string_to_number() + + + + SmartFactory + + + +

Converts the string to number due to the specified settings.

+ + + table() @@ -739,7 +753,7 @@

Functions - SmartFactory Library

diff --git a/docs/index.html b/docs/index.html index 2e2a890..c9d2cc8 100644 --- a/docs/index.html +++ b/docs/index.html @@ -756,6 +756,20 @@

Overview - SmartFactory Library

+ + + string_to_number() + + + + SmartFactory + + + +

Converts the string to number due to the specified settings.

+ + + table() @@ -1325,7 +1339,7 @@

Overview - SmartFactory Library

diff --git a/docs/interface-SmartFactory.Interfaces.IDebugProfiler.html b/docs/interface-SmartFactory.Interfaces.IDebugProfiler.html index bed0c99..e49637b 100644 --- a/docs/interface-SmartFactory.Interfaces.IDebugProfiler.html +++ b/docs/interface-SmartFactory.Interfaces.IDebugProfiler.html @@ -888,7 +888,7 @@

See also

diff --git a/docs/interface-SmartFactory.Interfaces.IErrorHandler.html b/docs/interface-SmartFactory.Interfaces.IErrorHandler.html index f7fbb13..11928cd 100644 --- a/docs/interface-SmartFactory.Interfaces.IErrorHandler.html +++ b/docs/interface-SmartFactory.Interfaces.IErrorHandler.html @@ -1054,7 +1054,7 @@

See also

diff --git a/docs/interface-SmartFactory.Interfaces.IEventManager.html b/docs/interface-SmartFactory.Interfaces.IEventManager.html index 04cadea..b609418 100644 --- a/docs/interface-SmartFactory.Interfaces.IEventManager.html +++ b/docs/interface-SmartFactory.Interfaces.IEventManager.html @@ -1175,7 +1175,7 @@

See also

diff --git a/docs/interface-SmartFactory.Interfaces.IInitable.html b/docs/interface-SmartFactory.Interfaces.IInitable.html index c39a728..5b3ca61 100644 --- a/docs/interface-SmartFactory.Interfaces.IInitable.html +++ b/docs/interface-SmartFactory.Interfaces.IInitable.html @@ -316,7 +316,7 @@

Source code

diff --git a/docs/interface-SmartFactory.Interfaces.ILanguageManager.html b/docs/interface-SmartFactory.Interfaces.ILanguageManager.html index 02e2129..ae655a9 100644 --- a/docs/interface-SmartFactory.Interfaces.ILanguageManager.html +++ b/docs/interface-SmartFactory.Interfaces.ILanguageManager.html @@ -2201,7 +2201,7 @@

See also

diff --git a/docs/interface-SmartFactory.Interfaces.IMessageManager.html b/docs/interface-SmartFactory.Interfaces.IMessageManager.html index 2d40045..95bad51 100644 --- a/docs/interface-SmartFactory.Interfaces.IMessageManager.html +++ b/docs/interface-SmartFactory.Interfaces.IMessageManager.html @@ -3331,7 +3331,7 @@

Source code

diff --git a/docs/interface-SmartFactory.Interfaces.IRecordsetManager.html b/docs/interface-SmartFactory.Interfaces.IRecordsetManager.html index 6318213..a2a32d9 100644 --- a/docs/interface-SmartFactory.Interfaces.IRecordsetManager.html +++ b/docs/interface-SmartFactory.Interfaces.IRecordsetManager.html @@ -2712,7 +2712,7 @@

See also

diff --git a/docs/interface-SmartFactory.Interfaces.IRequestHandler.html b/docs/interface-SmartFactory.Interfaces.IRequestHandler.html index 66d5d21..ebf6a0d 100644 --- a/docs/interface-SmartFactory.Interfaces.IRequestHandler.html +++ b/docs/interface-SmartFactory.Interfaces.IRequestHandler.html @@ -257,7 +257,7 @@

Source code

diff --git a/docs/interface-SmartFactory.Interfaces.ISessionManager.html b/docs/interface-SmartFactory.Interfaces.ISessionManager.html index 016c600..8dc381f 100644 --- a/docs/interface-SmartFactory.Interfaces.ISessionManager.html +++ b/docs/interface-SmartFactory.Interfaces.ISessionManager.html @@ -1079,7 +1079,7 @@

Source code

diff --git a/docs/interface-SmartFactory.Interfaces.ISettingsManager.html b/docs/interface-SmartFactory.Interfaces.ISettingsManager.html index 7bbb757..c9b485d 100644 --- a/docs/interface-SmartFactory.Interfaces.ISettingsManager.html +++ b/docs/interface-SmartFactory.Interfaces.ISettingsManager.html @@ -1422,7 +1422,7 @@

Uses

diff --git a/docs/interface-SmartFactory.Interfaces.ISettingsValidator.html b/docs/interface-SmartFactory.Interfaces.ISettingsValidator.html index a5520c3..17303cb 100644 --- a/docs/interface-SmartFactory.Interfaces.ISettingsValidator.html +++ b/docs/interface-SmartFactory.Interfaces.ISettingsValidator.html @@ -326,7 +326,7 @@

Source code

diff --git a/docs/interface-SmartFactory.Interfaces.IShardManager.html b/docs/interface-SmartFactory.Interfaces.IShardManager.html index 4edf78e..41628c0 100644 --- a/docs/interface-SmartFactory.Interfaces.IShardManager.html +++ b/docs/interface-SmartFactory.Interfaces.IShardManager.html @@ -600,7 +600,7 @@

Source code

diff --git a/docs/interfaces.html b/docs/interfaces.html index 5689a02..6668a84 100644 --- a/docs/interfaces.html +++ b/docs/interfaces.html @@ -271,7 +271,7 @@

Interfaces - SmartFactory Library

diff --git a/docs/namespace-SmartFactory.DatabaseWorkers.html b/docs/namespace-SmartFactory.DatabaseWorkers.html index dcf7b43..8d266be 100644 --- a/docs/namespace-SmartFactory.DatabaseWorkers.html +++ b/docs/namespace-SmartFactory.DatabaseWorkers.html @@ -225,7 +225,7 @@

Namespace: SmartFactory\DatabaseWorkers

diff --git a/docs/namespace-SmartFactory.Interfaces.html b/docs/namespace-SmartFactory.Interfaces.html index 870872f..6f1c039 100644 --- a/docs/namespace-SmartFactory.Interfaces.html +++ b/docs/namespace-SmartFactory.Interfaces.html @@ -310,7 +310,7 @@

Namespace: SmartFactory\Interfaces

diff --git a/docs/namespace-SmartFactory.html b/docs/namespace-SmartFactory.html index f736b7e..1ac7dad 100644 --- a/docs/namespace-SmartFactory.html +++ b/docs/namespace-SmartFactory.html @@ -707,6 +707,20 @@

Namespace: SmartFactory

+ + + string_to_number() + + + + SmartFactory + + + +

Converts the string to number due to the specified settings.

+ + + table() @@ -1018,7 +1032,7 @@

Namespace: SmartFactory

diff --git a/docs/package-Database.html b/docs/package-Database.html index a5d793d..e0f4bd0 100644 --- a/docs/package-Database.html +++ b/docs/package-Database.html @@ -264,7 +264,7 @@

Package: Database

diff --git a/docs/package-Factory.html b/docs/package-Factory.html index f3eec1d..d5e1e47 100644 --- a/docs/package-Factory.html +++ b/docs/package-Factory.html @@ -195,7 +195,7 @@

Package: Factory

diff --git a/docs/package-HTML Utils.html b/docs/package-HTML Utils.html index 0e39393..057177d 100644 --- a/docs/package-HTML Utils.html +++ b/docs/package-HTML Utils.html @@ -257,7 +257,7 @@

Package: HTML Utils

diff --git a/docs/package-System.html b/docs/package-System.html index 84810fc..c4c5ae3 100644 --- a/docs/package-System.html +++ b/docs/package-System.html @@ -652,7 +652,7 @@

Package: System

diff --git a/docs/package-Utility Functions.html b/docs/package-Utility Functions.html index 8bf8c23..a2532db 100644 --- a/docs/package-Utility Functions.html +++ b/docs/package-Utility Functions.html @@ -404,6 +404,20 @@

Package: Utility Functions

+ + + string_to_number() + + + + SmartFactory + + + +

Converts the string to number due to the specified settings.

+ + + timestamp() @@ -429,7 +443,7 @@

Package: Utility Functions

diff --git a/docs/source-SmartFactory.ConfigSettingsManager.php.html b/docs/source-SmartFactory.ConfigSettingsManager.php.html index fd8de61..ad081cc 100644 --- a/docs/source-SmartFactory.ConfigSettingsManager.php.html +++ b/docs/source-SmartFactory.ConfigSettingsManager.php.html @@ -644,7 +644,7 @@

Source Code: SmartFactory/ConfigSettingsManager.php

diff --git a/docs/source-SmartFactory.DatabaseWorkers.DBWorker.php.html b/docs/source-SmartFactory.DatabaseWorkers.DBWorker.php.html index 339e3d2..78ea9ff 100644 --- a/docs/source-SmartFactory.DatabaseWorkers.DBWorker.php.html +++ b/docs/source-SmartFactory.DatabaseWorkers.DBWorker.php.html @@ -1083,7 +1083,7 @@

Source Code: SmartFactory/DatabaseWorkers/DBWorker.php

diff --git a/docs/source-SmartFactory.DatabaseWorkers.DBWorkerException.php.html b/docs/source-SmartFactory.DatabaseWorkers.DBWorkerException.php.html index afa3359..d6cd64f 100644 --- a/docs/source-SmartFactory.DatabaseWorkers.DBWorkerException.php.html +++ b/docs/source-SmartFactory.DatabaseWorkers.DBWorkerException.php.html @@ -150,7 +150,7 @@

Source Code: SmartFactory/DatabaseWorkers/DBWorkerException.php

diff --git a/docs/source-SmartFactory.DatabaseWorkers.MSSQL_DBWorker.php.html b/docs/source-SmartFactory.DatabaseWorkers.MSSQL_DBWorker.php.html index ff9651f..a366ab4 100644 --- a/docs/source-SmartFactory.DatabaseWorkers.MSSQL_DBWorker.php.html +++ b/docs/source-SmartFactory.DatabaseWorkers.MSSQL_DBWorker.php.html @@ -1659,7 +1659,7 @@

Source Code: SmartFactory/DatabaseWorkers/MSSQL_DBWorker.php

diff --git a/docs/source-SmartFactory.DatabaseWorkers.MySQL_DBWorker.php.html b/docs/source-SmartFactory.DatabaseWorkers.MySQL_DBWorker.php.html index 44123ed..7188f2b 100644 --- a/docs/source-SmartFactory.DatabaseWorkers.MySQL_DBWorker.php.html +++ b/docs/source-SmartFactory.DatabaseWorkers.MySQL_DBWorker.php.html @@ -1649,7 +1649,7 @@

Source Code: SmartFactory/DatabaseWorkers/MySQL_DBWorker.php

diff --git a/docs/source-SmartFactory.DatabaseWorkers.PostgreSQL_DBWorker.php.html b/docs/source-SmartFactory.DatabaseWorkers.PostgreSQL_DBWorker.php.html index 622b80f..2f5c301 100644 --- a/docs/source-SmartFactory.DatabaseWorkers.PostgreSQL_DBWorker.php.html +++ b/docs/source-SmartFactory.DatabaseWorkers.PostgreSQL_DBWorker.php.html @@ -1467,7 +1467,7 @@

Source Code: SmartFactory/DatabaseWorkers/PostgreSQL_DBWorker.php

diff --git a/docs/source-SmartFactory.DatabaseWorkers.ShardManager.php.html b/docs/source-SmartFactory.DatabaseWorkers.ShardManager.php.html index e2fcb7d..9ef3c4b 100644 --- a/docs/source-SmartFactory.DatabaseWorkers.ShardManager.php.html +++ b/docs/source-SmartFactory.DatabaseWorkers.ShardManager.php.html @@ -280,7 +280,7 @@

Source Code: SmartFactory/DatabaseWorkers/ShardManager.php

diff --git a/docs/source-SmartFactory.DebugProfiler.php.html b/docs/source-SmartFactory.DebugProfiler.php.html index d8a0495..0c3c4b8 100644 --- a/docs/source-SmartFactory.DebugProfiler.php.html +++ b/docs/source-SmartFactory.DebugProfiler.php.html @@ -415,7 +415,7 @@

Source Code: SmartFactory/DebugProfiler.php

diff --git a/docs/source-SmartFactory.ErrorHandler.php.html b/docs/source-SmartFactory.ErrorHandler.php.html index a561585..1d6a844 100644 --- a/docs/source-SmartFactory.ErrorHandler.php.html +++ b/docs/source-SmartFactory.ErrorHandler.php.html @@ -635,7 +635,7 @@

Source Code: SmartFactory/ErrorHandler.php

diff --git a/docs/source-SmartFactory.EventManager.php.html b/docs/source-SmartFactory.EventManager.php.html index 2db53fc..2c2e497 100644 --- a/docs/source-SmartFactory.EventManager.php.html +++ b/docs/source-SmartFactory.EventManager.php.html @@ -419,7 +419,7 @@

Source Code: SmartFactory/EventManager.php

diff --git a/docs/source-SmartFactory.Interfaces.IDebugProfiler.php.html b/docs/source-SmartFactory.Interfaces.IDebugProfiler.php.html index b853152..c54ec80 100644 --- a/docs/source-SmartFactory.Interfaces.IDebugProfiler.php.html +++ b/docs/source-SmartFactory.Interfaces.IDebugProfiler.php.html @@ -215,7 +215,7 @@

Source Code: SmartFactory/Interfaces/IDebugProfiler.php

diff --git a/docs/source-SmartFactory.Interfaces.IErrorHandler.php.html b/docs/source-SmartFactory.Interfaces.IErrorHandler.php.html index 1152189..c683424 100644 --- a/docs/source-SmartFactory.Interfaces.IErrorHandler.php.html +++ b/docs/source-SmartFactory.Interfaces.IErrorHandler.php.html @@ -238,7 +238,7 @@

Source Code: SmartFactory/Interfaces/IErrorHandler.php

diff --git a/docs/source-SmartFactory.Interfaces.IEventManager.php.html b/docs/source-SmartFactory.Interfaces.IEventManager.php.html index 7c21464..177ced2 100644 --- a/docs/source-SmartFactory.Interfaces.IEventManager.php.html +++ b/docs/source-SmartFactory.Interfaces.IEventManager.php.html @@ -276,7 +276,7 @@

Source Code: SmartFactory/Interfaces/IEventManager.php

diff --git a/docs/source-SmartFactory.Interfaces.IInitable.php.html b/docs/source-SmartFactory.Interfaces.IInitable.php.html index 1cefdb3..743bac6 100644 --- a/docs/source-SmartFactory.Interfaces.IInitable.php.html +++ b/docs/source-SmartFactory.Interfaces.IInitable.php.html @@ -135,7 +135,7 @@

Source Code: SmartFactory/Interfaces/IInitable.php

diff --git a/docs/source-SmartFactory.Interfaces.ILanguageManager.php.html b/docs/source-SmartFactory.Interfaces.ILanguageManager.php.html index e271aec..5fd75a5 100644 --- a/docs/source-SmartFactory.Interfaces.ILanguageManager.php.html +++ b/docs/source-SmartFactory.Interfaces.ILanguageManager.php.html @@ -431,7 +431,7 @@

Source Code: SmartFactory/Interfaces/ILanguageManager.php

diff --git a/docs/source-SmartFactory.Interfaces.IMessageManager.php.html b/docs/source-SmartFactory.Interfaces.IMessageManager.php.html index 6fe005d..6950a62 100644 --- a/docs/source-SmartFactory.Interfaces.IMessageManager.php.html +++ b/docs/source-SmartFactory.Interfaces.IMessageManager.php.html @@ -664,7 +664,7 @@

Source Code: SmartFactory/Interfaces/IMessageManager.php

diff --git a/docs/source-SmartFactory.Interfaces.IRecordsetManager.php.html b/docs/source-SmartFactory.Interfaces.IRecordsetManager.php.html index a806bd8..5f8b2a9 100644 --- a/docs/source-SmartFactory.Interfaces.IRecordsetManager.php.html +++ b/docs/source-SmartFactory.Interfaces.IRecordsetManager.php.html @@ -499,7 +499,7 @@

Source Code: SmartFactory/Interfaces/IRecordsetManager.php

diff --git a/docs/source-SmartFactory.Interfaces.IRequestHandler.php.html b/docs/source-SmartFactory.Interfaces.IRequestHandler.php.html index 11398b1..537d300 100644 --- a/docs/source-SmartFactory.Interfaces.IRequestHandler.php.html +++ b/docs/source-SmartFactory.Interfaces.IRequestHandler.php.html @@ -125,7 +125,7 @@

Source Code: SmartFactory/Interfaces/IRequestHandler.php

diff --git a/docs/source-SmartFactory.Interfaces.ISessionManager.php.html b/docs/source-SmartFactory.Interfaces.ISessionManager.php.html index e512469..9c0bcb7 100644 --- a/docs/source-SmartFactory.Interfaces.ISessionManager.php.html +++ b/docs/source-SmartFactory.Interfaces.ISessionManager.php.html @@ -262,7 +262,7 @@

Source Code: SmartFactory/Interfaces/ISessionManager.php

diff --git a/docs/source-SmartFactory.Interfaces.ISettingsManager.php.html b/docs/source-SmartFactory.Interfaces.ISettingsManager.php.html index 2e4f280..b18e12f 100644 --- a/docs/source-SmartFactory.Interfaces.ISettingsManager.php.html +++ b/docs/source-SmartFactory.Interfaces.ISettingsManager.php.html @@ -313,7 +313,7 @@

Source Code: SmartFactory/Interfaces/ISettingsManager.php

diff --git a/docs/source-SmartFactory.Interfaces.ISettingsValidator.php.html b/docs/source-SmartFactory.Interfaces.ISettingsValidator.php.html index 33d53af..c7c3d66 100644 --- a/docs/source-SmartFactory.Interfaces.ISettingsValidator.php.html +++ b/docs/source-SmartFactory.Interfaces.ISettingsValidator.php.html @@ -141,7 +141,7 @@

Source Code: SmartFactory/Interfaces/ISettingsValidator.php

diff --git a/docs/source-SmartFactory.Interfaces.IShardManager.php.html b/docs/source-SmartFactory.Interfaces.IShardManager.php.html index abcdcc4..df909a9 100644 --- a/docs/source-SmartFactory.Interfaces.IShardManager.php.html +++ b/docs/source-SmartFactory.Interfaces.IShardManager.php.html @@ -192,7 +192,7 @@

Source Code: SmartFactory/Interfaces/IShardManager.php

diff --git a/docs/source-SmartFactory.JsonRequestHandler.php.html b/docs/source-SmartFactory.JsonRequestHandler.php.html index 8a4cd95..3d67d57 100644 --- a/docs/source-SmartFactory.JsonRequestHandler.php.html +++ b/docs/source-SmartFactory.JsonRequestHandler.php.html @@ -231,7 +231,7 @@

Source Code: SmartFactory/JsonRequestHandler.php

diff --git a/docs/source-SmartFactory.LanguageManager.php.html b/docs/source-SmartFactory.LanguageManager.php.html index ced27b1..e48e975 100644 --- a/docs/source-SmartFactory.LanguageManager.php.html +++ b/docs/source-SmartFactory.LanguageManager.php.html @@ -946,7 +946,7 @@

Source Code: SmartFactory/LanguageManager.php

diff --git a/docs/source-SmartFactory.MessageManager.php.html b/docs/source-SmartFactory.MessageManager.php.html index 6a94619..393792c 100644 --- a/docs/source-SmartFactory.MessageManager.php.html +++ b/docs/source-SmartFactory.MessageManager.php.html @@ -948,7 +948,7 @@

Source Code: SmartFactory/MessageManager.php

diff --git a/docs/source-SmartFactory.ObjectFactory.php.html b/docs/source-SmartFactory.ObjectFactory.php.html index 5379d36..f135085 100644 --- a/docs/source-SmartFactory.ObjectFactory.php.html +++ b/docs/source-SmartFactory.ObjectFactory.php.html @@ -308,7 +308,7 @@

Source Code: SmartFactory/ObjectFactory.php

diff --git a/docs/source-SmartFactory.RecordsetManager.php.html b/docs/source-SmartFactory.RecordsetManager.php.html index 5ba8da4..abfe798 100644 --- a/docs/source-SmartFactory.RecordsetManager.php.html +++ b/docs/source-SmartFactory.RecordsetManager.php.html @@ -1100,7 +1100,7 @@

Source Code: SmartFactory/RecordsetManager.php

diff --git a/docs/source-SmartFactory.RequestHandler.php.html b/docs/source-SmartFactory.RequestHandler.php.html index 1115868..1572063 100644 --- a/docs/source-SmartFactory.RequestHandler.php.html +++ b/docs/source-SmartFactory.RequestHandler.php.html @@ -297,7 +297,7 @@

Source Code: SmartFactory/RequestHandler.php

diff --git a/docs/source-SmartFactory.RuntimeSettingsManager.php.html b/docs/source-SmartFactory.RuntimeSettingsManager.php.html index c48d510..db6042f 100644 --- a/docs/source-SmartFactory.RuntimeSettingsManager.php.html +++ b/docs/source-SmartFactory.RuntimeSettingsManager.php.html @@ -635,7 +635,7 @@

Source Code: SmartFactory/RuntimeSettingsManager.php

diff --git a/docs/source-SmartFactory.SessionManager.php.html b/docs/source-SmartFactory.SessionManager.php.html index 65707ab..f78b45b 100644 --- a/docs/source-SmartFactory.SessionManager.php.html +++ b/docs/source-SmartFactory.SessionManager.php.html @@ -341,9 +341,9 @@

Source Code: SmartFactory/SessionManager.php

246: $num = $pos - $offset; 247: $varname = substr($session_data, $offset, $num); 248: $offset += $num + 1; -249: $data = unserialize(substr($session_data, $offset)); +249: $data = @unserialize(substr($session_data, $offset)); 250: $_SESSION[$varname] = $data; -251: $offset += strlen(serialize($data)); +251: $offset += strlen(@serialize($data)); 252: } 253: 254: return true; @@ -571,7 +571,7 @@

Source Code: SmartFactory/SessionManager.php

diff --git a/docs/source-SmartFactory.SessionMessageManager.php.html b/docs/source-SmartFactory.SessionMessageManager.php.html index b37fe16..7093afb 100644 --- a/docs/source-SmartFactory.SessionMessageManager.php.html +++ b/docs/source-SmartFactory.SessionMessageManager.php.html @@ -149,7 +149,7 @@

Source Code: SmartFactory/SessionMessageManager.php

diff --git a/docs/source-SmartFactory.SmartException.php.html b/docs/source-SmartFactory.SmartException.php.html index 6670aa1..7b906bc 100644 --- a/docs/source-SmartFactory.SmartException.php.html +++ b/docs/source-SmartFactory.SmartException.php.html @@ -356,7 +356,7 @@

Source Code: SmartFactory/SmartException.php

diff --git a/docs/source-SmartFactory.UserSettingsManager.php.html b/docs/source-SmartFactory.UserSettingsManager.php.html index 19ae569..b84e10b 100644 --- a/docs/source-SmartFactory.UserSettingsManager.php.html +++ b/docs/source-SmartFactory.UserSettingsManager.php.html @@ -274,7 +274,7 @@

Source Code: SmartFactory/UserSettingsManager.php

179: $this->validateParameters(); 180: 181: if (empty($this->no_own_transcation)) { -182: this->dbworker->start_transaction(); +182: $this->dbworker->start_transaction(); 183: } 184: 185: try { @@ -981,7 +981,7 @@

Source Code: SmartFactory/UserSettingsManager.php

diff --git a/docs/source-SmartFactory.XmlRequestHandler.php.html b/docs/source-SmartFactory.XmlRequestHandler.php.html index 1c7091d..42dd94e 100644 --- a/docs/source-SmartFactory.XmlRequestHandler.php.html +++ b/docs/source-SmartFactory.XmlRequestHandler.php.html @@ -247,7 +247,7 @@

Source Code: SmartFactory/XmlRequestHandler.php

diff --git a/docs/source-error_handler_init_inc.php.html b/docs/source-error_handler_init_inc.php.html index fc07350..28bd1fc 100644 --- a/docs/source-error_handler_init_inc.php.html +++ b/docs/source-error_handler_init_inc.php.html @@ -124,7 +124,7 @@

Source Code: error_handler_init_inc.php

diff --git a/docs/source-factory_functions_inc.php.html b/docs/source-factory_functions_inc.php.html index 9736358..c87fbb3 100644 --- a/docs/source-factory_functions_inc.php.html +++ b/docs/source-factory_functions_inc.php.html @@ -245,7 +245,7 @@

Source Code: factory_functions_inc.php

diff --git a/docs/source-html_utils_inc.php.html b/docs/source-html_utils_inc.php.html index 96b65ac..a1bd2a6 100644 --- a/docs/source-html_utils_inc.php.html +++ b/docs/source-html_utils_inc.php.html @@ -1056,7 +1056,7 @@

Source Code: html_utils_inc.php

diff --git a/docs/source-initialization_inc.php.html b/docs/source-initialization_inc.php.html index 8f4d97a..3110cf0 100644 --- a/docs/source-initialization_inc.php.html +++ b/docs/source-initialization_inc.php.html @@ -141,7 +141,7 @@

Source Code: initialization_inc.php

diff --git a/docs/source-session_handler_init_inc.php.html b/docs/source-session_handler_init_inc.php.html index 5a999a7..ee79e7a 100644 --- a/docs/source-session_handler_init_inc.php.html +++ b/docs/source-session_handler_init_inc.php.html @@ -114,7 +114,7 @@

Source Code: session_handler_init_inc.php

diff --git a/docs/source-short_functions_inc.php.html b/docs/source-short_functions_inc.php.html index a4754bb..a4c5c78 100644 --- a/docs/source-short_functions_inc.php.html +++ b/docs/source-short_functions_inc.php.html @@ -389,7 +389,7 @@

Source Code: short_functions_inc.php

diff --git a/docs/source-utility_functions_inc.php.html b/docs/source-utility_functions_inc.php.html index e7f99dc..9f70101 100644 --- a/docs/source-utility_functions_inc.php.html +++ b/docs/source-utility_functions_inc.php.html @@ -636,116 +636,148 @@

Source Code: utility_functions_inc.php

541: 542: /** 543: * Formats the number due to the specified settings. -544: * -545: * It is a wrapper over the system function number_format. -546: * -547: * @param float $number -548: * The number to be formatted. -549: * -550: * @param int $decimals -551: * The number of digits after the dot. -552: * -553: * @param string $dec_point -554: * The decimal separator. -555: * -556: * @param string $thousand_sep -557: * The thousand separator. -558: * -559: * @return string|null -560: * If the number is a vialid number, its formatted value is returned. Otherwise, -561: * the empty value is returned. It is usefil if we need to distiguish the empty value and 0. -562: * -563: * @author Oleg Schildt -564: */ -565: function format_number($number, $decimals = 0, $dec_point = ".", $thousand_sep = ",") -566: { -567: if ($number === null || $number === "") { -568: return $number; -569: } -570: -571: return number_format($number, $decimals, $dec_point, $thousand_sep); -572: } // format_number -573: -574: /** -575: * Encrypts the text with the AES 256 using a password key. -576: * -577: * @param string $data -578: * The data to be encrypted. -579: * -580: * @param string $password_key -581: * The password key used for the encryption. -582: * -583: * @return string -584: * Returns the encrypted text. -585: * -586: * @see \SmartFactory\aes_256_decrypt() +544: * It is a wrapper over the system function number_format. +545: * +546: * @param float $number +547: * The number to be formatted. +548: * +549: * @param int $decimals +550: * The number of digits after the dot. +551: * +552: * @param string $dec_point +553: * The decimal separator. +554: * +555: * @param string $thousand_sep +556: * The thousand separator. +557: * +558: * @return string|null +559: * If the number is a vialid number, its formatted value is returned. Otherwise, +560: * the empty value is returned. It is usefil if we need to distiguish the empty value and 0. +561: * +562: * @author Oleg Schildt +563: */ +564: function format_number($number, $decimals = 0, $dec_point = ".", $thousand_sep = ",") +565: { +566: if ($number === null || $number === "") { +567: return $number; +568: } +569: +570: return number_format($number, $decimals, $dec_point, $thousand_sep); +571: } // format_number +572: +573: /** +574: * Converts the string to number due to the specified settings. +575: * +576: * @param string $str +577: * The string to be converted. +578: * +579: * @param string $dec_point +580: * The decimal separator. +581: * +582: * @param string $thousand_sep +583: * The thousand separator. +584: * +585: * @throws \Exception +586: * It might throw the exception if the string is not a number 587: * -588: * @author Oleg Schildt -589: */ -590: function aes_256_encrypt($data, $password_key) -591: { -592: // Set a random salt -593: $salt = openssl_random_pseudo_bytes(16); -594: -595: $salted = ''; -596: $dx = ''; -597: // Salt the key(32) and iv(16) = 48 -598: while (strlen($salted) < 48) { -599: $dx = hash('sha256', $dx . $password_key . $salt, true); -600: $salted .= $dx; -601: } +588: * @return float|null +589: * If the string is a vialid number, its numeric value is returned. +590: * +591: * @author Oleg Schildt +592: */ +593: function string_to_number($str, $dec_point = ".", $thousand_sep = ",") +594: { +595: if ($str === "" || $str === null) { +596: return $str; +597: } +598: +599: $str = str_replace($thousand_sep, "", $str); +600: $str = str_replace($dec_point, ".", $str); +601: $number = floatval($str); 602: -603: $key = substr($salted, 0, 32); -604: $iv = substr($salted, 32, 16); -605: -606: $encrypted_data = openssl_encrypt($data, 'AES-256-CBC', $key, true, $iv); -607: return base64_encode($salt . $encrypted_data); -608: } // aes_256_encrypt -609: -610: /** -611: * Decrypts the text previously encrypted with the AES 256 using a password key. -612: * -613: * @param string $edata -614: * The data to be decrypted. -615: * -616: * @param string $password_key -617: * The password key used for the encryption. -618: * -619: * @return string -620: * Returns the decrypted text. -621: * -622: * @see \SmartFactory\aes_256_decrypt() -623: * -624: * @author Oleg Schildt -625: */ -626: function aes_256_decrypt($edata, $password_key) -627: { -628: $data = base64_decode($edata); -629: $salt = substr($data, 0, 16); -630: $ct = substr($data, 16); -631: -632: $rounds = 3; // depends on key length -633: $data00 = $password_key . $salt; -634: $hash = array(); -635: $hash[0] = hash('sha256', $data00, true); -636: $result = $hash[0]; +603: return $number; +604: } +605: +606: /** +607: * Encrypts the text with the AES 256 using a password key. +608: * +609: * @param string $data +610: * The data to be encrypted. +611: * +612: * @param string $password_key +613: * The password key used for the encryption. +614: * +615: * @return string +616: * Returns the encrypted text. +617: * +618: * @see \SmartFactory\aes_256_decrypt() +619: * +620: * @author Oleg Schildt +621: */ +622: function aes_256_encrypt($data, $password_key) +623: { +624: // Set a random salt +625: $salt = openssl_random_pseudo_bytes(16); +626: +627: $salted = ''; +628: $dx = ''; +629: // Salt the key(32) and iv(16) = 48 +630: while (strlen($salted) < 48) { +631: $dx = hash('sha256', $dx . $password_key . $salt, true); +632: $salted .= $dx; +633: } +634: +635: $key = substr($salted, 0, 32); +636: $iv = substr($salted, 32, 16); 637: -638: for ($i = 1; $i < $rounds; $i++) { -639: $hash[$i] = hash('sha256', $hash[$i - 1] . $data00, true); -640: $result .= $hash[$i]; -641: } -642: -643: $key = substr($result, 0, 32); -644: $iv = substr($result, 32, 16); -645: -646: return openssl_decrypt($ct, 'AES-256-CBC', $key, true, $iv); -647: } // aes_256_decrypt +638: $encrypted_data = openssl_encrypt($data, 'AES-256-CBC', $key, true, $iv); +639: return base64_encode($salt . $encrypted_data); +640: } // aes_256_encrypt +641: +642: /** +643: * Decrypts the text previously encrypted with the AES 256 using a password key. +644: * +645: * @param string $edata +646: * The data to be decrypted. +647: * +648: * @param string $password_key +649: * The password key used for the encryption. +650: * +651: * @return string +652: * Returns the decrypted text. +653: * +654: * @see \SmartFactory\aes_256_decrypt() +655: * +656: * @author Oleg Schildt +657: */ +658: function aes_256_decrypt($edata, $password_key) +659: { +660: $data = base64_decode($edata); +661: $salt = substr($data, 0, 16); +662: $ct = substr($data, 16); +663: +664: $rounds = 3; // depends on key length +665: $data00 = $password_key . $salt; +666: $hash = array(); +667: $hash[0] = hash('sha256', $data00, true); +668: $result = $hash[0]; +669: +670: for ($i = 1; $i < $rounds; $i++) { +671: $hash[$i] = hash('sha256', $hash[$i - 1] . $data00, true); +672: $result .= $hash[$i]; +673: } +674: +675: $key = substr($result, 0, 32); +676: $iv = substr($result, 32, 16); +677: +678: return openssl_decrypt($ct, 'AES-256-CBC', $key, true, $iv); +679: } // aes_256_decrypt diff --git a/docs/structure.html b/docs/structure.html index 3730e70..bf2105a 100644 --- a/docs/structure.html +++ b/docs/structure.html @@ -126,7 +126,7 @@

src/SmartFactory/DatabaseWorkers