Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/clone/wp-conte.../plugins/ninja-fo.../includes/Database/Models
File: Field.php
<?php if ( ! defined( 'ABSPATH' ) ) exit;
[0] Fix | Delete
[1] Fix | Delete
/**
[2] Fix | Delete
* Class NF_Database_Models_Field
[3] Fix | Delete
*/
[4] Fix | Delete
final class NF_Database_Models_Field extends NF_Abstracts_Model
[5] Fix | Delete
{
[6] Fix | Delete
private $form_id = '';
[7] Fix | Delete
[8] Fix | Delete
protected $_type = 'field';
[9] Fix | Delete
[10] Fix | Delete
protected $_table_name = 'nf3_fields';
[11] Fix | Delete
[12] Fix | Delete
protected $_meta_table_name = 'nf3_field_meta';
[13] Fix | Delete
[14] Fix | Delete
protected $_columns = array(
[15] Fix | Delete
'label',
[16] Fix | Delete
'key',
[17] Fix | Delete
'parent_id',
[18] Fix | Delete
'type',
[19] Fix | Delete
'created_at'
[20] Fix | Delete
);
[21] Fix | Delete
public function __construct( $db, $id, $parent_id = '' )
[22] Fix | Delete
{
[23] Fix | Delete
parent::__construct( $db, $id, $parent_id );
[24] Fix | Delete
}
[25] Fix | Delete
[26] Fix | Delete
/**
[27] Fix | Delete
* Delete
[28] Fix | Delete
*
[29] Fix | Delete
* Delete the object, its children, and its relationships.
[30] Fix | Delete
*
[31] Fix | Delete
* Also deletes data associated with field
[32] Fix | Delete
*
[33] Fix | Delete
* @return bool
[34] Fix | Delete
*/
[35] Fix | Delete
public function delete() {
[36] Fix | Delete
return parent::delete();
[37] Fix | Delete
}
[38] Fix | Delete
[39] Fix | Delete
public static function import( array $settings, $field_id = '', $is_conversion = FALSE )
[40] Fix | Delete
{
[41] Fix | Delete
$settings = apply_filters( 'ninja_forms_before_import_fields', $settings );
[42] Fix | Delete
$settings[ 'saved' ] = 1;
[43] Fix | Delete
[44] Fix | Delete
if( $field_id && $is_conversion ) {
[45] Fix | Delete
$field = Ninja_Forms()->form()->field( $field_id )->get();
[46] Fix | Delete
} else {
[47] Fix | Delete
$field = Ninja_Forms()->form()->field()->get();
[48] Fix | Delete
}
[49] Fix | Delete
$field->update_settings( $settings );
[50] Fix | Delete
$field->save();
[51] Fix | Delete
}
[52] Fix | Delete
[53] Fix | Delete
} // End NF_Database_Models_Field
[54] Fix | Delete
[55] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function