Phorm/Phorm.class.php
/**
	 * Returns the buttons for submitting or resetting the form.
	 *
	 * @return string the form's closing tag
	 */
Returns the buttons for submitting or resetting the form.
@return string the form's closing tag
Returns the buttons for submitting or resetting the form . @return string the form ' s closing tag
public function buttons($buttons = array())
	{
		global $phorms_tr;
		if( empty($buttons) || !is_array($buttons) )
		{
			$reset = new Phorm_Widget_Reset();
			$submit = new Phorm_Widget_Submit();
			return $reset->html($phorms_tr['buttons_reset'], array( 'class' => 'phorms-reset' )).
				"\n".$submit->html($phorms_tr['buttons_validate'], array( 'class' => 'phorms-submit' ));
		}
		else
		{
			$out = array();
			foreach( $buttons as $button )
			{
				$out[] = $button[1]->html($button[0]);
			}
			return implode("\n", $out);
		}
	}
public function buttons ( $ buttons = array ( ) ) { global $ phorms_tr ; if ( empty ( $ buttons ) || ! is_array ( $ buttons ) ) { $ reset = new Phorm_Widget_Reset ( ) ; $ submit = new Phorm_Widget_Submit ( ) ; return $ reset -> html ( $ phorms_tr [ 'buttons_reset' ] , array ( 'class' => 'phorms-reset' ) ) . " \n " . $ submit -> html ( $ phorms_tr [ 'buttons_validate' ] , array ( 'class' => 'phorms-submit' ) ) ; } else { $ out = array ( ) ; foreach ( $ buttons as $ button ) { $ out [ ] = $ button [ 1 ] -> html ( $ button [ 0 ] ) ; } return implode ( " \n " , $ out ) ; } }
Returns the buttons for submitting or resetting the form.
Returns the buttons for submitting or resetting the form .