[ Index ] |
|
Code source de Symfony 1.0.0 |
[Code source] [Imprimer] [Statistiques]
An abstract class for handling LOB (Locator Object) columns.
Author: | Hans Lellelid <hans@xmpl.org> |
Version: | $Revision: 1.10 $ |
Poids: | 243 lignes (8 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 0 fois |
Nécessite: | 0 fichiers |
__construct($data = null) X-Ref |
Construct a new Lob. param: sttring $data The data contents of the Lob. |
getContents() X-Ref |
Get the contents of the LOB. return: string The characters in this LOB. |
setContents($data) X-Ref |
Set the contents of this LOB. Sets the modified flag to FALSE if this is the first call to setContents() for this object. Sets the bit to TRUE if this any subsequent call to setContents(). param: string $bytes |
setInputFile($filePath) X-Ref |
Specify the file that we want this LOB read from. param: string $filePath The location of the file. return: void |
getInputFile() X-Ref |
Get the file that we want this LOB read from. return: string The location of the file. |
setOutputFile($filePath) X-Ref |
Specify the file that we want this LOB saved to. param: string $filePath The location of the file. return: void |
getOutputFile() X-Ref |
Get the file that we want this LOB saved to. return: string $filePath The location of the file. |
isFromFile() X-Ref |
Returns whether this Lob is loaded from file. This is useful for bypassing need to read in the contents of the Lob. return: boolean Whether this LOB is to be read from a file. |
readFromFile($file = null) X-Ref |
Read LOB data from file (binary safe). (Implementation may need to be moved into Clob / Blob subclasses, but since file_get_contents() is binary-safe, it hasn't been necessary so far.) param: string $file Filename may also be specified here (if not specified using setInputFile()). return: void |
writeToFile($file = null) X-Ref |
Write LOB data to file (binary safe). (Impl may need to move into subclasses, but so far not necessary.) param: string $file Filename may also be specified here (if not set using setOutputFile()). |
__toString() X-Ref |
Convenience method to get contents of LOB as string. return: string |
setModified($b) X-Ref |
Set whether LOB contents have been modified after initial setting. param: boolean $b |
isModified() X-Ref |
Whether LOB contents have been modified after initial setting. return: boolean TRUE if the contents have been modified after initial setting. |
Généré le : Fri Mar 16 22:42:14 2007 | par Balluche grâce à PHPXref 0.7 |