Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F568278
PhabricatorMaxChartFunction.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
PhabricatorMaxChartFunction.php
View Options
<?php
final
class
PhabricatorMaxChartFunction
extends
PhabricatorPureChartFunction
{
const
FUNCTIONKEY
=
'max'
;
protected
function
newArguments
()
{
return
array
(
$this
->
newArgument
()
->
setName
(
'max'
)
->
setType
(
'number'
),
);
}
public
function
evaluateFunction
(
array
$xv
)
{
$max
=
$this
->
getArgument
(
'max'
);
$yv
=
array
();
foreach
(
$xv
as
$x
)
{
if
(
$x
>
$max
)
{
$yv
[]
=
null
;
}
else
{
$yv
[]
=
$x
;
}
}
return
$yv
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, May 13, 1:21 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
96711
Default Alt Text
PhabricatorMaxChartFunction.php (518 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment