public function isActionButtonActive($actionwanted)
	{
		$active = 0;
		$pathArrayConfig = '';
		 
		switch ($actionwanted)
		{
			case 'save' : 		$pathArrayConfig = 'meliscms_page_action_save';
			break;
			case 'delete' : 	$pathArrayConfig = 'meliscms_page_action_delete';
			break;
			case 'publish' : 	$pathArrayConfig = 'meliscms_page_action_publishunpublish';
			break;
			case 'unpublish' : 	$pathArrayConfig = 'meliscms_page_action_publishunpublish';
			break;
		}
		
		$melisAppConfig = $this->getServiceLocator()->get('MelisCoreConfig');
		$melisKeys = $melisAppConfig->getMelisKeys();
		 
		$melisCoreAuth = $this->getServiceLocator()->get('MelisCoreAuth');
		$xmlRights = $melisCoreAuth->getAuthRights();

		$melisCoreRights = $this->getServiceLocator()->get('MelisCoreRights');
		
		if (!empty($melisKeys[$pathArrayConfig]))
		{
			$isAccessible = $melisCoreRights->isAccessible($xmlRights, MelisCoreRightsService::MELISCORE_PREFIX_INTERFACE, $melisKeys[$pathArrayConfig]);
			if ($isAccessible)
				$active = 1;
		}
		 
		return $active;
	}
public function isActionButtonActive($actionwanted)
	{
		$active = 0;
		$pathArrayConfig = '';
		 
		switch ($actionwanted)
		{
			case 'save' : 		$pathArrayConfig = 'meliscms_page_action_save';
			break;
			case 'delete' : 	$pathArrayConfig = 'meliscms_page_action_delete';
			break;
			case 'publish' : 	$pathArrayConfig = 'meliscms_page_action_publishunpublish';
			break;
			case 'unpublish' : 	$pathArrayConfig = 'meliscms_page_action_publishunpublish';
			break;
		}
		
		$melisAppConfig = $this->getServiceLocator()->get('MelisCoreConfig');
		$melisKeys = $melisAppConfig->getMelisKeys();
		 
		$melisCoreAuth = $this->getServiceLocator()->get('MelisCoreAuth');
		$xmlRights = $melisCoreAuth->getAuthRights();

		$melisCoreRights = $this->getServiceLocator()->get('MelisCoreRights');
		
		if (!empty($melisKeys[$pathArrayConfig]))
		{
			$isAccessible = $melisCoreRights->isAccessible($xmlRights, MelisCoreRightsService::MELISCORE_PREFIX_INTERFACE, $melisKeys[$pathArrayConfig]);
			if ($isAccessible)
				$active = 1;
		}
		 
		return $active;
	}
public function isActionButtonActive ( $ actionwanted ) { $ active = 0 ; $ pathArrayConfig = '' ; switch ( $ actionwanted ) { case 'save' : $ pathArrayConfig = 'meliscms_page_action_save' ; break ; case 'delete' : $ pathArrayConfig = 'meliscms_page_action_delete' ; break ; case 'publish' : $ pathArrayConfig = 'meliscms_page_action_publishunpublish' ; break ; case 'unpublish' : $ pathArrayConfig = 'meliscms_page_action_publishunpublish' ; break ; } $ melisAppConfig = $ this -> getServiceLocator ( ) -> get ( 'MelisCoreConfig' ) ; $ melisKeys = $ melisAppConfig -> getMelisKeys ( ) ; $ melisCoreAuth = $ this -> getServiceLocator ( ) -> get ( 'MelisCoreAuth' ) ; $ xmlRights = $ melisCoreAuth -> getAuthRights ( ) ; $ melisCoreRights = $ this -> getServiceLocator ( ) -> get ( 'MelisCoreRights' ) ; if ( ! empty ( $ melisKeys [ $ pathArrayConfig ] ) ) { $ isAccessible = $ melisCoreRights -> isAccessible ( $ xmlRights , MelisCoreRightsService :: MELISCORE_PREFIX_INTERFACE , $ melisKeys [ $ pathArrayConfig ] ) ; if ( $ isAccessible ) $ active = 1 ; } return $ active ; }
This function returns whether or not a user has access to the "save", "delete", "publish", "unpublish"
action buttons in the interface. Allowing to expand the rights to php saving functions, and updating
treeview right menu

@return int
This function returns whether or not a user has access to the save delete publish unpublish action buttons in the interface . Allowing to expand the rights to php saving functions and updating treeview right menu