Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F433300
PhabricatorQueryCursor.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
952 B
Referenced Files
None
Subscribers
None
PhabricatorQueryCursor.php
View Options
<?php
final
class
PhabricatorQueryCursor
extends
Phobject
{
private
$object
;
private
$rawRow
;
public
function
setObject
(
$object
)
{
$this
->
object
=
$object
;
return
$this
;
}
public
function
getObject
()
{
return
$this
->
object
;
}
public
function
setRawRow
(
array
$raw_row
)
{
$this
->
rawRow
=
$raw_row
;
return
$this
;
}
public
function
getRawRow
()
{
return
$this
->
rawRow
;
}
public
function
getRawRowProperty
(
$key
)
{
if
(!
is_array
(
$this
->
rawRow
))
{
throw
new
Exception
(
pht
(
'Caller is trying to "getRawRowProperty()" with key "%s", but this '
.
'cursor has no raw row.'
,
$key
));
}
if
(!
array_key_exists
(
$key
,
$this
->
rawRow
))
{
throw
new
Exception
(
pht
(
'Caller is trying to access raw row property "%s", but the row '
.
'does not have this property.'
,
$key
));
}
return
$this
->
rawRow
[
$key
];
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, May 3, 3:39 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
61108
Default Alt Text
PhabricatorQueryCursor.php (952 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment