Not signed in (Sign In)

Categories

Vanilla 1.1.4 is a product of Lussumo. More Information: Documentation, Community Support.

Help keep Vanilla free:
Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
  1.  # 1
    It would be nice to have a method added to the ObjectFactory class like this:function GetClassName($ClassLabel) {
    if (array_key_exists($ClassLabel, $this->ClassIndex)) {
    return $this->ClassIndex[$ClassLabel];
    } else {
    return $ClassLabel;
    }
    }

    This would allow developers to encapsulate (for example) static method calls within the model while still keeping the ObjectFactory's ability to use references (ObjectFactory::SetReference()) like this:// Example of ObjectFactory::GetClassName()
    $EventItemClass = $Context->ObjectFactory->GetClassName('EventItem');
    $EventList = call_user_func(array($EventItemClass, 'GetEventsByMonth'), $Context, $Year, $Month);
Add your comments
    Username Password
  • Format comments as