*/
/**
- *
- * @package CRM
- * @copyright CiviCRM LLC (c) 2004-2014
- * $Id$
- *
+ * Class CRM_Report_Form
*/
class CRM_Report_Form extends CRM_Core_Form {
const ROW_COUNT_LIMIT = 50;
protected $_createNew;
/**
+ * Class constructor.
*/
public function __construct() {
parent::__construct();
$this->addClass('crm-report-form');
- // build tag filter
+ // Build tag filter.
if ($this->_tagFilter) {
$this->buildTagFilter();
}
}
/**
+ * Set default values.
+ *
* @param bool $freeze
*
* @return array
$freezeGroup = array();
// FIXME: generalizing form field naming conventions would reduce
- // lots of lines below.
+ // Lots of lines below.
foreach ($this->_columns as $tableName => $table) {
if (array_key_exists('fields', $table)) {
foreach ($table['fields'] as $fieldName => $field) {
}
/**
+ * Get element from group.
+ *
* @param string $group
* @param string $grpFieldName
*
}
/**
- * Setter for $_params
+ * Setter for $_params.
*
* @param array $params
*/
}
/**
- * Setter for $_limitValue
+ * Setter for $_limitValue.
*
* @param int $_limitValue
*/
}
/**
- * Setter for $_offsetValue
+ * Setter for $_offsetValue.
*
* @param int $_offsetValue
*/
}
/**
- * Getter for $_defaultValues
+ * Getter for $_defaultValues.
+ *
* @return array
*/
public function getDefaultValues() {
return $this->_defaults;
}
+ /**
+ * Add columns to report.
+ */
public function addColumns() {
$options = array();
$colGroups = NULL;
*
* @param bool $relative
* @param string $from
- * @param string_type $to
+ * @param string $to
*
* @return string|NULL
*/
$this->_columnHeaders["{$tableName}_{$fieldName}_start"]['type'] = $field['type'];
$this->_columnHeaders["{$tableName}_{$fieldName}_start"]['group_by'] = $this->_params['group_bys_freq'][$fieldName];
- // just to make sure these values are transfered to rows.
+ // just to make sure these values are transferred to rows.
// since we 'll need them for calculation purpose,
// e.g making subtotals look nicer or graphs
$this->_columnHeaders["{$tableName}_{$fieldName}_interval"] = array('no_display' => TRUE);
}
/**
- * @param null $rows
+ * End post processing.
+ *
+ * @param array|null $rows
*/
public function endPostProcess(&$rows = NULL) {
if ($this->_storeResultSet) {
}
/**
- * Set store result set indicator to TRUE
+ * Set store result set indicator to TRUE.
+ *
* @todo explain what this does
*/
public function storeResultSet() {
}
/**
+ * Get result set.
+ *
* @return bool
*/
public function getResultSet() {