-
Notifications
You must be signed in to change notification settings - Fork 174
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[instrument] insert JSON intrument fix #7155
[instrument] insert JSON intrument fix #7155
Conversation
@@ -35,7 +35,7 @@ abstract class NDB_BVL_Instrument extends NDB_Page | |||
* JSON format from the "Data" column of the flag table, or | |||
* from the traditional SQL tables. | |||
*/ | |||
protected $jsonData = false; | |||
public $jsonData = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why was this made public ? you can reach the value from outside using usesJSONdata()
or a soemthing like that. I dont think this variable should be modifiable by external classes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ridz1208 Fixed! I missed this accessor. I agree that it's safer to rely on it. Should it be the same for other properties like table, which is public (despite stating it is private in the class doc)?
70de97f
to
5f32b95
Compare
5f32b95
to
76eef7d
Compare
Fixes minor warnings and the logic to populate an instrument with json_data === true.