apps/admin_audit/lib/actions/sharing.php
/**
	 * Logs sharing of data
	 *
	 * @param array $params
	 */
Logs sharing of data
@param array $params
Logs sharing of data @param array $params
public function shared(array $params) {
		if($params['shareType'] === Share::SHARE_TYPE_LINK) {
			$this->log(
				'The %s "%s" with ID "%s" has been shared via link with permissions "%s" (Share ID: %s)',
				$params,
				[
					'itemType',
					'itemTarget',
					'itemSource',
					'permissions',
					'id',
				]
			);
		} elseif($params['shareType'] === Share::SHARE_TYPE_USER) {
			$this->log(
				'The %s "%s" with ID "%s" has been shared to the user "%s" with permissions "%s"  (Share ID: %s)',
				$params,
				[
					'itemType',
					'itemTarget',
					'itemSource',
					'shareWith',
					'permissions',
					'id',
				]
			);
		} elseif($params['shareType'] === Share::SHARE_TYPE_GROUP) {
			$this->log(
				'The %s "%s" with ID "%s" has been shared to the group "%s" with permissions "%s"  (Share ID: %s)',
				$params,
				[
					'itemType',
					'itemTarget',
					'itemSource',
					'shareWith',
					'permissions',
					'id',
				]
			);
		}
	}
public function shared ( array $ params ) { if ( $ params [ 'shareType' ] === Share :: SHARE_TYPE_LINK ) { $ this -> log ( 'The %s "%s" with ID "%s" has been shared via link with permissions "%s" (Share ID: %s)' , $ params , [ 'itemType' , 'itemTarget' , 'itemSource' , 'permissions' , 'id' , ] ) ; } elseif ( $ params [ 'shareType' ] === Share :: SHARE_TYPE_USER ) { $ this -> log ( 'The %s "%s" with ID "%s" has been shared to the user "%s" with permissions "%s"  (Share ID: %s)' , $ params , [ 'itemType' , 'itemTarget' , 'itemSource' , 'shareWith' , 'permissions' , 'id' , ] ) ; } elseif ( $ params [ 'shareType' ] === Share :: SHARE_TYPE_GROUP ) { $ this -> log ( 'The %s "%s" with ID "%s" has been shared to the group "%s" with permissions "%s"  (Share ID: %s)' , $ params , [ 'itemType' , 'itemTarget' , 'itemSource' , 'shareWith' , 'permissions' , 'id' , ] ) ; } }
Logs sharing of data
 @param array $params
Logs sharing of data @param array $params