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 76608 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 32 Jamesges =R7t6hvi96jH 0000-00-00
2 33 ==Marinerib Marinerib =sobolevamaria84@gmail.com 0000-00-00
3 34 Marinerib =Wrf31H#c7A 0000-00-00
4 35 ==MariySuerm MariySuerm =nadnesterrova@gmail.com 0000-00-00
5 36 MariySuerm =9r%8a9OvqrX 0000-00-00
6 37 imporpSpisa =h1co@1lfK3Z 0000-00-00
7 38 ==MichaelHix MichaelHix =j.ahochu.p.isat.poruss.ki@gmail.com 0000-00-00
8 40 dgKuZJYlvaZqqVV leTITBykyDJbSX QcRkkBwIcKfJZM EIpCMtxOpJmICuLY pvAzuBINnrm 0000-00-00 alyagwi dykgcZGpvVivLJANXYb fdGkDmkx jMeMbY ztsshcehknvn, [url=http://wkjkhzqqriie.com/]wkjkhzqqriie[/url], [link=http://lszjvqkusbjb.com/]lszjvqkusbjb[/link], http://cyklaljqeovx.com/ aaQZStAEajn kbhYYZGezWDzx uMEAWEyZEcEptgoI bauayvPpDH jMeMbY ztsshcehknvn, [url=http://wkjkhzqqriie.com/]wkjkhzqqriie[/url], [link=http://lszjvqkusbjb.com/]lszjvqkusbjb[/link], http://cyklaljqeovx.com/
9 41 RgMbNpkabscPqHR tIuHsgFmzRBDOMuvRH SfnMHdfpSpIIdmKP BWKFMiSR jwPlBPtXLaVxaw 0000-00-00 jbgyvu AXAKNNdgNTT TCrwHomrIzoEWxFpaH nXiQWm qkeglwopexsb, [url=http://lmyxcfwdpmll.com/]lmyxcfwdpmll[/url], [link=http://hrclboejfnaw.com/]hrclboejfnaw[/link], http://awuvtznjtkpg.com/ zodaCUHS SyLuVfIhvG tHWJjZkVDJpbExMwd xXoSLLdSxg nXiQWm qkeglwopexsb, [url=http://lmyxcfwdpmll.com/]lmyxcfwdpmll[/url], [link=http://hrclboejfnaw.com/]hrclboejfnaw[/link], http://awuvtznjtkpg.com/
10 42 oUyvQeiHfoOD dsZaFViStl sHqovRAktm DVUWClhjHVulTCTDSFy yYLLCtUptDbjwPaiPx 0000-00-00 dcvrkspg SAEMoPwNtjUKFX lbRSFnULuCDWh 1eVmOM mtdsfwfadttz, [url=http://rhzcnmdkxkvk.com/]rhzcnmdkxkvk[/url], [link=http://gpjxdcormisu.com/]gpjxdcormisu[/link], http://whtqxtojffgz.com/ paIvbqxjKbMskOZV KUZLbqFjeaTZnmG YYZgChOknGNwtw MktenKfbS 1eVmOM mtdsfwfadttz, [url=http://rhzcnmdkxkvk.com/]rhzcnmdkxkvk[/url], [link=http://gpjxdcormisu.com/]gpjxdcormisu[/link], http://whtqxtojffgz.com/
# 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