Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5974840
TextType.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
733 B
Referenced Files
None
Subscribers
None
TextType.php
View Options
<?php
namespace
Doctrine\DBAL\Types
;
use
Doctrine\DBAL\Platforms\AbstractPlatform
;
use
function
is_resource
;
use
function
stream_get_contents
;
/**
* Type that maps an SQL CLOB to a PHP string.
*/
class
TextType
extends
Type
{
/**
* {@inheritDoc}
*/
public
function
getSQLDeclaration
(
array
$column
,
AbstractPlatform
$platform
)
{
return
$platform
->
getClobTypeDeclarationSQL
(
$column
);
}
/**
* {@inheritDoc}
*/
public
function
convertToPHPValue
(
$value
,
AbstractPlatform
$platform
)
{
return
is_resource
(
$value
)
?
stream_get_contents
(
$value
)
:
$value
;
}
/**
* {@inheritDoc}
*/
public
function
getName
()
{
return
Types
::
TEXT
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Oct 3, 17:46 (22 h, 12 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
fa/2f/afd62d04fbb45f9f643c6f01b342
Default Alt Text
TextType.php (733 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment