| @@ -1,54 +1,54 @@ | ||
| 1 | -<?php | |
| 2 | - | |
| 3 | -/** | |
| 4 | - * The Entry Manager Class | |
| 5 | - * | |
| 6 | - * @since 1.1.0 | |
| 7 | - */ | |
| 8 | -class WeForms_Form_Entry_Manager { | |
| 9 | - | |
| 10 | - /** | |
| 11 | - * The form id | |
| 12 | - * | |
| 13 | - * @var int | |
| 14 | - */ | |
| 15 | - private $id = 0; | |
| 16 | - | |
| 17 | - /** | |
| 18 | - * The form object | |
| 19 | - * | |
| 20 | - * @var \WeForms_Form | |
| 21 | - */ | |
| 22 | - private $form; | |
| 23 | - | |
| 24 | - /** | |
| 25 | - * The constructor | |
| 26 | - * | |
| 27 | - * @param int $form_id | |
| 28 | - * @param \WeForms_Form $form | |
| 29 | - */ | |
| 30 | - public function __construct( $form_id, $form ) { | |
| 31 | - $this->id = $form_id; | |
| 32 | - $this->form = $form; | |
| 33 | - } | |
| 34 | - | |
| 35 | - /** | |
| 36 | - * Get all the form entries | |
| 37 | - * | |
| 38 | - * @return array | |
| 39 | - */ | |
| 40 | - public function all() { | |
| 41 | - return weforms_get_form_entries( $this->id ); | |
| 42 | - } | |
| 43 | - | |
| 44 | - /** | |
| 45 | - * Get a single entry | |
| 46 | - * | |
| 47 | - * @param int $entry_id | |
| 48 | - * | |
| 49 | - * @return mixed | |
| 50 | - */ | |
| 51 | - public function get( $entry_id ) { | |
| 52 | - return new WeForms_Form_Entry( $entry_id, $this->form ); | |
| 53 | - } | |
| 54 | -} | |
| 1 | +<?php | |
| 2 | + | |
| 3 | +/** | |
| 4 | + * The Entry Manager Class | |
| 5 | + * | |
| 6 | + * @since 1.1.0 | |
| 7 | + */ | |
| 8 | +class WeForms_Form_Entry_Manager { | |
| 9 | + | |
| 10 | + /** | |
| 11 | + * The form id | |
| 12 | + * | |
| 13 | + * @var integer | |
| 14 | + */ | |
| 15 | + private $id = 0; | |
| 16 | + | |
| 17 | + /** | |
| 18 | + * The form object | |
| 19 | + * | |
| 20 | + * @var \WeForms_Form | |
| 21 | + */ | |
| 22 | + private $form; | |
| 23 | + | |
| 24 | + /** | |
| 25 | + * The constructor | |
| 26 | + * | |
| 27 | + * @param integer $form_id | |
| 28 | + * @param \WeForms_Form $form | |
| 29 | + */ | |
| 30 | + function __construct( $form_id, $form ) { | |
| 31 | + $this->id = $form_id; | |
| 32 | + $this->form = $form; | |
| 33 | + } | |
| 34 | + | |
| 35 | + /** | |
| 36 | + * Get all the form entries | |
| 37 | + * | |
| 38 | + * @return array | |
| 39 | + */ | |
| 40 | + public function all() { | |
| 41 | + return weforms_get_form_entries( $this->id ); | |
| 42 | + } | |
| 43 | + | |
| 44 | + /** | |
| 45 | + * Get a single entry | |
| 46 | + * | |
| 47 | + * @param integer $entry_id | |
| 48 | + * | |
| 49 | + * @return mixed | |
| 50 | + */ | |
| 51 | + public function get( $entry_id ) { | |
| 52 | + return new WeForms_Form_Entry( $entry_id, $this->form ); | |
| 53 | + } | |
| 54 | +} | |