note 87345 rejected from language.types.type-juggling by danbrown
| From: | danbrown@php.net | Date: | Mon, 01 Dec 2008 18:53:21 +0000 |
| Subject: | note 87345 rejected from language.types.type-juggling by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-147490@lists.php.net to get a copy of this message | ||
Note Submitter: trueleader at gmx dot de
----
@wbcarts at juno dot com
This is not the problem. Maybe this helps:
<?php
class x
{
public function xMethod()
{
/* some code */
}
}
$x = new x();
$x->xMethod(); // IDE know that method "xMethod" exists
class y
{
public $obj = null;
public function __construct($obj)
{
$this->obj = $obj;
}
public function yMethod()
{
return $this->obj->xMethod(); // IDE does not know anything of the values of obj
}
}
$y = new y($x);
$y->obj->xMethod(); // Again the IDE cant do anything to support the programmer
?>
As example X may be an database class and Y should collect data from a table, it would be nice the
IDE know that X provides the data collection from DB.
The solution of "alexgr at gmail dot com" is not perfect but the only way to tell the IDE
what objects we have yet