* @property-read string $domainPath
* @property-read string $cookieDomain
* @property-read string $cookiePath
- * @property-read integer|null $landingPageID
*/
class Application extends DatabaseObject {
/**
// reset application cache
ApplicationCacheBuilder::getInstance()->reset();
}
-
- /**
- * Sets landing pages for applications.
- */
- public function setLandingPage() {
- /** @var ApplicationEditor $applicationEditor */
- foreach ($this->objects as $applicationEditor) {
- $applicationEditor->update([
- 'landingPageID' => $this->parameters['landingPages'][$applicationEditor->packageID]
- ]);
- }
- }
}
ALTER TABLE wcf1_ad ADD FOREIGN KEY (objectTypeID) REFERENCES wcf1_object_type (objectTypeID) ON DELETE CASCADE;
ALTER TABLE wcf1_application ADD FOREIGN KEY (packageID) REFERENCES wcf1_package (packageID) ON DELETE CASCADE;
-ALTER TABLE wcf1_application ADD FOREIGN KEY (landingPageID) REFERENCES wcf1_page (pageID) ON DELETE SET NULL;
ALTER TABLE wcf1_attachment ADD FOREIGN KEY (objectTypeID) REFERENCES wcf1_object_type (objectTypeID) ON DELETE CASCADE;
ALTER TABLE wcf1_attachment ADD FOREIGN KEY (userID) REFERENCES wcf1_user (userID) ON DELETE SET NULL;