/** * Export this data so it can be used as the context for a mustache template. * * @param \renderer_base $output * @return \stdClass */ public function export_for_template(\renderer_base $output) { if ($this->value) { $this->displayvalue = $output->pix_icon('i/checked', get_string('yes')); } else { $this->displayvalue = $output->pix_icon('i/unchecked', get_string('no')); } return parent::export_for_template($output); }
/** * Export this data so it can be used as the context for a mustache template. * * @param \renderer_base $output * @return \stdClass */ public function export_for_template(\renderer_base $output) { if ($this->value) { $this->edithint = get_string('settypedefault', 'core_tag'); $this->displayvalue = $output->pix_icon('i/checked', $this->edithint); } else { $this->edithint = get_string('settypestandard', 'core_tag'); $this->displayvalue = $output->pix_icon('i/unchecked', $this->edithint); } return parent::export_for_template($output); }
/** * Export this data so it can be used as the context for a mustache template. * * @param \renderer_base $output * @return \stdClass */ public function export_for_template(\renderer_base $output) { if ($this->value) { $this->edithint = get_string('resetflag', 'core_tag'); $this->displayvalue = $output->pix_icon('i/flagged', $this->edithint) . " ({$this->value})"; } else { $this->edithint = get_string('flagasinappropriate', 'core_tag'); $this->displayvalue = $output->pix_icon('i/unflagged', $this->edithint); } return parent::export_for_template($output); }
/** * Export this data so it can be used as the context for a mustache template. * * @param \renderer_base $output * @return \stdClass */ public function export_for_template(\renderer_base $output) { if ($this->value) { $this->edithint = get_string('disable'); $this->displayvalue = $output->pix_icon('i/hide', get_string('disable')); } else { $this->edithint = get_string('enable'); $this->displayvalue = $output->pix_icon('i/show', get_string('enable')); } return parent::export_for_template($output); }