コード例 #1
0
 /**
  * class constructor
  *
  */
 function __construct($graphic_report, $id, $rank, $title, $description, $width, $height)
 {
     parent::__construct($graphic_report, $id, $rank, $title, $description, $width, $height);
     $sql = "SELECT * FROM plugin_graphontrackers_pie_chart WHERE id = " . db_ei($id);
     $res = db_query($sql);
     $arr = db_fetch_array($res);
     $this->field_base = $arr['field_base'];
 }
コード例 #2
0
 /**
  * class constructor
  *
  */
 function __construct($graphic_report, $id, $rank, $title, $description, $width, $height)
 {
     parent::__construct($graphic_report, $id, $rank, $title, $description, $width, $height);
     $sql = "SELECT * FROM plugin_graphontrackers_gantt_chart WHERE id = " . db_ei($id);
     $res = db_query($sql);
     $arr = db_fetch_array($res);
     $this->field_start = $arr['field_start'];
     $this->field_due = $arr['field_due'];
     $this->field_finish = $arr['field_finish'];
     $this->field_percentage = $arr['field_percentage'];
     $this->field_righttext = $arr['field_righttext'];
     $this->scale = $arr['scale'];
     $this->as_of_date = $arr['as_of_date'];
     $this->summary = $arr['summary'];
 }