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/Category.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 Category * @ingroup context * @see CategoryDAO * * @brief Describes basic Category properties. */ class Category extends DataObject { /** * Get ID of context. * @return int */ function getContextId() { return $this->getData('contextId'); } /** * Set ID of context. * @param $contextId int */ function setContextId($contextId) { return $this->setData('contextId', $contextId); } /** * Get ID of parent category. * @return int */ function getParentId() { return $this->getData('parentId'); } /** * Set ID of parent category. * @param $parentId int */ function setParentId($parentId) { return $this->setData('parentId', $parentId); } /** * Get sequence of category. * @return int */ function getSequence() { return $this->getData('sequence'); } /** * Set sequence of category. * @param $sequence int */ function setSequence($sequence) { return $this->setData('sequence', $sequence); } /** * Get category path. * @return string */ function getPath() { return $this->getData('path'); } /** * Set category path. * @param $path string */ function setPath($path) { return $this->setData('path', $path); } /** * Get localized title of the category. * @return string */ function getLocalizedTitle() { return $this->getLocalizedData('title'); } /** * Get title of category. * @param $locale string * @return string */ function getTitle($locale) { return $this->getData('title', $locale); } /** * Set title of category. * @param $title string * @param $locale string */ function setTitle($title, $locale) { return $this->setData('title', $title, $locale); } /** * Get localized description of the category. * @return string */ function getLocalizedDescription() { return $this->getLocalizedData('description'); } /** * Get description of category. * @param $locale string * @return string */ function getDescription($locale) { return $this->getData('description', $locale); } /** * Set description of category. * @param $description string * @param $locale string */ function setDescription($description, $locale) { return $this->setData('description', $description, $locale); } /** * Get the image. * @return array */ function getImage() { return $this->getData('image'); } /** * Set the image. * @param $image array */ function setImage($image) { return $this->setData('image', $image); } /** * Get the option how the books in this category should be sorted, * in the form: concat(sortBy, sortDir). * @return string */ function getSortOption() { return $this->getData('sortOption'); } /** * Set the option how the books in this categpry should be sorted, * in the form: concat(sortBy, sortDir). * @param $sortOption string */ function setSortOption($sortOption) { return $this->setData('sortOption', $sortOption); } }
Simpan