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 156 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 ==Zharesbefmmmm Zharesbef jon jonathaon =fandegit@yandex.com 7896543210 g 0000-00-00 tygrdt jhjg jghj hjghj hjghj hgjghj jghj jgh hjghjgj
4 32 Zharesbef =7v8bv5TeoW 0000-00-00
5 33 ==SergioPrion SergioPrion =s.ergeyfrolyak1977112018@gmail.com 0000-00-00
6 34 SergioPrion =be$v8a34oNS 0000-00-00
7 35 ==SergioPrion SergioPrion =s.ergeyfrolyak1977112018@gmail.com 0000-00-00 =[]=drama =AminoBoosters ??? ?????? http://1541.ru ( ??????) ????????, ?? ??????? ? 4 ???? ? ??????? ?? ?????????? ?????????. ??? 1 ? 1 ? laminine LPGN - ?????, ?????????? ?-?? ????????? - ?????? ?????? ????????. ??????? ?? ?????? ????????? YTE ??????? ???, ??? ???????? ?????????.??? ?? ?????????. ???????????? ? ???? ??????? ?? ??????????????? ???????????????? ???????? ???? ? FGF ( ???????? ????? ????????????). viber +380976131437 ????? evg7773
8 36 ==Conradowerm Conradowerm =anatolidot@yandex.ru 0000-00-00
9 37 Conradowerm =2E#nvxzw28J 0000-00-00
10 38 ==Bryceres Bryceres =npn2017@ukr.net 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