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 65 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 3 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 ==Mathewagomi Mathewagomi =nlorik@yahoo.com 0000-00-00
4 32 Mathewagomi =f84V@u7gvkC 0000-00-00
5 33 ==Jameskeync Jameskeync =silurio4@yandex.ru 0000-00-00
6 34 Jameskeync =8&t8p4FrdiN 0000-00-00
7 35 ==louis vuitton bags louis vuitton bags =bubylimauna@gmail.com 0000-00-00
8 36 louis vuitton bags =8hojl5N6nL 0000-00-00
9 37 ==louis vuitton bags louis vuitton bags =bubylimauna@gmail.com 0000-00-00 =[]=art =oakley sunglasses michael kors bags replica rolex rolex watches breitling watches replica watches
10 38 ==TheresablaGs TheresablaGs =elenka.rjnjnjwa4596@gmail.com 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