Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F568321
PhabricatorHigherOrderChartFunction.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
PhabricatorHigherOrderChartFunction.php
View Options
<?php
abstract
class
PhabricatorHigherOrderChartFunction
extends
PhabricatorChartFunction
{
public
function
getDomain
()
{
$domains
=
array
();
foreach
(
$this
->
getFunctionArguments
()
as
$function
)
{
$domains
[]
=
$function
->
getDomain
();
}
return
PhabricatorChartInterval
::
newFromIntervalList
(
$domains
);
}
public
function
newInputValues
(
PhabricatorChartDataQuery
$query
)
{
$map
=
array
();
foreach
(
$this
->
getFunctionArguments
()
as
$function
)
{
$xv
=
$function
->
newInputValues
(
$query
);
if
(
$xv
!==
null
)
{
foreach
(
$xv
as
$x
)
{
$map
[
$x
]
=
true
;
}
}
}
if
(!
$map
)
{
return
null
;
}
ksort
(
$map
);
return
array_keys
(
$map
);
}
public
function
getDataRefs
(
array
$xv
)
{
$refs
=
array
();
foreach
(
$this
->
getFunctionArguments
()
as
$function
)
{
$function_refs
=
$function
->
getDataRefs
(
$xv
);
$function_refs
=
array_select_keys
(
$function_refs
,
$xv
);
if
(!
$function_refs
)
{
continue
;
}
foreach
(
$function_refs
as
$x
=>
$ref_list
)
{
if
(!
isset
(
$refs
[
$x
]))
{
$refs
[
$x
]
=
array
();
}
foreach
(
$ref_list
as
$ref
)
{
$refs
[
$x
][]
=
$ref
;
}
}
}
return
$refs
;
}
public
function
loadRefs
(
array
$refs
)
{
$results
=
array
();
foreach
(
$this
->
getFunctionArguments
()
as
$function
)
{
$results
+=
$function
->
loadRefs
(
$refs
);
}
return
$results
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, May 13, 1:22 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
124476
Default Alt Text
PhabricatorHigherOrderChartFunction.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment