You are here: Re: Universally define __call( ) ? « PHP Programming Language « IT news, forums, messages
Re: Universally define __call( ) ?

Posted by Oli Filth on 10/01/78 11:18

MrKrinkle said the following on 09/06/2005 20:38:
> I want to universally define the __call() method, so that every class
> in my application does the same thing if a non-existant function is
> called.
>
> In actionscript I could do this by adding the definition to the
> prototype for Object.
>
> Is there any way to do that in php 5? I could make every one of my
> classes inherit from like an Object class that I define, but that kind
> of sucks.
>

Hang on, you want to have a load of classes inherit a particular
behaviour, but you don't want to specify that they extend a base class
that defines this behaviour?? Why?

--
Oli

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация