/** * * @param <type> $row_id * @param <type> $f_station_code * @param <type> $f_sensor_ch * @param <type> $f_sensor_code * @param <type> $f_chain_code * @param <type> $f_group_code * @param <type> $f_unit_code * @param <type> $f_name * @param <type> $f_unit * @param <type> $f_div * @param <type> $f_mul * @param <type> $f_val_neg * @param <type> $f_val_log * @param <type> $f_val_last * @param <type> $f_val_sum * @param <type> $f_val_aver * @param <type> $f_val_min * @param <type> $f_val_max * @param <type> $f_val_time * @param <type> $f_val_user * @param <type> $f_create_time * @param <type> $f_val_axilary * @param <type> $f_user_app * @param <type> $f_color * @param <type> $f_sensor_user_name * @param <type> $f_user_unit_code * @param <type> $graph_type * @param <type> $min_expected * @param <type> $max_expected * @param <type> $custom_name * @param <type> $custom_desc * @param <type> $custom_image * @param <type> $enable_sensor * @param <type> $chillingOursRelated * @param <type> $degreesDayRelated * @param <type> $windRoseRelated * @param <type> $priority * @param <type> $last_edition_time * * @param <type> $last_update_date * @param <type> $last_editor */ public function __construct($row_id = '', $f_station_code = '', $f_sensor_ch = '', $f_sensor_code = '', $f_chain_code = '', $f_group_code = '', $f_unit_code = '', $f_name = '', $f_unit = '', $f_div = '', $f_mul = '', $f_val_neg = '', $f_val_log = '', $f_val_last = '', $f_val_sum = '', $f_val_aver = '', $f_val_min = '', $f_val_max = '', $f_val_time = '', $f_val_user = '', $f_create_time = '', $f_val_axilary = '', $f_user_app = '', $f_color = '', $f_sensor_user_name = '', $f_user_unit_code = '', $graph_type = '', $min_expected = '', $max_expected = '', $custom_name = '', $custom_desc = '', $custom_image = '', $enable_sensor = '', $chillingOursRelated = 0, $degreesDayRelated = 0, $windRoseRelated = 0, $priority = '', $last_edition_time = '', $last_update_date = '', $last_editor = '') { $this->_rowId = $row_id; $this->_fStationCode = $f_station_code; $this->_fSensorCh = $f_sensor_ch; $this->_fSensorCode = $f_sensor_code; $this->_fChainCode = $f_chain_code; $this->_fGroupCode = $f_group_code; $this->_fUnitCode = $f_unit_code; $this->_fName = $f_name; $this->_fUnit = Sensor::fixSensorUnit($f_unit); $this->_fDiv = $f_div; $this->_fMul = $f_mul; $this->_fValNeg = $f_val_neg; $this->_fValLog = $f_val_log; $this->_fValLast = $f_val_last; $this->_fValSum = $f_val_sum; $this->_fValAver = $f_val_aver; $this->_fValMin = $f_val_min; $this->_fValMax = $f_val_max; $this->_fValTime = $f_val_time; $this->_fValUser = $f_val_user; $this->_fCreateTime = $f_create_time; $this->_fValAxilary = $f_val_axilary; $this->_fUserApp = $f_user_app; $this->_fColor = $f_color; $this->_fSensorUserName = $f_sensor_user_name; $this->_fUserUnitCode = $f_user_unit_code; $this->_graphType = $graph_type; $this->_minExpected = $min_expected; $this->_maxExpected = $max_expected; $this->_customName = $custom_name; $this->_customDesc = $custom_desc; $this->_customImage = $custom_image; $this->_enableSensor = $enable_sensor; $this->_chillingOursRelated = $chillingOursRelated; $this->_degreesDayRelated = $degreesDayRelated; $this->_windRoseRelated = $windRoseRelated; $this->_priority = $priority; $this->_lastEditionTime = $last_edition_time; $this->_lastUpdateDate = $last_update_date; $this->_lastEditor = $last_editor; $this->_isWindDirectionSensor = preg_match("/wind[\\s| ]+dir/i", $f_name) ? true : false; }