Project

General

Profile

« Previous | Next » 

Revision 31281

removeSelectedPublication

View differences:

modules/uoa-joomla/trunk/joomla-2.5.3/com_openaire/site/models/claim.php
269 269
	public function removeSelectedPublication($source, $publicationId, $suffix = self :: CLAIM) {
270 270
		try {
271 271
			$session = JFactory :: getSession();
272
			$publications = unserialize($session -> get(self :: SELECTED_PUBLICATIONS . $suffix, serialize(array())));
273
			unset($publications[$source . $publicationId]);
274
			$session -> set(self :: SELECTED_PUBLICATIONS, serialize($publications));
272
			$publications = unserialize($session -> get(self :: SELECTED_PUBLICATIONS . $suffix, serialize(array())));			 
273
			unset($publications[$source . $publicationId]);			
274
			$session -> set(self :: SELECTED_PUBLICATIONS. $suffix, serialize($publications));			
275 275
			JLog :: add('Removed ' . $source . ' publication ' . $publicationId . ' from selected publications', JLog :: INFO, self :: LOG);
276 276
		} catch (Exception $e) {
277 277
			JLog :: add('Error removing ' . $source . ' publication ' . $publicationId . ' from selected publications: ' . $e -> getMessage(), JLog :: ERROR, self :: LOG);
278 278
		}
279 279
	}	
280
	
280

  
281 281
	// Claim all the selected publications.
282 282
	// $user the user to claim publications for
283 283
	public function claimSelectedPublications($user, $mode = self :: CLAIM, $activePublication = NULL, $suffix = "", $activePublicationType = "publication") {

Also available in: Unified diff