Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions classes/controllers/FrmFormActionsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
}

class FrmFormActionsController {

/**
* @var string
*/
public static $action_post_type = 'frm_form_actions';

/**
Expand Down Expand Up @@ -779,6 +783,10 @@ public static function prevent_wpml_translations( $null, $post_type ) {
}

class Frm_Form_Action_Factory {

/**
* @var array
*/
public $actions = array();

public function __construct() {
Expand Down
5 changes: 3 additions & 2 deletions classes/helpers/FrmEntriesListHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@

class FrmEntriesListHelper extends FrmListHelper {

/**
* @var string|null
*/
protected $column_name;
protected $item;
protected $field;

/**
* @since 4.07
Expand Down
6 changes: 6 additions & 0 deletions classes/helpers/FrmFieldGridHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@

class FrmFieldGridHelper {

/**
* @var bool|string
*/
private $parent_li;

/**
Expand Down Expand Up @@ -52,6 +55,9 @@ class FrmFieldGridHelper {
*/
private $section_size;

/**
* @var bool
*/
private $section_is_open = false;

/**
Expand Down
4 changes: 4 additions & 0 deletions classes/helpers/FrmFormsListHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
}

class FrmFormsListHelper extends FrmListHelper {

/**
* @var string
*/
public $status = '';

public $total_items = 0;
Expand Down
6 changes: 6 additions & 0 deletions classes/helpers/FrmListHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,14 @@ class FrmListHelper {
*/
protected $_column_headers;

/**
* @var array
*/
protected $compat_fields = array( '_args', '_pagination_args', 'screen', '_actions', '_pagination' );

/**
* @var array
*/
protected $compat_methods = array(
'set_pagination_args',
'get_views',
Expand Down
6 changes: 5 additions & 1 deletion classes/helpers/FrmTipsHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -396,8 +396,12 @@ public static function get_import_tip() {
* @return array
*/
public static function get_random_tip( $tips ) {
$random = random_int( 0, count( $tips ) - 1 );
$count = count( $tips );
if ( $count === 0 ) {
return array();
}

$random = random_int( 0, $count - 1 );
return $tips[ $random ];
}

Expand Down
64 changes: 62 additions & 2 deletions classes/models/FrmAddon.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,80 @@

/** @phpstan-consistent-constructor */
class FrmAddon {

/**
* @var string
*/
public $store_url = 'https://formidableforms.com';

/**
* @var int|string|null
*/
public $download_id;

/**
* @var string|null
*/
public $plugin_file;

/**
* @var string
*/
public $plugin_folder;

/**
* @var string
*/
public $plugin_name;

/**
* @var string
*/
public $plugin_slug;

/**
* @var string
*/
public $option_name;

/**
* @var string|null
*/
public $version;
public $author = 'Strategy11';

/**
* @var string
*/
public $author = 'Strategy11';

/**
* @var bool
*/
public $is_parent_licence = false;
public $needs_license = true;

/**
* @var bool
*/
public $needs_license = true;

/**
* @var bool
*/
private $is_expired_addon = false;

/**
* @var string|null
*/
public $license;

/**
* @var bool
*/
protected $get_beta = false;

/**
* @var array|null
*/
protected $save_status;
Comment thread
Crabcyborg marked this conversation as resolved.

/**
Expand Down
31 changes: 31 additions & 0 deletions classes/models/FrmCreateFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,44 @@

class FrmCreateFile {

/**
* @var string
*/
public $folder_name;

/**
* @var string
*/
public $file_name;

/**
* @var string
*/
public $error_message;

/**
* @var array
*/
public $uploads;

/**
* @var string
*/
private $new_file_path;

/**
* @var int
*/
public $chmod_dir = 0755;

/**
* @var int
*/
public $chmod_file = 0644;

/**
* @var bool
*/
private $has_permission = false;

/**
Expand Down
24 changes: 24 additions & 0 deletions classes/models/FrmDb.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,33 @@
}

class FrmDb {

/**
* The table name for Formidable Fields.
*
* @var string
*/
public $fields;

/**
* The table name for Formidable Forms.
*
* @var string
*/
public $forms;

/**
* The table name for Formidable Entries.
*
* @var string
*/
public $entries;

/**
* The table name for Formidable Entry Metas.
*
* @var string
*/
public $entry_metas;
Comment thread
Crabcyborg marked this conversation as resolved.

public function __construct() {
Expand Down
7 changes: 7 additions & 0 deletions classes/models/FrmField.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,14 @@

class FrmField {

/**
* @var bool
*/
public static $use_cache = true;

/**
* @var int
*/
public static $transient_size = 200;

/**
Expand Down
15 changes: 15 additions & 0 deletions classes/models/FrmFieldFormHtml.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,34 @@
*/
class FrmFieldFormHtml {

/**
* @var string
*/
private $html;

/**
* @var string
*/
private $html_id;

/**
* @var FrmFieldType
*/
private $field_obj;

/**
* @var int|string
*/
private $field_id;

/**
* @var array
*/
private $form = array();

/**
* @var array
*/
private $pass_args = array();

/**
Expand Down
3 changes: 3 additions & 0 deletions classes/models/FrmFieldTypeOptionData.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
*/
class FrmFieldTypeOptionData {

/**
* @var array
*/
private static $data = array();

/**
Expand Down
32 changes: 32 additions & 0 deletions classes/models/FrmFormMigrator.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,49 @@

abstract class FrmFormMigrator {

/**
* @var bool
*/
public $source_active;

/**
* @var string
*/
public $slug;

/**
* @var string
*/
public $path;

/**
* @var string
*/
public $name;

/**
* @var array
*/
public $response = array();

/**
* @var string
*/
public $tracking = 'frm_forms_imported';

/**
* @var array
*/
protected $fields_map = array();

/**
* @var mixed
*/
protected $current_source_form;

/**
* @var array
*/
protected $current_section = array();

/**
Expand Down
9 changes: 9 additions & 0 deletions classes/models/FrmFormTemplateApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,19 @@

class FrmFormTemplateApi extends FrmFormApi {

/**
* @var string
*/
protected static $code_option_name = 'frm_free_license_code';

/**
* @var string
*/
private static $base_api_url = 'https://formidableforms.com/wp-json/form-templates/v1/';

/**
* @var string|null
*/
protected static $free_license;

/**
Expand Down
Loading
Loading