"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
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
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
Hi,
is there a way to get the called classname without the namespace?
the result i need: childclass
the result i get: some\where\childclass
also is it possible to get the name() into the static variable if only
static method is called?
Br
Tanel
--
PHP General Mailing List (http://www.ph
4 matches
Mail list logo