public function onProjectCreated(ProjectCreatedEvent $event) { $settings = $event->getSettings(); $settings->create(new Setting(MilestoneSettings::AREA_CAN_UPDATE_OWN_PROGRESS, 'Can area update its own progress?', 'milestone', 0, Setting::TYPE_BOOLEAN)); $settings->create(new Setting(MilestoneSettings::GROUP_CAN_UPDATE_OWN_PROGRESS, 'Can group update its own progress?', 'milestone', 0, Setting::TYPE_BOOLEAN)); $settings->create(new Setting(MilestoneSettings::GROUP_CAN_UPDATE_AREA_PROGRESS, 'Can group update progress of areas?', 'milestone', 0, Setting::TYPE_BOOLEAN)); }
public function onProjectCreated(ProjectCreatedEvent $event) { $settings = $event->getSettings(); $settings->create(new Setting(EdkSettings::PUBLISHED_AREA_STATUS, 'Published area status ID', 'edk', 0, Setting::TYPE_INTEGER)); $settings->create(new Setting(EdkSettings::GUIDE_MIRROR_URL, 'Guide mirror URL', 'edk', 0, Setting::TYPE_STRING)); $settings->create(new Setting(EdkSettings::MAP_MIRROR_URL, 'Map mirror URL', 'edk', 0, Setting::TYPE_STRING)); $settings->create(new Setting(EdkSettings::GPS_MIRROR_URL, 'GPS mirror URL', 'edk', 0, Setting::TYPE_STRING)); }
public function onProjectCreated(ProjectCreatedEvent $event) { $settings = $event->getSettings(); $settings->create(new Setting(CoreSettings::AREA_NAME_HINT, 'Hint for the area name displayed in the area registration form', 'core', 'Sample area hint', Setting::TYPE_STRING)); $settings->create(new Setting(CoreSettings::AREA_REQUEST_INFO_TEXT, 'Text displayed during area registration', 'core', 'Sample text', Setting::TYPE_STRING)); $settings->create(new Setting(CoreSettings::AREA_REQUEST_FORM, 'Area request form', 'core', 'cantiga.core.form.default_area_request', Setting::TYPE_EXTENSION_POINT, CoreExtensions::AREA_REQUEST_FORM)); $settings->create(new Setting(CoreSettings::AREA_FORM, 'Area form', 'core', 'cantiga.core.form.default_area', Setting::TYPE_EXTENSION_POINT, CoreExtensions::AREA_FORM)); $settings->create(new Setting(CoreSettings::DASHBOARD_SHOW_CHAT, 'Show recent chat activity on dashboard', 'core', true, Setting::TYPE_BOOLEAN)); $settings->create(new Setting(CoreSettings::DASHOBARD_SHOW_REQUESTS, 'Show recent area requests on dashboard', 'core', true, Setting::TYPE_BOOLEAN)); $this->conn->insert(CoreTables::AREA_STATUS_TBL, ['name' => 'New', 'label' => 'primary', 'isDefault' => 1, 'projectId' => $event->getProject()->getId()]); }
public function onProjectCreated(ProjectCreatedEvent $event) { $settings = $event->getSettings(); $settings->create(new Setting(CourseSettings::MIN_QUESTION_NUM, 'Minimum number of questions in test', 'course', 10, Setting::TYPE_INTEGER)); }