Subversion-Projekte lars-tiefland.ci

Revision

Revision 68 | Revision 2049 | Zur aktuellen Revision | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 68 Revision 1257
Zeile 286... Zeile 286...
286
			if ( ! class_exists($class, FALSE))
286
			if ( ! class_exists($class, FALSE))
287
			{
287
			{
288
				$this->_error_string = sprintf($this->lang->line('migration_class_doesnt_exist'), $class);
288
				$this->_error_string = sprintf($this->lang->line('migration_class_doesnt_exist'), $class);
289
				return FALSE;
289
				return FALSE;
290
			}
290
			}
291
			// method_exists() returns true for non-public methods,
-
 
292
			// while is_callable() can't be used without instantiating.
-
 
293
			// Only get_class_methods() satisfies both conditions.
-
 
294
			elseif ( ! in_array($method, array_map('strtolower', get_class_methods($class))))
291
			elseif ( ! is_callable(array($class, $method)))
295
			{
292
			{
296
				$this->_error_string = sprintf($this->lang->line('migration_missing_'.$method.'_method'), $class);
293
				$this->_error_string = sprintf($this->lang->line('migration_missing_'.$method.'_method'), $class);
297
				return FALSE;
294
				return FALSE;
298
			}
295
			}