These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | /** |
||
3 | * KumbiaPHP web & app Framework. |
||
4 | * |
||
5 | * LICENSE |
||
6 | * |
||
7 | * This source file is subject to the new BSD license that is bundled |
||
8 | * with this package in the file LICENSE.txt. |
||
9 | * It is also available through the world-wide-web at this URL: |
||
10 | * http://wiki.kumbiaphp.com/Licencia |
||
11 | * If you did not receive a copy of the license and are unable to |
||
12 | * obtain it through the world-wide-web, please send an email |
||
13 | * to [email protected] so we can send you a copy immediately. |
||
14 | * |
||
15 | * @category Kumbia |
||
16 | * |
||
17 | * @copyright 2005 - 2016 Kumbia Team (http://www.kumbiaphp.com) |
||
18 | * @license http://wiki.kumbiaphp.com/Licencia New BSD License |
||
19 | */ |
||
20 | namespace Kumbia\ActiveRecord\Query; |
||
21 | |||
22 | /** |
||
23 | * Obtiene el último id generado en mysql. |
||
24 | * |
||
25 | * @param \PDO $dbh conexion pdo |
||
26 | * @param string $pk campo clave primaria |
||
27 | * @param string $table nombre de tabla |
||
28 | * @param string $schema esquema |
||
29 | * |
||
30 | * @return string |
||
31 | */ |
||
32 | function mysql_last_insert_id(\PDO $dbh, $pk, $table, $schema = null) |
||
0 ignored issues
–
show
|
|||
33 | { |
||
34 | return $dbh->lastInsertId(); |
||
35 | } |
||
36 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.