public function setActions($actions, $context = 'bottom')
    {

		$this->actions[$context] = array();

		foreach($actions as $action){
			if( ! $action instanceof tao_helpers_form_FormElement){
				throw new Exception(" the actions parameter must only contains instances of tao_helpers_form_FormElement ");
			}
			$this->actions[$context][] = $action;
		}

    }
public function setActions($actions, $context = 'bottom')
    {

		$this->actions[$context] = array();

		foreach($actions as $action){
			if( ! $action instanceof tao_helpers_form_FormElement){
				throw new Exception(" the actions parameter must only contains instances of tao_helpers_form_FormElement ");
			}
			$this->actions[$context][] = $action;
		}

    }
public function setActions ( $ actions , $ context = 'bottom' ) { $ this -> actions [ $ context ] = array ( ) ; foreach ( $ actions as $ action ) { if ( ! $ action instanceof tao_helpers_form_FormElement ) { throw new Exception ( " the actions parameter must only contains instances of tao_helpers_form_FormElement " ) ; } $ this -> actions [ $ context ] [ ] = $ action ; } }
Define the form actions for a context.
The different contexts are top and bottom.

@access public
@author Cédric Alfonsi, <cedric.alfonsi@tudor.lu>

@param  array $actions
@param  string $context

@throws Exception
Define the form actions for a context . The different contexts are top and bottom .