Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2895224
DiffusionFileContent.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
1 KB
Referenced Files
None
Subscribers
None
DiffusionFileContent.php
View Options
<?php
final
class
DiffusionFileContent
{
private
$corpus
;
private
$blameDict
;
private
$revList
;
private
$textList
;
public
function
setTextList
(
array
$text_list
)
{
$this
->
textList
=
$text_list
;
return
$this
;
}
public
function
getTextList
(
)
{
if
(
!
$this
->
textList
)
{
return
phutil_split_lines
(
$this
->
getCorpus
(
)
,
$retain_ends
=
false
)
;
}
return
$this
->
textList
;
}
public
function
setRevList
(
array
$rev_list
)
{
$this
->
revList
=
$rev_list
;
return
$this
;
}
public
function
getRevList
(
)
{
return
$this
->
revList
;
}
public
function
setBlameDict
(
array
$blame_dict
)
{
$this
->
blameDict
=
$blame_dict
;
return
$this
;
}
public
function
getBlameDict
(
)
{
return
$this
->
blameDict
;
}
public
function
setCorpus
(
$corpus
)
{
$this
->
corpus
=
$corpus
;
return
$this
;
}
public
function
getCorpus
(
)
{
return
$this
->
corpus
;
}
public
function
toDictionary
(
)
{
return
array
(
'corpus'
=>
$this
->
getCorpus
(
)
,
'blameDict'
=>
$this
->
getBlameDict
(
)
,
'revList'
=>
$this
->
getRevList
(
)
,
'textList'
=>
$this
->
getTextList
(
)
,
)
;
}
public
static
function
newFromConduit
(
array
$dict
)
{
return
id
(
new
DiffusionFileContent
(
)
)
->
setCorpus
(
$dict
[
'corpus'
]
)
->
setBlameDict
(
$dict
[
'blameDict'
]
)
->
setRevList
(
$dict
[
'revList'
]
)
->
setTextList
(
$dict
[
'textList'
]
)
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Jan 19 2025, 21:07 (6 w, 1 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1128768
Default Alt Text
DiffusionFileContent.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment