apps/activity/lib/FilesHooks.php
/**
	 * Store the create hook events
	 * @param string $path Path of the file that has been created
	 */
Store the create hook events
@param string $path Path of the file that has been created
Store the create hook events @param string $path Path of the file that has been created
public function fileCreate($path) {
		if ($path === '/') {
			return;
		}
		if ($this->currentUser->getUserIdentifier() !== '') {
			$this->addNotificationsForFileAction($path, Files::TYPE_SHARE_CREATED, 'created_self', 'created_by');
		} else {
			$this->addNotificationsForFileAction($path, Files::TYPE_SHARE_CREATED, '', 'created_public');
		}
	}
public function fileCreate ( $ path ) { if ( $ path === '/' ) { return ; } if ( $ this -> currentUser -> getUserIdentifier ( ) !== '' ) { $ this -> addNotificationsForFileAction ( $ path , Files :: TYPE_SHARE_CREATED , 'created_self' , 'created_by' ) ; } else { $ this -> addNotificationsForFileAction ( $ path , Files :: TYPE_SHARE_CREATED , '' , 'created_public' ) ; } }
Store the create hook events
 @param string $path Path of the file that has been created
Store the create hook events @param string $path Path of the file that has been created