projects
/
mdref
/
mdref-pq
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
missing bits
[mdref/mdref-pq]
/
pq
/
Converter
/
convertFromString.md
diff --git
a/pq/Converter/convertFromString.md
b/pq/Converter/convertFromString.md
index e7bc70148ca60d3f9d5459f51b6f3d8fd3d1c6f4..08af5408bfb42ff6d3ae51fd9244f3d996f71657 100644
(file)
--- a/
pq/Converter/convertFromString.md
+++ b/
pq/Converter/convertFromString.md
@@
-1,4
+1,4
@@
-# mixed pq\Converter::convertFromString(string $data
[, int $type = NULL
)
+# mixed pq\Converter::convertFromString(string $data
, int $type
)
Convert a string received from the PostgreSQL server back to a PHP type.
Convert a string received from the PostgreSQL server back to a PHP type.
@@
-6,8
+6,8
@@
Convert a string received from the PostgreSQL server back to a PHP type.
* string $data
String data received from the server.
* string $data
String data received from the server.
-*
Optional in $type = NULL
- The type of the data. Irrelevant for single-type converters.
+*
int $type
+ The type
OID
of the data. Irrelevant for single-type converters.
## Returns:
## Returns:
@@
-18,7
+18,7
@@
Convert a string received from the PostgreSQL server back to a PHP type.
<?php
abstract class Example implements pq\Converter {
<?php
abstract class Example implements pq\Converter {
- function convertFromString($data, $type
= NULL
) {
+ function convertFromString($data, $type) {
return uuid_parse($data);
}
}
return uuid_parse($data);
}
}