19 use \PKP\Services\interfaces\EntityPropertyInterface;
34 $sectionIterator = $sectionDao->getByContextId($contextId);
37 while ($section = $sectionIterator->next()) {
38 if (!$activeOnly || ($activeOnly && !$section->getIsInactive())) {
40 'id' => $section->getId(),
41 'title' => $section->getLocalizedTitle(),
42 'group' => $section->getIsInactive(),
55 foreach ($props as $prop) {
58 $values[$prop] = (int) $section->getId();
61 $values[$prop] = $section->getAbbrev(
null);
64 $values[$prop] = $section->getTitle(
null);
67 $values[$prop] = (int) $section->getSequence();
72 $locales = $args[
'request']->getContext()->getSupportedFormLocales();
73 $values =
Services::get(
'schema')->addMissingMultilingualValues(SCHEMA_GALLEY, $values, $locales);
75 \HookRegistry::call(
'Section::getProperties::values', array(&$values, $section, $props, $args));
87 'id',
'abbrev',
'title',
'seq',
90 \HookRegistry::call(
'Section::getProperties::summaryProperties', array(&$props, $section, $args));
102 \HookRegistry::call(
'Section::getProperties::fullProperties', array(&$props, $section, $args));
121 $section->setJournalId($context->getId());
123 $sectionDao->insertObject($section);