state ) { $fields['status'] = $this->state; } if ( '' !== $this->remote_id ) { $fields['remote_id'] = $this->remote_id; } if ( '' !== $this->remote_status ) { $fields['remote_status'] = $this->remote_status; } if ( $this->remote_category > 0 ) { $fields['remote_category'] = $this->remote_category; } if ( '' !== $this->url ) { $fields['remote_url'] = $this->url; } if ( '' !== $this->valid_to ) { $fields['valid_to'] = $this->valid_to; } return $fields; } }