note 87345 added to language.types.type-juggling
| From: | trueleader at gmx dot de | Date: | Mon, 01 Dec 2008 14:12:39 +0000 |
| Subject: | note 87345 added to language.types.type-juggling | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-147481@lists.php.net to get a copy of this message | ||
@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
----
Server IP: 217.13.201.10
Probable Submitter: 217.86.161.106
----
Manual Page -- http://www.php.net/manual/en/language.types.type-juggling.php
Edit -- https://master.php.net/note/edit/87345
Del: integrated -- https://master.php.net/note/delete/87345/integrated
Del: useless -- https://master.php.net/note/delete/87345/useless
Del: bad code -- https://master.php.net/note/delete/87345/bad+code
Del: spam -- https://master.php.net/note/delete/87345/spam
Del: non-english -- https://master.php.net/note/delete/87345/non-english
Del: in docs -- https://master.php.net/note/delete/87345/in+docs
Del: other reasons-- https://master.php.net/note/delete/87345
Reject -- https://master.php.net/note/reject/87345
Search -- https://master.php.net/manage/user-notes.php