![]() |
![]() | auto completion of $GLOBALS | ![]() |
![]() |
![]() | ![]() |
Veteran
![]() |
![]() |
Maby not answer for Your question ... but why are You using $GLOBALS array?
It is not needed exactly and in fact it is not clear. Take look at this codes: final class GLOBALS { public static $displaymode; public static $language; // ... other globals } GLOBALS::$displaymode = 'somemode'; GLOBALS::$language = 'en'; function Test() { echo GLOBALS::$language; } You can set and get anything You need - with fully code completion ![]() |
|||||||||||
_________________ ML
|
![]() |
![]() | ![]() |
![]() |
![]() |
I did not recall that object variables are available globally. Originally we had used an object that was instatiated, but had to always make it global inside every function. I may have to reconsider my tactics.
It would still be nice to have $GLOBALS auto complete. |
|||||||||||
|
![]() |
![]() | ![]() |
![]() |
![]() |
ML, you are right. I should not use $GLOBALS. Forgot that if I have a variable named $header and $GLOBALS['header'] then they are actually the same variable. $GLOBALS completion would be cool, but not necessary.
![]() |
|||||||||||
|
![]() |
![]() | auto completion of $GLOBALS | ![]() |
|
||
![]() |
![]() |
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
