Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F546669
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
()
{
$minv
=
array
();
$maxv
=
array
();
foreach
(
$this
->
getFunctionArguments
()
as
$function
)
{
$domain
=
$function
->
getDomain
();
if
(
$domain
!==
null
)
{
list
(
$min
,
$max
)
=
$domain
;
if
(
$min
!==
null
)
{
$minv
[]
=
$min
;
}
if
(
$max
!==
null
)
{
$maxv
[]
=
$max
;
}
}
}
if
(!
$minv
&&
!
$maxv
)
{
return
null
;
}
$min
=
null
;
$max
=
null
;
if
(
$minv
)
{
$min
=
min
(
$minv
);
}
if
(
$maxv
)
{
$max
=
max
(
$maxv
);
}
return
array
(
$min
,
$max
);
}
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
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 12, 1:19 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
122697
Default Alt Text
PhabricatorHigherOrderChartFunction.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment