public function getMarkText() { $config = $this->getStudentRepprovedCourseSubject()->getCourseSubjectStudent()->getCourseSubject()->getCareerSubjectSchoolYear()->getSubjectConfiguration(); if (!is_null($config) && !$config->isNumericalMark()) { return "-"; } else { $c = new num2text(); return $c->num2str($this->getMark()); } }
echo !$cssm->getMark() ? __('free') : $cssm->getMark() ? $cssm : ''; ?> </td> <?php } ?> <td><?php echo $final_period ? $course_subject_student->getMarksAverage() : ''; ?> </td> <?php $c = new num2text(); ?> <td><?php echo $final_period ? $c->num2str($course_subject_student->getMarksAverage()) : ''; ?> </td> <td></td> <td></td> <?php if ($is_block) { ?> <td></td> <td></td> <td></td> <?php } ?> <td></td> <td></td>
public function getMarkAsSymbol() { if (!$this->approved) { return $this->getNullLabel(); } $c = new num2text(); $mark = $this->getMark(); $mark_parts = explode(',', $mark); if (1 === count($mark_parts)) { $mark_parts = explode('.', $mark); } $mark_symbol = trim($c->num2str($mark_parts[0])) . ('00' !== $mark_parts[1] ? ',' . $mark_parts[1] : ''); return $mark_symbol; }