| Namespaces |
|---|
| \ |
| SmartFactory |
| SmartFactory\DatabaseWorkers |
| SmartFactory\Interfaces |
| Packages |
|---|
| Database |
| Factory |
| HTML Utils |
| System |
| Utility Functions |
| Functions | ||
|---|---|---|
| aes_256_decrypt() | SmartFactory |
Decrypts the text previously encrypted with the AES 256 using a password key. |
| aes_256_encrypt() | SmartFactory |
Encrypts the text with the AES 256 using a password key. |
| array_to_dom() | SmartFactory |
Converts an array to XML DOM structure. |
| array_to_json() | SmartFactory |
Converts the array to JSON string. |
| checkbox() | SmartFactory |
Function for rendering the checkbox field. |
| common_prefix() | SmartFactory |
Defines the common prefix of two strings. |
| config_settings() | SmartFactory |
Short function for getting the instance of the ConfigSettingsManager. |
| dbshard() | SmartFactory |
Short function for requesting the dbworker connected to the specified shard. |
| dbworker() | SmartFactory |
The method dbworker provides the DBWorker object for working with the database. |
| debug_message() | SmartFactory |
Short function for writing debug messages to the log. |
| debugger() | SmartFactory |
Short function for getting the instance of the IDebugProfiler. |
| dom_to_array() | SmartFactory |
Converts a XML DOM structure to an array. |
| escape_html() | SmartFactory |
Escapes the HTML special characters in the text. |
| escape_html_array() | SmartFactory |
Escapes recursively the HTML special characters in the values of the array. |
| escape_js() | SmartFactory |
Escapes the JavaScript special characters in the text. |
| event() | SmartFactory |
Short function for getting the instance of the IEventManager. |
| format_number() | SmartFactory |
Formats the number due to the specified settings. |
| get_cookie() | SmartFactory |
Gets the cookie value by name. |
| get_header() | SmartFactory |
Gets the header by its name. |
| input_hidden() | SmartFactory |
Function for rendering the hidden input field. |
| input_password() | SmartFactory |
Function for rendering the password input field. |
| input_text() | SmartFactory |
Function for rendering the text input field. |
| instance() | SmartFactory |
The method instance creates an object that support the specified interface. |
| is_associative() | SmartFactory |
Checks whether the array $array is associative. |
| is_web() | SmartFactory |
Checks whether the session is cmd client or web. |
| json_to_array() | SmartFactory |
Converts the JSON string to an array. |
| messenger() | SmartFactory |
Short function for getting the instance of the IMessageManager. |
| preg_p_escape() | SmartFactory |
Escapes the special characters in the text used for the regular expression pattern. |
| preg_pattern_quote() | \ |
Function for escaping the special symbols for putting into the regexp pattern as a simple text in the pattern. |
| preg_r_escape() | SmartFactory |
Escapes the special characters in the text used for the regular expression replacement. |
| preg_replacement_quote() | \ |
Function for escaping the special symbols for putting into the regexp pattern as a simple text. |
| radiobutton() | SmartFactory |
Function for rendering the radiobutton field. |
| randomDBShard() | SmartFactory |
Short function for requesting the dbworker connected to the specified shard, that is chosen randomly for load balancing reason. |
| reqvar_value() | SmartFactory |
Function for getting value of a request variable. |
| runtime_settings() | SmartFactory |
Short function for getting the instance of the RuntimeSettingsManager. |
| select() | SmartFactory |
Function for rendering the select field. |
| set_cookie() | SmartFactory |
Sets the cookie name=value. |
| singleton() | SmartFactory |
The method singleton creates an object that supports the specified interface and ensures that only one instance of this object exists. |
| string_empty() | SmartFactory |
Checks whether the text is an empty string. |
| string_to_number() | SmartFactory |
Converts the string to number due to the specified settings. |
| table() | SmartFactory |
Function for rendering tables. |
| text() | SmartFactory |
Short function that provides the text translation for the text ID for the given language. |
| textarea() | SmartFactory |
Function for rendering the text area field. |
| timestamp() | SmartFactory |
Converts the string representing the date/time in the specified format to the timestap. |
| user_settings() | SmartFactory |
Short function for getting the instance of the UserSettingsManager. |
| Interfaces | ||
|---|---|---|
| IDebugProfiler | SmartFactory\Interfaces |
Interface for debugging, tracing and profiling. |
| IErrorHandler | SmartFactory\Interfaces |
Interface for error handling. |
| IEventManager | SmartFactory\Interfaces |
Interface for event management. |
| IInitable | SmartFactory\Interfaces |
Interface for universal standard way of the object initialization through the array of parameters. |
| ILanguageManager | SmartFactory\Interfaces |
Interface for localization support. |
| IMessageManager | SmartFactory\Interfaces |
Interface for working with messages. |
| IRecordsetManager | SmartFactory\Interfaces |
Interface for working with record sets. |
| IRequestHandler | SmartFactory\Interfaces |
Interface for handling the API requests. |
| ISettingsManager | SmartFactory\Interfaces |
Interface for working with settings. |
| ISettingsValidator | SmartFactory\Interfaces |
Interface for settings validation. |
| IShardManager | SmartFactory\Interfaces |
Interface for managing connections to the DB shards. |
| Classes | ||
|---|---|---|
| ConfigSettingsManager | SmartFactory |
Class for management of the config settings stored in a config JSON file. |
| DBWorker | SmartFactory\DatabaseWorkers |
This is the abstract base class for all dbworkers for different databases. |
| DBWorkerException | SmartFactory\DatabaseWorkers |
Class for DBWorkerException in the SmartFactory library. |
| DebugProfiler | SmartFactory |
Class for debugging, tracing and profiling. |
| ErrorHandler | SmartFactory |
Class for error handling. |
| EventManager | SmartFactory |
Class for event management. |
| JsonRequestHandler | SmartFactory |
Class for handling the JSON API requests. |
| LanguageManager | SmartFactory |
Class for working with localization of texts. |
| MSSQL_DBWorker | SmartFactory\DatabaseWorkers |
This is the class for the MS SQL database using the extension sqlsrv. |
| MessageManager | SmartFactory |
Class for working with messages - errors, warnings etc. |
| MySQL_DBWorker | SmartFactory\DatabaseWorkers |
This is the class for the MySQL database using the extension mysqli. |
| ObjectFactory | SmartFactory |
Class for creation of the objects. |
| PostgreSQL_DBWorker | SmartFactory\DatabaseWorkers |
This is the class for the PostreSQL database using the extension pgsql. |
| RecordsetManager | SmartFactory |
Class for working with record sets. |
| RequestHandler | SmartFactory |
Abstract class for handling the JSON and XML requests. |
| RuntimeSettingsManager | SmartFactory |
Class for management of the application settings. |
| ShardManager | SmartFactory\DatabaseWorkers |
Class for managing connections to the DB shards. |
| SmartException | SmartFactory |
Class for extended exception used in the SmartFactory library. |
| SmartExceptionCollection | SmartFactory |
Class for extended exception collection used in the SmartFactory library. It allows to collect many errors and report them at once. |
| UserSettingsManager | SmartFactory |
Class for management of the user settings. |
| XmlRequestHandler | SmartFactory |
Class for handling the XML API requests. |