Example #1
0
 /**
  * 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;
 }
Example #2
0
 /**
  * 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;
 }
Example #3
0
 /**
  * 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]);
 }
Example #4
0
 /**
  * @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.');
 }
Example #5
0
 /**
  * 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;
 }