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 14 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 ==MichaelZooge MichaelZooge =bis1123@myfreeserver.bid 0000-00-00
4 32 MichaelZooge =2Nuwk7ig3G 0000-00-00
5 33 ==Aaronkex Aaronkex =mitzie@simplyemail.bid 0000-00-00
6 34 Aaronkex =sk81o5ZkwF 0000-00-00
7 35 ==Charlesvirty Charlesvirty =diana59@mmail.trade 0000-00-00
8 36 Charlesvirty =i88yq4rjWF 0000-00-00
9 37 ==Charlesvirty Charlesvirty =kevplay@mail4you.racing 0000-00-00
10 39 ==Aaronkex Aaronkex =mikeskeezy@myumail.bid 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