Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F101482803
PhabricatorQueryCursor.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Mon, Feb 10, 21:38
Size
952 B
Mime Type
text/x-php
Expires
Wed, Feb 12, 21:38 (2 d)
Engine
blob
Format
Raw Data
Handle
24161208
Attached To
rPH Phabricator
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
];
}
}
Event Timeline
Log In to Comment