note 59355 added to ref.pdo
| From: | MatthiasLeuffen at osu1 dot php dot net | Date: | Sun, 04 Dec 2005 09:36:13 +0000 |
| Subject: | note 59355 added to ref.pdo | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-99547@lists.php.net to get a copy of this message | ||
Hi there,
because of ZDE 5.0 and other PHP-IDEs do not seem to support PDO from PHP5.1 in
code-completion-database yet, I wrote a code-completion alias for the PDO class.
NOTE: This Class has no functionality and should be only included to your IDE-Project but NOT(!) to
your application.
<?php
/**
* This is a Code-Completion only file
* (For use with ZDE or other IDEs)
*
* Do NOT include() or require() this to your code
*
* @author Matthias Leuffen
*/
class PDO {
/**
* Error Constants
*
*/
const ERR_ALREADY_EXISTS = 0;
const ERR_CANT_MAP = 0;
const ERR_NOT_FOUND = 0;
const ERR_SYNTAX = 0;
const ERR_CONSTRAINT = 0;
const ERR_MISMATCH = 0;
const ERR_DISCONNECTED = 0;
const ERR_NONE = 0;
/**
* Attributes (to use in PDO::setAttribute() as 1st Parameter)
*
*/
const ATTR_ERRMODE = 0;
const ATTR_TIMEOUT = 0;
const ATTR_AUTOCOMMIT = 0;
const ATTR_PERSISTENT = 0;
// Values for ATTR_ERRMODE
const ERRMODE_EXCEPTION = 0;
const ERRMODE_WARNING = 0;
const FETCH_ASSOC = 0;
const FETCH_NUM = 0;
const FETCH_OBJ = 0;
public function __construct($uri, $user, $pass, $optsArr) {
}
/**
* Prepare Statement: Returns PDOStatement
*
* @param string $prepareString
* @return PDOStatement
*/
public function prepare ($prepareString) {
}
public function query ($queryString) {
}
public function quote ($input) {
}
public function exec ($statement) {
}
public function lastInsertId() {
}
public function beginTransaction () {
}
public function commit () {
}
public function rollBack () {
}
public function errorCode () {
}
public function errorInfo () {
}
}
class PDOStatement {
public function bindValue ($no, $value) {
}
public function fetch () {
}
public function nextRowset () {
}
public function execute() {
}
public function errorCode () {
}
public function errorInfo () {
}
public function rowCount () {
}
public function setFetchMode ($mode) {
}
public function columnCount () {
}
}
----
Manual Page -- http://www.php.net/manual/en/ref.pdo.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+59355
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+59355&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+59355&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+59355&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+59355&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+59355&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+59355&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+59355&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+59355&report=yes
Search -- http://master.php.net/manage/user-notes.php