CodeLobster IDE

Free cross-platform PHP IDE (HTML, PHP, CSS, JavaScript, Python code editor) with support Drupal, Joomla, Twig, JQuery, BackboneJS, LaravelJS, Node.js, CodeIgniter, CakePHP, Laravel, Magento, MeteorJS, Phalcon, Symfony, VueJS, WordPress, Yii
It is currently Tue Apr 16, 2024 6:47 am

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: __construct class not working as it should
PostPosted: Mon Sep 20, 2010 12:17 pm 
Offline

Joined: Wed Apr 07, 2010 12:27 pm
Posts: 21
Hi codelobster team.

Tried to work with __construct inside a class.

First thing noticed is that __construct function is not auto completing ... But that's not really a problem. The problem is when you use the class. The class is does not suggest the variables. Example below.

<?php

class FirstClass {

private $server;
private $user;
private $pass;

public function __construct($iserver, $iuser, $ipass) /* __construct is not in the autocompletion list */{

$this->server = $iserver;
$this->user = $iuser;
$this->pass = $ipass;

mysql_connect($iserver, $iuser, $ipass) or die(mysql_error());

}

}

$firstclass = new FirstClass(/* inside here, CodeLobster is not suggesting the variables */);

?>

I hope you understand me. Sorry for my bad english.
Cheers.


Top
 Profile  
 
 Post subject: Re: __construct class not working as it should
PostPosted: Tue Sep 21, 2010 5:31 am 
Offline
Site Admin

Joined: Wed Sep 12, 2007 2:18 pm
Posts: 3931
Hi.

Great thanks.
This problem will be resolved by nearest release of version 3.6.

Regards,
Codelobster Team.


Top
 Profile  
 
 Post subject: Re: __construct class not working as it should
PostPosted: Tue Sep 21, 2010 8:37 am 
Offline

Joined: Wed Apr 07, 2010 12:27 pm
Posts: 21
Many thanks.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 33 guests


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 post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2016 phpBB Group