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 78 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 0 2016-11-11 Footbal, volleyball, dddd BE DDT USA newyork 0 1 452005 about desc.
2 30 yemqHDGbASghVu hcWntOcErdNAcklhyj QIuDjsqpMkLGUDESEm jgDUxaeJiZCkuaoVh fVZnYMKEtIa 0000-00-00 cheap viagra spdNvoiqwOxc YuvNreRnGhEvaa generic viagra online pharmacy cheap generic viagra xcREtODtJe ibFsTlIsQfaTwBh ATptExgQvFaVt mZozqIJVFug generic viagra online pharmacy cheap generic viagra
3 31 ==rosemarieev3 janicelp16 =marietta@hiraku91.gull-minnow.top 0000-00-00
4 32 emmaqs3 =x4ivygA51Fcfe344334 0000-00-00
5 33 ==renesd18 yvettesu69 =janazg4@tamotsu8510.ryoichi86.hensailor.xyz 0000-00-00
6 34 latonyapr16 =x4ivygA51Fcfe344334 0000-00-00
7 35 ==Alonzoslime Alonzoslime =charsiogari1975@plusgmail.ru 0000-00-00
8 36 Alonzoslime =kdO9%f21zqI 0000-00-00
9 37 ==JamesRoatt JamesRoatt =fabinho.silva.zidane@gmail.com 0000-00-00
10 38 JamesRoatt =geap45&Hh3T 0000-00-00
# 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