note 83310 added to class.mysqli-stmt
| From: | krapfi at gmail dot com | Date: | Tue, 20 May 2008 13:35:52 +0000 |
| Subject: | note 83310 added to class.mysqli-stmt | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-139554@lists.php.net to get a copy of this message | ||
The prototype of the mysqli_stmt constructor is mysqli_stmt::__construct(mysqli $link, $query);
To extend mysqli_stmt, do
class myStmt extends mysqli_stmt {
public function __construct($link, $query) {
parent::__construct($link, $query);
}
}
class myI extends mysqli {
public function prepare($query) {
return new myStmt($this, $query);
}
}
http://blog.myhat.de/2007/06/26/pdo-and-extending-mysqli/
has further infos including how to extend mysqli_result
----
Server IP: 69.147.83.197
Probable Submitter: 84.189.59.21
----
Manual Page -- http://www.php.net/manual/en/class.mysqli-stmt.php
Edit -- https://master.php.net/note/edit/83310
Del: integrated -- https://master.php.net/note/delete/83310/integrated
Del: useless -- https://master.php.net/note/delete/83310/useless
Del: bad code -- https://master.php.net/note/delete/83310/bad+code
Del: spam -- https://master.php.net/note/delete/83310/spam
Del: non-english -- https://master.php.net/note/delete/83310/non-english
Del: in docs -- https://master.php.net/note/delete/83310/in+docs
Del: other reasons-- https://master.php.net/note/delete/83310
Reject -- https://master.php.net/note/reject/83310
Search -- https://master.php.net/manage/user-notes.php