/** * Returns value if every character is alphabetic, FALSE * otherwise. * * @param mixed $key * @return mixed */ public function testAlpha($key) { if (!$this->keyExists($key)) { return false; } if (Zend_Filter::isAlpha($this->_source[$key])) { return $this->_source[$key]; } return FALSE; }
/** * Returns value if every character is alphabetic, FALSE * otherwise. * * @param mixed $key * @return mixed */ public function testAlpha($key) { if (Zend_Filter::isAlpha($this->_source[$key])) { return $this->_source[$key]; } return FALSE; }
/** * Returns value if every character is alphabetic, FALSE * otherwise. * * @param mixed $key * @return mixed */ public function isAlpha($key) { return Zend_Filter::isAlpha($this->_source[$key]); }
/** * @deprecated since 0.8.0 * @return void */ public function testIsAlpha() { $this->assertTrue(Zend_Filter::isAlpha('abcXYZ'), '"abcXYZ" is alphabetic.'); $this->assertFalse(Zend_Filter::isAlpha('abc xyz'), '"abc xyz" is not alphabetic.'); }
/** * Returns value if every character is alphabetic, FALSE * otherwise. * * @param mixed $key * @return mixed */ public function testAlpha($key = null) { if (!($value = $this->keyExists($key))) { return false; } if (Zend_Filter::isAlpha($value)) { return $value; } return FALSE; }