00001 <?php
00002
00016 define('GENRE_CATEGORY_DOCUMENT', 1);
00017 define('GENRE_CATEGORY_ARTWORK', 2);
00018
00019 define('GENRE_SORTABLE_DESIGNATION', '##');
00020
00021 class Genre extends DataObject {
00025 function Genre() {
00026 parent::DataObject();
00027 }
00028
00033 function getPressId() {
00034 return $this->getData('pressId');
00035 }
00036
00041 function setPressId($pressId) {
00042 return $this->setData('pressId', $pressId);
00043 }
00044
00050 function setName($name, $locale) {
00051 $this->setData('name', $name, $locale);
00052 }
00053
00059 function getName($locale) {
00060 return $this->getData('name', $locale);
00061 }
00062
00067 function getLocalizedName() {
00068 return $this->getLocalizedData('name');
00069 }
00070
00076 function setDesignation($abbrev, $locale) {
00077 $this->setData('designation', $abbrev, $locale);
00078 }
00079
00085 function getDesignation($locale) {
00086 return $this->getData('designation', $locale);
00087 }
00088
00093 function getLocalizedDesignation() {
00094 return $this->getLocalizedData('designation');
00095 }
00096
00101 function getSortable() {
00102 return $this->getData('sortable');
00103 }
00104
00109 function setSortable($sortable) {
00110 return $this->setData('sortable', $sortable);
00111 }
00112
00117 function getCategory() {
00118 return $this->getData('category');
00119 }
00120
00125 function setCategory($category) {
00126 return $this->setData('category', $category);
00127 }
00128 }
00129
00130 ?>