# weforms/1.3.3/includes/class-form-entry-manager.php

weForms – Easy Drag &amp; Drop Contact Form Builder For WordPress, version 1.3.3. 55 lines.

- Page: https://pluginprobe.com/plugins/weforms/1.3.3/code/includes/class-form-entry-manager.php
- Raw: https://pluginprobe.com/plugins/weforms/1.3.3/raw/includes/class-form-entry-manager.php
- Modified: 2017-11-19T03:26:14+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/weforms/1.3.3/code/includes/class-form-entry-manager.php#L10-L20`.

```php
<?php

/**
 * The Entry Manager Class
 *
 * @since 1.1.0
 */
class WeForms_Form_Entry_Manager {

    /**
     * The form id
     *
     * @var integer
     */
    private $id = 0;

    /**
     * The form object
     *
     * @var \WeForms_Form
     */
    private $form;

    /**
     * The constructor
     *
     * @param integer       $form_id
     * @param \WeForms_Form $form
     */
    function __construct( $form_id, $form ) {
        $this->id   = $form_id;
        $this->form = $form;
    }

    /**
     * Get all the form entries
     *
     * @return array
     */
    public function all() {
        return weforms_get_form_entries( $this->id );
    }

    /**
     * Get a single entry
     *
     * @param  integer $entry_id
     *
     * @return mixed
     */
    public function get( $entry_id ) {
        return new WeForms_Form_Entry( $entry_id, $this->form );
    }
}

```
