lib/ReportConfig.php
/**
   * Saves a ReportSummary
   * @param {Array} reportSummary - Configuration for a report summary
   * @return true if the report summary was saved, or an array of validation errors
   */
Saves a ReportSummary
@param {Array} reportSummary - Configuration for a report summary
@return true if the report summary was saved, or an array of validation errors
Saves a ReportSummary @param { Array } reportSummary - Configuration for a report summary @return true if the report summary was saved or an array of validation errors
public function saveReportSummary($reportSummary) {
    $errors = $this->validate($reportSummary);
    if (count($errors) > 0) {
      return $errors;
    }
    $config = $this->getReportConfig();
    if ($config) {
      array_push($config, $reportSummary);
    } else {
      $config = array($reportSummary);
    }
    $this->saveConfig($config);
    return true;
  }
public function saveReportSummary ( $ reportSummary ) { $ errors = $ this -> validate ( $ reportSummary ) ; if ( count ( $ errors ) > 0 ) { return $ errors ; } $ config = $ this -> getReportConfig ( ) ; if ( $ config ) { array_push ( $ config , $ reportSummary ) ; } else { $ config = array ( $ reportSummary ) ; } $ this -> saveConfig ( $ config ) ; return true ; }
Saves a ReportSummary
 @param {Array} reportSummary - Configuration for a report summary
 @return true if the report summary was saved, or an array of validation errors
Saves a ReportSummary @param { Array } reportSummary - Configuration for a report summary @return true if the report summary was saved or an array of validation errors