Ejemplo n.º 1
0
 function &_getBeanWrapperForPropertyPath($propertyPath)
 {
     $pos = BeanWrapperUtils::getFirstNestedPropertySeparatorIndex($propertyPath);
     // Handle nested properties recursively.
     if ($pos != -1) {
         $nestedProperty = substr($propertyPath, 0, $pos);
         $nestedPath = substr($propertyPath, $pos + 1);
         $nestedBw =& $this->_getNestedBeanWrapper($nestedProperty);
         if (strtolower(get_class($nestedBw)) != 'beanwrapper') {
             return $nestedBw;
         }
         return $nestedBw->_getBeanWrapperForPropertyPath($nestedPath);
     } else {
         return $this;
     }
 }