Ejemplo n.º 1
0
 function hasCustomEditorForElement($elementType, $propertyPath)
 {
     if ($this->customEditors == null) {
         return false;
     }
     foreach ($this->customEditors as $key => $entry) {
         if (is_string($key)) {
             $regPath = $key;
             if (BeanWrapperUtils::matchesProperty($regPath, $propertyPath)) {
                 if (!is_null($entry) && $entry->getPropertyEditor() != null) {
                     return true;
                 }
             }
         }
     }
     // No property-specific editor -> check type-specific editor.
     return isset($this->customEditors[$elementType]);
 }