public_html/nextcloud/apps/activity/lib/Data.php
/**
	 * Verify that the filter is valid
	 *
	 * @param string $filterValue
	 * @return string
	 */
Verify that the filter is valid
@param string $filterValue
@return string
Verify that the filter is valid @param string $filterValue @return string
public function validateFilter($filterValue) {
		if (!isset($filterValue)) {
			return 'all';
		}
		switch ($filterValue) {
			case 'filter':
				return $filterValue;
			default:
				try {
					$this->activityManager->getFilterById($filterValue);
					return $filterValue;
				} catch (\InvalidArgumentException $e) {
					return 'all';
				}
		}
	}
public function validateFilter ( $ filterValue ) { if ( ! isset ( $ filterValue ) ) { return 'all' ; } switch ( $ filterValue ) { case 'filter' : return $ filterValue ; default : try { $ this -> activityManager -> getFilterById ( $ filterValue ) ; return $ filterValue ; } catch ( \ InvalidArgumentException $ e ) { return 'all' ; } } }
Verify that the filter is valid
 @param string $filterValue
 @return string
Verify that the filter is valid @param string $filterValue @return string