public function renderActions($context = 'bottom')
    {
        $returnValue = (string) '';

		if(isset($this->actions[$context])){

			$decorator = null;
			if(!is_null($this->getDecorator('actions-'.$context))){
			 	$decorator = $this->getDecorator('actions-'.$context);
			}
			else if(!is_null($this->getDecorator('actions'))){
			 	$decorator = $this->getDecorator('actions');
			}

			if(!is_null($decorator)){
				$returnValue .= $decorator->preRender();
			}

			foreach($this->actions[$context] as $action){
				$returnValue .= $action->render();
			}

			if(!is_null($decorator)){
				$returnValue .= $decorator->postRender();
			}

		}



        return (string) $returnValue;
    }
public function renderActions($context = 'bottom')
    {
        $returnValue = (string) '';

		if(isset($this->actions[$context])){

			$decorator = null;
			if(!is_null($this->getDecorator('actions-'.$context))){
			 	$decorator = $this->getDecorator('actions-'.$context);
			}
			else if(!is_null($this->getDecorator('actions'))){
			 	$decorator = $this->getDecorator('actions');
			}

			if(!is_null($decorator)){
				$returnValue .= $decorator->preRender();
			}

			foreach($this->actions[$context] as $action){
				$returnValue .= $action->render();
			}

			if(!is_null($decorator)){
				$returnValue .= $decorator->postRender();
			}

		}



        return (string) $returnValue;
    }
public function renderActions ( $ context = 'bottom' ) { $ returnValue = ( string ) '' ; if ( isset ( $ this -> actions [ $ context ] ) ) { $ decorator = null ; if ( ! is_null ( $ this -> getDecorator ( 'actions-' . $ context ) ) ) { $ decorator = $ this -> getDecorator ( 'actions-' . $ context ) ; } else if ( ! is_null ( $ this -> getDecorator ( 'actions' ) ) ) { $ decorator = $ this -> getDecorator ( 'actions' ) ; } if ( ! is_null ( $ decorator ) ) { $ returnValue .= $ decorator -> preRender ( ) ; } foreach ( $ this -> actions [ $ context ] as $ action ) { $ returnValue .= $ action -> render ( ) ; } if ( ! is_null ( $ decorator ) ) { $ returnValue .= $ decorator -> postRender ( ) ; } } return ( string ) $ returnValue ; }
render the form actions by context

@access public
@author Cédric Alfonsi, <cedric.alfonsi@tudor.lu>
@param  string $context
@return string
render the form actions by context