NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Code completiotion for array members


Joined: 23 Jun 2008
Posts: 32
Reply with quote
I would love to have some sort of memory for array members set before for code completion.

Sample:
Code:
<?php
$_SESSION['Cart'] = new MyCart();
// And now PhpEd completes my code for $_SESSION['Cart']
$_SESSION['Cart']->InsertItem(12345);
?>


Now I would like PhpEd to remember that $_SESSION has a member named 'Cart' and know it's type. I would be happy to do this, too:

Code:
<?php
/**
* @var MyCart
*/
$_SESSION['Cart'] = new MyCart();
// And now PhpEd completes my code for $_SESSION['Cart']
$_SESSION['Cart']->InsertItem(12345);
?>
View user's profileFind all posts by AirspraySend private message
Veteran

Joined: 22 May 2008
Posts: 141
Reply with quote
+ from me
View user's profileFind all posts by simshaunSend private message
Code completiotion for array members
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic