|
Posted by Gary L. Burnore on 06/19/06 04:37
On 18 Jun 2006 21:15:31 -0700, "Chung Leong"
<chernyshevsky@hotmail.com> wrote:
>Ryan Lange wrote:
>> Yikes! Premature posting...
>>
>> Ryan Lange wrote:
>> > And, if that's not the case, then @Chung Leong: The IDE keeps track
>> > of which class you assign to the variable. Zend Studio is even capable
>> > of doing this for assignments from a function call:
>>
>> The function definition must have a docblock that indicates the
>> return value, though:
>>
>> /**
>> * @return MyClass
>> */
>> function getMyClass()
>> {
>> return new MyClass();
>> }
>>
>> $obj = getMyClass();
>> $obj->[ZDE pops up a list of public methods from MyClass]
>>
>> Very useful. :-)
>
>Aha, now it makes sense.
Yeah, it's still basically a guess but it's better than popping up
with nothing. :)
--
gburnore at DataBasix dot Com
---------------------------------------------------------------------------
How you look depends on where you go.
---------------------------------------------------------------------------
Gary L. Burnore | ÝÛ³ºÝ³Þ³ºÝ³³Ýۺݳ޳ºÝ³Ý³Þ³ºÝ³ÝÝÛ³
| ÝÛ³ºÝ³Þ³ºÝ³³Ýۺݳ޳ºÝ³Ý³Þ³ºÝ³ÝÝÛ³
Official .sig, Accept no substitutes. | ÝÛ³ºÝ³Þ³ºÝ³³Ýۺݳ޳ºÝ³Ý³Þ³ºÝ³ÝÝÛ³
| ÝÛ 0 1 7 2 3 / Ý³Þ 3 7 4 9 3 0 Û³
Black Helicopter Repair Services, Ltd.| Official Proof of Purchase
===========================================================================
Navigation:
[Reply to this message]
|