Changeset 10977
- Timestamp:
- 08/20/08 08:12:05 (11 months ago)
- Files:
-
- branches/1.2/lib/helper/ObjectHelper.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.2/lib/helper/ObjectHelper.php
r9340 r10977 73 73 { 74 74 // text method exists? 75 if ($text_method && ! is_callable(array($option, $text_method)))75 if ($text_method && !method_exists(array($option, $text_method))) 76 76 { 77 77 throw new sfViewException(sprintf('Method "%s" doesn\'t exist for object of class "%s".', $text_method, _get_class_decorated($option))); … … 79 79 80 80 // value method exists? 81 if (! is_callable(array($option, $value_method)))81 if (!method_exists(array($option, $value_method))) 82 82 { 83 83 throw new sfViewException(sprintf('Method "%s" doesn\'t exist for object of class "%s".', $value_method, _get_class_decorated($option))); … … 168 168 foreach (array($text_method, '__toString', 'toString', $key_method) as $method) 169 169 { 170 if ( is_callable(array($tmp_object, $method)))170 if (method_exists(array($tmp_object, $method))) 171 171 { 172 172 $methodToCall = $method; … … 296 296 $method = array($method, $param); 297 297 } 298 298 299 299 // method exists? 300 if (! is_callable(array($object, $method[0])))300 if (!method_exists(array($object, $method[0]))) 301 301 { 302 302 throw new sfViewException(sprintf('Method "%s" doesn\'t exist for object of class "%s".', $method[0], _get_class_decorated($object)));

