ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.assAnswerBinaryStateImage.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2013 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
4 require_once './Modules/TestQuestionPool/classes/class.assAnswerBinaryState.php';
5 
22 {
23 
29  protected $image;
30 
45  public function __construct($answertext = "", $points = 0.0, $order = 0, $state = 0, $a_image = "", $id = -1)
46  {
47  parent::__construct($answertext, $points, $order, $id);
48  $this->image = $a_image;
49  }
50 
59  public function getImage()
60  {
61  return $this->image;
62  }
63 
73  public function setImage($a_image = 0)
74  {
75  $this->image = $a_image;
76  }
77 }
Class for answers with a binary state indicator.
setImage($a_image=0)
Sets the image filename.
__construct($answertext="", $points=0.0, $order=0, $state=0, $a_image="", $id=-1)
ASS_AnswerBinaryStateImage constructor.
Class for true/false or yes/no answers.