Login | Register
My pages Projects Community openCollabNet

Discussions > tsWebEditor > PHP5 __autoload and auto-compleet

Project highlights: home | downloads | news | features | screenhots | support

tswebeditor
Discussion topic

Hide all messages in topic

All messages in topic

Re: PHP5 __autoload and auto-compleet

Author blackdex
Full name BlackDex
Date 2006-01-18 09:00:55 PST
Message >>Hello again,
>>
>>I Know i have asked this before, but this is kind of
>>another problem.
>>
>>How do i let auto-compleet work for classes?
>>
>>Like, in PHP5 there is an autoload function, this
>function
>>
>>will load the classes when needed.
>>
>>I Can call an class like this.
>>ClassName::F​unctioName('blah');
>>ClassName::CONSTANT
>>
>>
>>Is it possible to have ClassName:: to auto-compleet?
>>Like ClassName-> ??
>>
>>Thx.
>
>Hi !
>
>Classes which loaded with the __autoload function are not
>included in the code completion because tsWebEditor can
>not
>get the filename. This only works, if you execute the
>script. But i work on a way to include files with a
>comment
>like /*%i /include/*.class.php */ or something like that.
>
>thanks,
>thaler.

Ah...
That looks nice :).
Just a thought, could it be recursive.
So it will check the sub-directory's also :).

Thx.
BlackDex

Re: PHP5 __autoload and auto-compleet

Author thaj
Full name Thaler
Date 2006-01-18 08:33:46 PST
Message >Hello again,
>
>I Know i have asked this before, but this is kind of
>another problem.
>
>How do i let auto-compleet work for classes?
>
>Like, in PHP5 there is an autoload function, this function
>
>will load the classes when needed.
>
>I Can call an class like this.
>ClassName::Funct​ioName('blah');
>ClassName::CONSTANT
>
>
>Is it possible to have ClassName:: to auto-compleet?
>Like ClassName-> ??
>
>Thx.

Hi !

Classes which loaded with the __autoload function are not
included in the code completion because tsWebEditor can not
get the filename. This only works, if you execute the
script. But i work on a way to include files with a comment
like /*%i /include/*.class.php */ or something like that.

thanks,
thaler.

PHP5 __autoload and auto-compleet

Author blackdex
Full name BlackDex
Date 2006-01-17 23:50:42 PST
Message Hello again,

I Know i have asked this before, but this is kind of
another problem.

How do i let auto-compleet work for classes?

Like, in PHP5 there is an autoload function, this function
will load the classes when needed.

I Can call an class like this.
ClassName::FunctioName('blah');
ClassName::CONSTANT


Is it possible to have ClassName:: to auto-compleet?
Like ClassName-> ??

Thx.
Messages per page: