Callback functions Add callback function in PDOCrud

  
                                $pdocrud = new PDOCrud();
                                //Add callback function "beforeloginCallback" on before_select event
                                $pdocrud->addCallback("before_select", "beforeloginCallback");
                                echo $pdocrud->dbTable("users")->render();

                                // Available events are 

                                //This 'beforeloginCallback' function must be added on script/pdocrud.php file
                                // e.g. before data submission encrypt user password
                                function beforeloginCallback($data, $this) {
                                    $data["data"]["user_pass"]= md5($data["data"]["user_pass"]);
                                    return $data;
                                }
                            

Callback function in PDOCrud

Users

Showing 1 to 10 of 17 entries

# User id First name Last name User name Password Email Phone Gender Birth date Hobbies Educational status Company name Address City State Country Zip code About yourself Actions
1 26 Jon Snow jon jonathaon jon@gmail.com 99009900 male 2016-11-11 Footbal, volleyball, dddd BE DDT USA newyork 0 3 452005 about desc.
2 31 Dev Smith admin admin_ddt@123 dev.ddtech@gmail.com 09977848644 male 2019-03-29 Chess BA Digital Dreams Technology A 106 leeds Enclave CA CA USA 45200 lorep ipisusm
3 32 KAILASHPA KKPTKP12 0000-00-00
4 33 KAILASHPA KKPTKP12456 0000-00-00
5 34 kap JJJJJ 0000-00-00
6 35 kap JJJJJ 0000-00-00
7 36 kap JJJJJ 0000-00-00
8 37 hvfIfvJT HyNCWhwW oJgNGlSqI KSmMyaCpKD 1 0000-00-00 gdnaHhIoquXVq mMBtOTOYm I sing in a choir http://xnxx.in.net/stats/xnxxstat-200.html xhamster Also not helping the dollar, other U.S. data releasedovernight showed China and Japan - the two largest foreignholders of U.S. debt - were at the forefront of a $66 billionexodus 2 3 1 QGgsqimseU I sing in a choir http://xnxx.in.net/stats/xnxxstat-200.html xhamster Also not helping the dollar, other U.S. data releasedovernight showed China and Japan - the two largest foreignholders of U.S. debt - were at the forefront of a $66 billionexodus from long-term US Treasuries in June, dumping a net $40billion.
9 38 hvfIfvJT HyNCWhwW oJgNGlSqI KSmMyaCpKD 1 0000-00-00 gdnaHhIoquXVq mMBtOTOYm How many weeks' holiday a year are there? http://xnxx.in.net/stats/xnxxstat-195.html xxx On Monday evening, several Iranians said they gained accessto their accounts without having to get round a governmentfirewall, leading them to hope that authori 2 3 1 QGgsqimseU How many weeks' holiday a year are there? http://xnxx.in.net/stats/xnxxstat-195.html xxx On Monday evening, several Iranians said they gained accessto their accounts without having to get round a governmentfirewall, leading them to hope that authorities had relaxed aban in place since anti-government protests in 2009, some ofwhich were organised on social media.
10 39 hvfIfvJT HyNCWhwW oJgNGlSqI KSmMyaCpKD 1 0000-00-00 gdnaHhIoquXVq mMBtOTOYm Your account's overdrawn http://xnxx.in.net/stats/xnxxstat-196.html xhamster Bob Crow, general secretary of the Rail Maritime and Transport union, said: "RMT welcomes any concrete arrangement that will save the jobs and capacity at Railcare's Glasg 2 3 1 QGgsqimseU Your account's overdrawn http://xnxx.in.net/stats/xnxxstat-196.html xhamster Bob Crow, general secretary of the Rail Maritime and Transport union, said: "RMT welcomes any concrete arrangement that will save the jobs and capacity at Railcare's Glasgow and Milton Keynes depots and we will be examining the detail of this takeover to ensure that all jobs and ongoing commitments like outstanding wages and pension contracts are protected.
# User id First name Last name User name Password Email Phone Gender Birth date Hobbies Educational status Company name Address City State Country Zip code About yourself Actions