is it possible to return the name of the calling class of a (static) method?
Example:
class User extends DataObject { }
$users = User::get(); // <- should return an array or some ArrayIterator class of User objects, e.g. DataList|User[]
$user = User::get()->byID(5); // <- should return a single User object
$user = User::currentUser(); // <- should return a single User object
Hi,
is it possible to return the name of the calling class of a (static) method?
Example:
Thank you!