}
/**
- * form MUST have an hidden field named 'form' to enable proper routing
+ * form MUST have an hidden field named 'form' to enable proper routing here
*/
$form = filter_input(INPUT_POST, 'form', FILTER_SANITIZE_URL);
$is_form = true;
//var_dump($_SESSION);
+/**
+ * [get_action_type description]
+ * @return [type] [description]
+ */
function get_action_type() {
global $is_page, $is_form;
}
}
+/**
+ * [get_url_action description]
+ * @param [type] $action_type [description]
+ * @return [type] [description]
+ */
function get_url_action($action_type) {
global $page, $form;
return $configs['actions'][0];
}
+/**
+ * [display_action description]
+ * @param [type] $action_name [description]
+ * @param [type] $action_type [description]
+ * @return [type] [description]
+ */
function display_action($action_name, $action_type)
{
global $configs;
private $current_result;
/**
- * [__construct description]
- * @param [type] $host [description]
- * @param [type] $username [description]
- * @param [type] $password [description]
- * @param [type] $dbname [description]
+ * __construct class constructor method that permit to initialize
+ * the connection to the RDBMS database
+ * @param string $host RDBMS hostname
+ * @param string $username RDBMS user
+ * @param string $password RDBMS user password
+ * @param string $dbname RDBMS database to use
+ * @return object an object which represents the connection to a RDBMS Server.
*/
public function __construct($host, $username, $password, $dbname)
{
} */
/**
- * [close description]
- * @return [type] [description]
+ * close method to close the opened connection to the RDBMS server
+ * @return void
*/
public function close()
{
}
/**
- * [query description]
- * @param [type] $sql_query [description]
- * @return [type] [description]
+ * query method that permit to execute a SQL query
+ * @param string $sql_query the SQL query to execute
+ * @return mysqli_result object or FALSE on failure and TRUE for queries
+ * without results
*/
public function query($sql_query)
{
}
/**
- * [prepare_query description]
- * @param [type] $prepared_query [description]
- * @return [type] [description]
+ * prepare_query method for parametrized SQL query preparation
+ * @param string $prepared_query parametrized SQL query to prepare
+ * @return object statement object or FALSE if an error occurred
*/
public function prepare_query($prepared_query)
{
}
/**
- * [prepared_query_bind_param description]
- * @param [type] $types [description]
- * @param [type] $params [description]
- * @return [type] [description]
+ * prepared_query_bind_param link parameters values to a prepared SQL query
+ * @param string $types parameters types
+ * @param array $params unidimensional array of parameters values
+ * @return boolean TRUE on success or FALSE on failure
*/
public function prepared_query_bind_param($types, $params)
{
}
/**
- * [run_prepared_query description]
- * @return [type] [description]
+ * run_prepared_query method that execute a parametrized SQL query linked
+ * with its parameters values
+ * @return boolean TRUE on success or FALSE on failure
*/
public function run_prepared_query()
{