Added the zend framework 2 library, the path is specified in line no.26 in zend_modul...
[openemr.git] / interface / modules / zend_modules / library / Zend / Stdlib / Hydrator / Filter / IsFilter.php
blob233ae139f6f0a3132c2028e7ef590923943dcac8
1 <?php
2 /**
3 * Zend Framework (http://framework.zend.com/)
5 * @link http://github.com/zendframework/zf2 for the canonical source repository
6 * @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
7 * @license http://framework.zend.com/license/new-bsd New BSD License
8 */
9 namespace Zend\Stdlib\Hydrator\Filter;
11 class IsFilter implements FilterInterface
13 public function filter($property)
15 $pos = strpos($property, '::');
16 if ($pos !== false) {
17 $pos += 2;
18 } else {
19 $pos = 0;
22 if (substr($property, $pos, 2) === 'is') {
23 return true;
25 return false;