@@ -38,6 +38,9 @@ class Users extends Base {
3838	const  SUBJECT_SELF_UNSHARED  = 'self_unshared ' ;
3939	const  SUBJECT_SELF_UNSHARED_BY  = 'self_unshared_by ' ;
4040
41+ 	const  SUBJECT_EXPIRED_USER  = 'expired_user ' ;
42+ 	const  SUBJECT_EXPIRED  = 'expired ' ;
43+ 
4144	/** 
4245	 * @param IEvent $event 
4346	 * @return IEvent 
@@ -63,7 +66,10 @@ public function parseShortVersion(IEvent $event) {
6366			$ subject$ this l ->t ('Shared by {actor} ' );
6467		} else  if  ($ eventgetSubject () === self ::SUBJECT_UNSHARED_BY ) {
6568			$ subject$ this l ->t ('{actor} removed share ' );
66- 
69+ 		} else  if  ($ eventgetSubject () === self ::SUBJECT_EXPIRED_USER ) {
70+ 			$ subject$ this l ->t ('Share for {user} expired ' );
71+ 		} else  if  ($ eventgetSubject () === self ::SUBJECT_EXPIRED ) {
72+ 			$ subject$ this l ->t ('Share expired ' );
6773		} else  {
6874			throw  new  \InvalidArgumentException ();
6975		}
@@ -103,6 +109,10 @@ public function parseLongVersion(IEvent $event) {
103109			$ subject$ this l ->t ('{actor} shared {file} with you ' );
104110		} else  if  ($ eventgetSubject () === self ::SUBJECT_UNSHARED_BY ) {
105111			$ subject$ this l ->t ('{actor} removed you from the share named {file} ' );
112+ 		} else  if  ($ eventgetSubject () === self ::SUBJECT_EXPIRED_USER ) {
113+ 			$ subject$ this l ->t ('Share for file {file} with {user} expired ' );
114+ 		} else  if  ($ eventgetSubject () === self ::SUBJECT_EXPIRED ) {
115+ 			$ subject$ this l ->t ('Share for file {file} expired ' );
106116
107117		} else  {
108118			throw  new  \InvalidArgumentException ();
@@ -125,6 +135,8 @@ protected function getParsedParameters(IEvent $event) {
125135		switch  ($ subject
126136			case  self ::SUBJECT_SHARED_USER_SELF :
127137			case  self ::SUBJECT_UNSHARED_USER_SELF :
138+ 			case  self ::SUBJECT_EXPIRED_USER :
139+ 			case  self ::SUBJECT_EXPIRED :
128140				return  [
129141					'file '  => $ this getFile ($ parameters0 ], $ event
130142					'user '  => $ this getUser ($ parameters1 ]),
0 commit comments