/**
* Returns an error message which contains the null field names which have been checked
*
- * @param preamble string - A string with which to start the error message
- * @return string - A complete error message
+ * @param string $preamble - A string with which to start the error message
+ * @return string - A complete error message
*/
function formErrorMsg($preamble) {
foreach ($this->badfields as $field) {
$this->setError('No group_id');
return false;
}
-
+
switch ($span) {
case REPORT_TYPE_WEEKLY: {
- $arr =& $this->getWeekStartArr();
+ $arr = $this->getWeekStartArr();
break;
}
default: {
- $arr =& $this->getMonthStartArr();
+ $arr = $this->getMonthStartArr();
break;
}
}
/**
* Constructor
*
- * @param string $words words we are searching for
- * @param int $offset offset
- * @param boolean $isExact if we want to search for all the words or if only one matching the query is sufficient
- * @param int $groupId group id
- * @param array $sections sections to search in
+ * @param string $words words we are searching for
+ * @param int $offset offset
+ * @param bool $isExact if we want to search for all the words or if only one matching the query is sufficient
+ * @param int $groupId group id
+ * @param string $sections sections to search in
+ * @param bool $showNonPublic
*/
function __construct($words, $offset, $isExact, $groupId, $sections=SEARCH__ALL_SECTIONS, $showNonPublic=false) {
$this->groupId = $groupId;