# charitable/1.7.0.5/includes/interfaces/interface-charitable-form-view.php

Charitable – Donation &amp; Fundraising Platform (Donation Forms, Recurring Donations &amp; Fundraising Campaigns), version 1.7.0.5. 77 lines.

- Page: https://pluginprobe.com/plugins/charitable/1.7.0.5/code/includes/interfaces/interface-charitable-form-view.php
- Raw: https://pluginprobe.com/plugins/charitable/1.7.0.5/raw/includes/interfaces/interface-charitable-form-view.php
- Modified: 2022-09-21T15:01:56+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/charitable/1.7.0.5/code/includes/interfaces/interface-charitable-form-view.php#L10-L20`.

```php
<?php
/**
 * Donation form interface.
 *
 * This defines a strict interface that donation forms must implement.
 *
 * @version   1.5.0
 * @package   Charitable/Interfaces/Charitable_Form_View_Interface
 * @author    David Bisset
 * @copyright Copyright (c) 2022, WP Charitable LLC
 * @license   http://opensource.org/licenses/gpl-2.0.php GNU Public License
 */

// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

if ( ! interface_exists( 'Charitable_Form_View_Interface' ) ) :

    /**
     * Charitable_Form_View_Interface interface.
     *
     * @since 1.5.0
     */
    interface Charitable_Form_View_Interface {

        /**
         * Render a form.
         *
         * @since  1.5.0
         *
         * @return void
         */
        public function render();

        /**
         * Render notices before the form.
         *
         * @since  1.5.0
         *
         * @return string
         */
        public function render_notices();

        /**
         * Render a form's hidden fields.
         *
         * @since  1.5.0
         *
         * @return boolean True if any fields were rendered. False otherwise.
         */
        public function render_hidden_fields();

        /**
         * Render all of a form's fields.
         *
         * @since  1.5.0
         *
         * @return void
         */
        public function render_fields();

        /**
         * Render a specific form fields.
         *
         * @since  1.5.0
         *
         * @param  array  $field Field definition.
         * @param  string $key   Field key.
         * @param  array  $args  Mixed array of arguments.
         * @return boolean
         */
        public function render_field( $field, $key, $args = array() );
    }

endif; // End interface_exists check.
```
