From: <var...@us...> - 2010-06-23 15:42:37
|
Revision: 7564 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7564&view=rev Author: vargenau Date: 2010-06-23 15:42:31 +0000 (Wed, 23 Jun 2010) Log Message: ----------- Remove unused function can Modified Paths: -------------- trunk/lib/stdlib.php Modified: trunk/lib/stdlib.php =================================================================== --- trunk/lib/stdlib.php 2010-06-23 15:37:35 UTC (rev 7563) +++ trunk/lib/stdlib.php 2010-06-23 15:42:31 UTC (rev 7564) @@ -1746,16 +1746,6 @@ || is_subclass_of($object, $lclass) ); } -/** Determine whether (possible) object has method. - * - * @param $object mixed Object - * @param $method string Method name - * @return bool True iff $object is an object with has method $method. - */ -function can ($object, $method) { - return is_object($object) && method_exists($object, strtolower($method)); -} - /** Determine whether a function is okay to use. * * Some providers (e.g. Lycos) disable some of PHP functions for This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |