本文整理汇总了PHP中Zend_Filter::isGreaterThan方法的典型用法代码示例。如果您正苦于以下问题:PHP Zend_Filter::isGreaterThan方法的具体用法?PHP Zend_Filter::isGreaterThan怎么用?PHP Zend_Filter::isGreaterThan使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Zend_Filter
的用法示例。
在下文中一共展示了Zend_Filter::isGreaterThan方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: testGreaterThan
/**
* Returns value if it is greater than $min, FALSE otherwise.
*
* @param mixed $key
* @param mixed $min
* @return mixed
*/
public function testGreaterThan($key, $min = NULL)
{
if (!$this->keyExists($key)) {
return false;
}
if (Zend_Filter::isGreaterThan($this->_source[$key], $min)) {
return $this->_source[$key];
}
return FALSE;
}
示例2: isGreaterThan
/**
* Returns value if it is greater than $min, FALSE otherwise.
*
* @param mixed $key
* @param mixed $min
* @return mixed
*/
public function isGreaterThan($key, $min = NULL)
{
return Zend_Filter::isGreaterThan($this->_source[$key], $min);
}
示例3: testIsGreaterThan
/**
* @deprecated since 0.8.0
* @return void
*/
public function testIsGreaterThan()
{
$this->assertTrue(Zend_Filter::isGreaterThan(100, 50), '100 is greater than 50');
$this->assertFalse(Zend_Filter::isGreaterThan(50, 100), '50 is not greater than 100');
}
示例4: testGreaterThan
/**
* Returns value if it is greater than $min, FALSE otherwise.
*
* @param mixed $key
* @param mixed $min
* @return mixed
*/
public function testGreaterThan($key = null, $min = NULL)
{
if (!($value = $this->keyExists($key))) {
return false;
}
if (Zend_Filter::isGreaterThan($value, $min)) {
return $value;
}
return FALSE;
}