コード例 #1
0
ファイル: tagcollsearchable.php プロジェクト: evltuma/moodle
 /**
  * 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);
 }
コード例 #2
0
ファイル: tagisstandard.php プロジェクト: evltuma/moodle
 /**
  * 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);
 }
コード例 #3
0
ファイル: tagflag.php プロジェクト: evltuma/moodle
 /**
  * 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);
 }
コード例 #4
0
ファイル: tagareaenabled.php プロジェクト: evltuma/moodle
 /**
  * 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);
 }