I have ignited datatables Library in my CodeIgniter library folder.
Some Code from Library
class Datatables
{
/**
* Global container variables for
As mentioned by LazyOne in the question comments:
You have to declare them via
@property
in PHPDoc comment that belongs to that class.
/**
* @property string $bar
*/
class Foo {
public function __get($name) {
if ($name == 'bar') {
return 'bar';
}
return NULL;
}
}
Snippet from Dmitry Dulepov's article "Quick tip: magic methods and PhpStorm".