Re: [PHP] get classname without namespace

2010-05-30 Thread Tanel Tammik
"Adam Richardson" wrote in message news:aanlktin0wqqlgwgm2lowcdv4i0c6bzsbfxhjwxv_j...@mail.gmail.com... > On Sat, May 29, 2010 at 4:20 PM, Tanel Tammik wrote: > >> Hi, >> >> is there a way to get the called classname without the namespace? >> >> > //PHP 5.3.x >> namespace some\where; >> >> abst

Re: [PHP] get classname without namespace

2010-05-30 Thread Adam Richardson
On Sat, May 29, 2010 at 4:20 PM, Tanel Tammik wrote: > Hi, > > is there a way to get the called classname without the namespace? > > //PHP 5.3.x > namespace some\where; > > abstract class ParentClass { > public static function name() { >return strtolower(get_called_class()); > } > > publi

Re: [PHP] get classname without namespace

2010-05-29 Thread Nilesh Govindarajan
On Sun, May 30, 2010 at 1:50 AM, Tanel Tammik wrote: > Hi, > > is there a way to get the called classname without the namespace? > > //PHP 5.3.x > namespace some\where; > > abstract class ParentClass { >  public static function name() { >    return strtolower(get_called_class()); >  } > >  public