Ejemplo n.º 1
0
 /**
  * Switch availability of a dataset
  */
 public function switchAvailability($datasetID, $option)
 {
     $datasets = new models\Datasets();
     $datasets->changeAvailability($datasetID, $option);
     $availabilityLabel = $datasets->fetchAvailabilityLabel($option);
     return "<span class='label label-" . $availabilityLabel . "'><span class='datasetDetailText'>" . strtoupper($option) . "</span></span>";
 }