[289] | 1 | <?php |
---|
| 2 | |
---|
| 3 | /** |
---|
| 4 | * Subclass for representing a row from the 'tblblogcheckinfo' table. |
---|
| 5 | * |
---|
| 6 | * |
---|
| 7 | * |
---|
| 8 | * @package lib.model |
---|
| 9 | */ |
---|
| 10 | class Tblblogcheckinfo extends BaseTblblogcheckinfo |
---|
| 11 | { |
---|
| 12 | /** |
---|
| 13 | * Initializes internal state of Tblblogcheckinfo object. |
---|
| 14 | * @see parent::__construct() |
---|
| 15 | */ |
---|
| 16 | public function __construct() |
---|
| 17 | { |
---|
| 18 | // Make sure that parent constructor is always invoked, since that |
---|
| 19 | // is where any default values for this object are set. |
---|
| 20 | parent::__construct(); |
---|
| 21 | } |
---|
| 22 | |
---|
| 23 | public function getCiBadgeTitle() { |
---|
| 24 | $badgeid = explode(',', $this->getCiBadge()); |
---|
| 25 | if (!isset($badgeid[0])) $badgeid[0] = 0; |
---|
| 26 | if (!isset($badgeid[1])) $badgeid[1] = 0; |
---|
| 27 | if (!isset($badgeid[2])) $badgeid[2] = 0; |
---|
| 28 | return |
---|
| 29 | blogStore::$acad_title[1][$badgeid[0]] . |
---|
| 30 | blogStore::$diploma[1][$badgeid[1]] . |
---|
| 31 | blogStore::$badge[1][$badgeid[2]]; |
---|
| 32 | } |
---|
| 33 | |
---|
| 34 | public function getCiSubjectTitle() { |
---|
| 35 | $sub_id = explode(',', $this->getCiSubject()); |
---|
| 36 | $subject = ''; |
---|
| 37 | foreach ($sub_id as $id) { |
---|
| 38 | $sub1 = @blogStore::$subject1[$id]; |
---|
| 39 | $sub2 = @blogStore::$subject2[$id]; |
---|
| 40 | $subject .= ($subject==''? '': ', ').($sub1? $sub1: $sub2); |
---|
| 41 | } |
---|
| 42 | return $subject; |
---|
| 43 | } |
---|
| 44 | |
---|
| 45 | public function getCiPositionTitle() { |
---|
| 46 | $pos = $this->getCiPosition(); |
---|
| 47 | if ($pos) return blogStore::$position[$pos]; |
---|
| 48 | else return ''; |
---|
| 49 | } |
---|
| 50 | } |
---|