Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F648011
PhabricatorMinChartFunction.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
518 B
Referenced Files
None
Subscribers
None
PhabricatorMinChartFunction.php
View Options
<?php
final
class
PhabricatorMinChartFunction
extends
PhabricatorPureChartFunction
{
const
FUNCTIONKEY
=
'min'
;
protected
function
newArguments
()
{
return
array
(
$this
->
newArgument
()
->
setName
(
'min'
)
->
setType
(
'number'
),
);
}
public
function
evaluateFunction
(
array
$xv
)
{
$min
=
$this
->
getArgument
(
'min'
);
$yv
=
array
();
foreach
(
$xv
as
$x
)
{
if
(
$x
<
$min
)
{
$yv
[]
=
null
;
}
else
{
$yv
[]
=
$x
;
}
}
return
$yv
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Wed, May 14, 7:05 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
113211
Default Alt Text
PhabricatorMinChartFunction.php (518 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment