Hi, is there a reason that when a child class is instantiated the parent
class constructor does not get called?
The obvious workaournd for this is to simply call
$this->parentConstructor(); in the child class constructor, however,
this seems strange..
Am i way off base here...?
Thanks
Jason
--
rited with parent class construction.
Jason
Stefan Walk <[EMAIL PROTECTED]> wrote:
>
> On Sat, Jun 26, 2004 at 08:03:12PM -0700, Jason Davidson wrote:
> > Hi, is there a reason that when a child class is instantiated the parent
> > class constructor does not get
I made a few typos in my last post.. i should proof read a little.
- parents defualt constructor ( one with arguments). should be 'without'
arguments
- that a child class can be inherited with parent class construction.
should be 'without' parent class /..
sorry..
jason
--
PHP Internals -
as done this way, in such a way, that a child class can be
> > inherited with parent class construction.
>
> > Jason
>
> > Stefan Walk <[EMAIL PROTECTED]> wrote:
> >>
> >> On Sat, Jun 26, 2004 at 08:03:12PM -0700, Jason Davidson wrote:
>
Ive seen the Control Flow constuct With ...End With used in VB (yup,
VB.. :)) although im not a fan of VB, i liked the feature, is there any
consideration to this kind of construct for php.
here the only example if it i could find online for anyone that hasnt
seen it before.
http://msdn.microsof
i agree that it doesnt look very nice that way, with ->property or
->method() , that doesnt negate its usefullness in my mind however.
if it was every imlemented, i would suspect that properties and methods
wouldnt be syntaxed the same way, which, for that reason alone, makes it
unlikely it
Here is javascripts implementation of the with construct.
http://devedge.netscape.com/library/manuals/2000/javascript/1.3/reference/stmt.html#1004910
im not as fond of that kind of implementation, but the idea is the
same. I prefer to have some kind of syntax that indicates you are
calling a met
Derek Ford wrote:
This is highly unusual I recently started gathering people who
could implement and opinions of those who wanted or didn't want a
'with' construct.
http://www.phpfreaks.com/forums/topic11451.php
I toyed with the idea, and then when I went into core to implement it,
I beca
If someone could help me find the discusions on the topic, i would
greatly appreciate it. I searched and have not found anything yet. Or
if someone could explain why the idea was rejected.
Thanks
jason
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.p
variable namespace)
b) the same (or similar) result, could easily be done using aliases,
eg.
$a = &$this->xxx->
$a->doThis();
rather than
with ($this->xxx->yyy) {
doThis();
}
Regards
Alan
jason davidson wrote:
If someone could help me find the discusions on the topic
Timm Friebe wrote:
On Thu, 2003-12-11 at 00:29, Alan Knowles wrote:
This has been discussed before on the mailing list, (either this or ZE2)
and rejected. - have a look through the archives
http://zend.com/phorum/read.php?num=6&id=242&loc=0&thread=242
- Timm
THanks for the thread, i
Derick Rethans wrote:
On Mon, 29 Dec 2003, Banyai Zsolt wrote:
The funcionality is the same. But i think it could have place in the
date() function... or no? :)
If it's the same why add a new modifier?
Derick
I agree date should have it, week of year is a common format for a date
fu
Andrey Hristov wrote:
Hi,
I didn't write this function to be faster. You asked about
array_intersect()
and I decided to bechmark (you didn't ask for it though). What I had
in mind
when I decided to write it was to escape this :
if (in_array("some_element", $haystack) && in_array("other_element",
Andrey Hristov wrote:
Hi,
jason davidson wrote:
I like the idea of passing an array of needles, I wonder if you could
just add the ability to pass a needles array to in_array, rather than
create a new function.
Anyways, it adds flexability, I would use it.
Jason
Unfortunately, in_array
14 matches
Mail list logo