Functions - SmartFactory Library

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.