19 use \PKP\Services\interfaces\EntityPropertyInterface;
33 $sectionIterator = $sectionDao->getByContextId($contextId);
36 while ($section = $sectionIterator->next()) {
37 if (!$activeOnly || ($activeOnly && !$section->getIsInactive())) {
39 'id' => $section->getId(),
40 'title' => $section->getLocalizedTitle(),
41 'group' => $section->getIsInactive(),
54 foreach ($props as $prop) {
57 $values[$prop] = (int) $section->getId();
60 $values[$prop] = $section->getAbbrev(
null);
63 $values[$prop] = $section->getTitle(
null);
66 $values[$prop] = (int) $section->getSequence();
71 $locales = $args[
'request']->getContext()->getSupportedFormLocales();
72 $values =
Services::get(
'schema')->addMissingMultilingualValues(SCHEMA_GALLEY, $values, $locales);
74 \HookRegistry::call(
'Section::getProperties::values', array(&$values, $section, $props, $args));
86 'id',
'abbrev',
'title',
'seq',
89 \HookRegistry::call(
'Section::getProperties::summaryProperties', array(&$props, $section, $args));
101 \HookRegistry::call(
'Section::getProperties::fullProperties', array(&$props, $section, $args));
120 $section->setJournalId($context->getId());
122 $sectionDao->insertObject($section);