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 85 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 JamesHep =l6fr1@zV1pB 0000-00-00
2 33 ==DentalJem DentalJem =dentalsuper2017@gmail.com 0000-00-00
3 34 DentalJem =qy913zdXpN 0000-00-00
4 35 ==BarbaraPab BarbaraPab =fghrtfrhtt567hgj@yandex.com 0000-00-00
5 36 BarbaraPab =T1p9ao1r@hT 0000-00-00
6 38 Buhbrili =puncwamafa1970Q 0000-00-00
7 39 ==Geraldwab Geraldwab =npciswbo@gsibiliaali1.xsl.pt 0000-00-00
8 40 Geraldwab =opQ$l7rt88G 0000-00-00
9 41 j jhuhu ttttt6 ytyt uhuu@gmai.com ugug ui 0000-00-00 ytuyt uiuyuuyu uyuy uyuyu7y uiyuity yuyy yg 394101 yuy
10 42 ==Kevinveicy Kevinveicy =egoriyf@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