Location: PHPKode > projects > Anahita Social Engine > site/views/application/html.php
<?php
/**
 * @category	Anahita Social Engine™
 * @copyright	Copyright (C) 2007 - 2010 rmdStudio Inc. and Peerglobe Technology Inc. All rights reserved.
 * @license		GNU GPLv2 <http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>
 * @link     	http://www.anahitapolis.com
 */

class ComSocialengineViewApplicationHtml extends ComSocialengineViewHtml
{

	protected function prepareListLayout()
	{
		$actions = array();
		
		if( $this->getViewer()->getAcl()->canRemoveApplication($this->application) )
			$actions['delete'] = AnUikitHtmlTag::link( JText::_('AN-SE-APPLICATION-ACTION-DELETE'), 
									'index.php?option=com_socialengine&view=application&action=delete&id='.$this->application->id)
									->setTitle(JText::_('AN-SE-APPLICATION-ACTION-DELETE'))
									->setClass('an-se-application-action-delete an-se-action-item')
									->setId('an-se-application-action-delete-'.$this->application->id)
									->setApplicationId($this->application->id)
									;
										
		if( $this->getViewer()->getAcl()->canAddApplication($this->application) )
			$actions['add'] = 	AnUikitHtmlTag::link( JText::_('AN-SE-APPLICATION-ACTION-ADD'), 
									'index.php?option=com_socialengine&view=application&action=add&id='.$this->application->id)
									->setTitle(JText::_('AN-SE-APPLICATION-ACTION-ADD'))
									->setClass('an-se-application-action-add')
									->setId('an-se-application-action-add-'.$this->application->id)
									->setApplicationId($this->application->id)
									;
									
		if( $this->application->getSettingUrl() )
			$actions['settings'] = 	AnUikitHtmlTag::link( JText::_('AN-SE-APPLICATION-ACTION-CHANGE-SETTINGS'), 
									$this->application->getSettingUrl() )
									->setTitle(JText::_('AN-SE-APPLICATION-ACTION-CHANGE-SETTINGS'))
									->setClass('an-se-application-action-change-settings')
									->setId('an-se-application-action-change-settings-'.$this->application->id)
									->setApplicationId($this->application->id)
									;			
		
		$this->assign('actions', $actions);
	}
	
//end class	
}
Return current item: Anahita Social Engine