Added AbstractApplication::isActiveApplication()
authorAlexander Ebert <ebert@woltlab.com>
Wed, 26 Dec 2012 03:28:16 +0000 (04:28 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 26 Dec 2012 03:28:16 +0000 (04:28 +0100)
commit0eaac6b92f912f8c0f15369eebfb5bca955b4980
treee0483ed1efd0857caafd29e8cdcedfe9026751d4
parentc8ec6769b620b90b72a0ff86d078b741d4b0ae07
Added AbstractApplication::isActiveApplication()

If you're developing an own application, simply add a protected variable "$abbreviation" and assign the application's abbreviation (e.g. "wbb"). Furthermore the package id is automatically set and can be accessed through $this->packageID.

In case you're setting the active page menu item and adding a "top" breadcrumb for your application, please do so if $this->isActiveApplication() returns true. If you fail to check this, multiple applications will stack their breadcrumbs and the active page menu item would no longer be deterministic.
wcfsetup/install/files/lib/system/application/AbstractApplication.class.php
wcfsetup/install/files/lib/system/application/IApplication.class.php