File Manager
Upload
Current Directory: /home/lartcid/public_html/journal.lartc.id
[Back]
..
[Open]
Hapus
Rename
.htaccess
[Edit]
Hapus
Rename
.well-known
[Open]
Hapus
Rename
README.md
[Edit]
Hapus
Rename
api
[Open]
Hapus
Rename
cache
[Open]
Hapus
Rename
cgi-bin
[Open]
Hapus
Rename
classes
[Open]
Hapus
Rename
config.TEMPLATE.inc.php
[Edit]
Hapus
Rename
config.inc.php
[Edit]
Hapus
Rename
controllers
[Open]
Hapus
Rename
cypress.json
[Edit]
Hapus
Rename
dbscripts
[Open]
Hapus
Rename
docs
[Open]
Hapus
Rename
error_log
[Edit]
Hapus
Rename
favicon.ico
[Edit]
Hapus
Rename
index.php
[Edit]
Hapus
Rename
js
[Open]
Hapus
Rename
lib
[Open]
Hapus
Rename
locale
[Open]
Hapus
Rename
mini.php
[Edit]
Hapus
Rename
pages
[Open]
Hapus
Rename
php.ini
[Edit]
Hapus
Rename
plugins
[Open]
Hapus
Rename
public
[Open]
Hapus
Rename
registry
[Open]
Hapus
Rename
scheduledTaskLogs
[Open]
Hapus
Rename
schemas
[Open]
Hapus
Rename
styles
[Open]
Hapus
Rename
templates
[Open]
Hapus
Rename
tools
[Open]
Hapus
Rename
Edit File
<?php /** * @file classes/context/PKPSectionDAO.inc.php * * Copyright (c) 2014-2021 Simon Fraser University * Copyright (c) 2003-2021 John Willinsky * Distributed under the GNU GPL v3. For full terms see the file docs/COPYING. * * @class PKPSectionDAO * @ingroup context * @see PKPSection * * @brief Operations for retrieving and modifying Section objects. */ abstract class PKPSectionDAO extends DAO { /** * Create a new data object. * @return PKPSection */ abstract function newDataObject(); /** * Retrieve a section by ID. * @param $sectionId int * @param $journalId int optional * @param $useCache boolean optional * @return Section */ abstract function getById($sectionId, $contextId = null); /** * Generate a new PKPSection object from row. * @param $row array * @return PKPSection */ function _fromRow($row) { $section = $this->newDataObject(); $section->setReviewFormId($row['review_form_id']); $section->setEditorRestricted($row['editor_restricted']); $section->setSequence($row['seq']); return $section; } /** * Get the list of fields for which data can be localized. * @return array */ function getLocaleFieldNames() { return array_merge(parent::getLocaleFieldNames(), array('title', 'policy')); } /** * Delete a section. * @param $section Section */ function deleteObject($section) { return $this->deleteById($section->getId(), $section->getContextId()); } /** * Delete a section by ID. * @param $sectionId int * @param $journalId int optional */ abstract function deleteById($sectionId, $contextId = null); /** * Delete sections by context ID * NOTE: This does not necessarily delete dependent entries. * @param $contextId int */ function deleteByContextId($contextId) { $sections = $this->getByContextId($contextId); while ($section = $sections->next()) { $this->deleteObject($section); } } /** * Retrieve all sections for a context. * @param $contextId int context ID * @param $rangeInfo DBResultRange optional * @param $submittableOnly boolean optional. Whether to return only sections * that can be submitted to by anyone. * @return DAOResultFactory containing Sections ordered by sequence */ abstract function getByContextId($contextId, $rangeInfo = null, $submittableOnly = false); /** * Retrieve the IDs and titles of the sections for a context in an associative array. * @param $contextId int context ID * @param $submittableOnly boolean optional. Whether to return only sections * that can be submitted to by anyone. * @return array */ function getTitlesByContextId($contextId, $submittableOnly = false) { $sections = array(); $sectionsIterator = $this->getByContextId($contextId, null, $submittableOnly); while ($section = $sectionsIterator->next()) { $sections[$section->getId()] = $section->getLocalizedTitle(); } return $sections; } }
Simpan