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 16 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.
Notice: Undefined index: u in /home/pdocrud5/public_html/script/classes/templates/bootstrap/template-table.php on line 83

Notice: Undefined index: u in /home/pdocrud5/public_html/script/classes/templates/bootstrap/template-table.php on line 83

Notice: Undefined index: u in /home/pdocrud5/public_html/script/classes/templates/bootstrap/template-table.php on line 83
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
Notice: Undefined index: u in /home/pdocrud5/public_html/script/classes/templates/bootstrap/template-table.php on line 83

Notice: Undefined index: u in /home/pdocrud5/public_html/script/classes/templates/bootstrap/template-table.php on line 83

Notice: Undefined index: u in /home/pdocrud5/public_html/script/classes/templates/bootstrap/template-table.php on line 83
3 0 ==Mashajuimi Mashajuimi =ivanfrankovich2017@mail.ru 0000-00-00
Notice: Undefined index: u in /home/pdocrud5/public_html/script/classes/templates/bootstrap/template-table.php on line 83

Notice: Undefined index: u in /home/pdocrud5/public_html/script/classes/templates/bootstrap/template-table.php on line 83

Notice: Undefined index: u in /home/pdocrud5/public_html/script/classes/templates/bootstrap/template-table.php on line 83
4 0 Mashajuimi =ajee48h3VY 0000-00-00
Notice: Undefined index: u in /home/pdocrud5/public_html/script/classes/templates/bootstrap/template-table.php on line 83

Notice: Undefined index: u in /home/pdocrud5/public_html/script/classes/templates/bootstrap/template-table.php on line 83

Notice: Undefined index: u in /home/pdocrud5/public_html/script/classes/templates/bootstrap/template-table.php on line 83
5 0 ==Arthurdrard Arthurdrard =minkovskiyoleg@gmail.com 0000-00-00
Notice: Undefined index: u in /home/pdocrud5/public_html/script/classes/templates/bootstrap/template-table.php on line 83

Notice: Undefined index: u in /home/pdocrud5/public_html/script/classes/templates/bootstrap/template-table.php on line 83

Notice: Undefined index: u in /home/pdocrud5/public_html/script/classes/templates/bootstrap/template-table.php on line 83
6 0 Arthurdrard =zau!19k8aDJ 0000-00-00
Notice: Undefined index: u in /home/pdocrud5/public_html/script/classes/templates/bootstrap/template-table.php on line 83

Notice: Undefined index: u in /home/pdocrud5/public_html/script/classes/templates/bootstrap/template-table.php on line 83

Notice: Undefined index: u in /home/pdocrud5/public_html/script/classes/templates/bootstrap/template-table.php on line 83
7 0 ==AbbaLesype AbbaLesype =kosmetikacn@gmail.com 0000-00-00
Notice: Undefined index: u in /home/pdocrud5/public_html/script/classes/templates/bootstrap/template-table.php on line 83

Notice: Undefined index: u in /home/pdocrud5/public_html/script/classes/templates/bootstrap/template-table.php on line 83

Notice: Undefined index: u in /home/pdocrud5/public_html/script/classes/templates/bootstrap/template-table.php on line 83
8 0 AbbaLesype =itj7N3sv7G 0000-00-00
Notice: Undefined index: u in /home/pdocrud5/public_html/script/classes/templates/bootstrap/template-table.php on line 83

Notice: Undefined index: u in /home/pdocrud5/public_html/script/classes/templates/bootstrap/template-table.php on line 83

Notice: Undefined index: u in /home/pdocrud5/public_html/script/classes/templates/bootstrap/template-table.php on line 83
9 0 ==EddieRip EddieRip =rucrimtaxi@yandex.com 0000-00-00
Notice: Undefined index: u in /home/pdocrud5/public_html/script/classes/templates/bootstrap/template-table.php on line 83

Notice: Undefined index: u in /home/pdocrud5/public_html/script/classes/templates/bootstrap/template-table.php on line 83

Notice: Undefined index: u in /home/pdocrud5/public_html/script/classes/templates/bootstrap/template-table.php on line 83
10 0 EddieRip =!y641ohzTeE 0000-00-00
Notice: Undefined index: u in /home/pdocrud5/public_html/script/classes/templates/bootstrap/template-table.php on line 83

Notice: Undefined index: u in /home/pdocrud5/public_html/script/classes/templates/bootstrap/template-table.php on line 83

Notice: Undefined index: u in /home/pdocrud5/public_html/script/classes/templates/bootstrap/template-table.php on line 83
# 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