Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F531263
PhabricatorInlineCommentContentState.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
980 B
Referenced Files
None
Subscribers
None
PhabricatorInlineCommentContentState.php
View Options
<?php
abstract
class
PhabricatorInlineCommentContentState
extends
Phobject
{
private
$contentText
=
''
;
public
function
setContentText
(
$content_text
)
{
$this
->
contentText
=
$content_text
;
return
$this
;
}
public
function
getContentText
()
{
return
$this
->
contentText
;
}
public
function
isEmptyContentState
()
{
return
!
strlen
(
$this
->
getContentText
());
}
public
function
writeStorageMap
()
{
return
array
(
'text'
=>
$this
->
getContentText
(),
);
}
public
function
readStorageMap
(
array
$map
)
{
$text
=
(
string
)
idx
(
$map
,
'text'
);
$this
->
setContentText
(
$text
);
return
$this
;
}
final
public
function
readFromRequest
(
AphrontRequest
$request
)
{
$map
=
$this
->
newStorageMapFromRequest
(
$request
);
return
$this
->
readStorageMap
(
$map
);
}
protected
function
newStorageMapFromRequest
(
AphrontRequest
$request
)
{
$map
=
array
();
$map
[
'text'
]
=
(
string
)
$request
->
getStr
(
'text'
);
return
$map
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 12, 3:40 AM (1 d, 20 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
116794
Default Alt Text
PhabricatorInlineCommentContentState.php (980 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment