- get_callback_type($callback)
Return the type of the callback $callback
- sort_callback_parameters($callback, $parameters)
Return a copy of the array $parameters sorted according to the parameters of the callable $callback
- call_user_func_array_assoc($callback, $parameters)
Call a callback with an associative array of parameters
- call_user_constructor_array_assoc($class, $parameters)
Call a constructor with an associative array of parameters
- model_full_name($model_short_name)
Return the model full name of the given model short name
- association_full_name($association_short_name)
Return the association full name of the given association short name
- model_to_table($model)
Return the name of the table related to the given model short name or model object
- association_to_table($association)
Return the name of the table related to the given association short name or association object
- is_table_abstract_model($business)
Check if the given business full name or business object is a table abstract model
- is_table_concrete_model($business)
Check if the given business full name or business object is a table concrete model
- is_table_enum_model($business)
Check if the given business full name or business object is a table enum model
- is_table_model($business)
Check if the given business full name or business object is a table model
- is_table_association($business)
Check if the given business full name or business object is a table association
- print_model($model)
Display the given model using the print_r function
- print_models($models)
Display the given array of models using the print_r function
- var_dump_model($model)
Display the given model using the var_dump function
- var_dump_models($models)
Display the given array of models using the var_dump function
- print_association($association)
Display the given association using the print_r function
- print_associations($associations)
Display the given array of associations using the print_r function
- var_dump_association($association)
Display the given association using the var_dump function
- var_dump_associations($associations)
Display the given array of associations using the var_dump function
- cc_strlen($str)
Get string length considering the configuration item "charset"
- db_strlen($str)
Get string length considering the database configuration item "char_set"
- cc_strpos($haystack, $needle, $offset = 0)
Find position of first occurence of string in a string considering the configuration item "charset"
- db_strpos($haystack, $needle, $offset = 0)
Find position of first occurence of string in a string considering the database configuration item "char_set"
- cc_substr($str, $start, $length = null)
Get part of string considering the configuration item "charset"
- db_substr($str, $start, $length = null)
Get part of string considering the database configuration item "char_set"
- php_data_to_mysql_data($php_data, $data_type)
Return the MySQL data string corresponding to the PHP data $php_data
$data_type is the type of the data as described
here.
- mysql_data_to_php_data($mysql_data, $data_type)
Return the PHP data corresponding to the MySQL data $mysql_data
$data_type is the type of the data as described
here.
- php_data_to_pgsql_data($php_data, $data_type)
Return the PostgreSQL data string corresponding to the PHP data $php_data
$data_type is the type of the data as described
here.
- pgsql_data_to_php_data($pgsql_data, $data_type)
Return the PHP data corresponding to the PostgreSQL data $pgsql_data
$data_type is the type of the data as described
here.
- get_class_short_name($arg1)
Get the class short name of the parameter $arg1
- get_trait_names($arg1)
Get the trait names of the parameter $arg1
- has_trait_name($arg1, $trait_name)
Check if the parameter $arg1 has the trait name $trait_name
Two functions have been added.
- in_string($needle, $haystack, $offset = null)
Check if $needle is in $haystack starting from $offset (or from the beginning if $offset is null)
- strstr_after_needle($haystack, $needle)
Return part of haystack string starting after the first occurrence of needle to the end of haystack
- is_undefined($var)
Return true if the variable $var is an instance of Undefined and false otherwise