Recommendations for function/method arguments

Below could be found the list of general recommendations when defining function/method ("function" by the text) arguments.

  • Mixed optional argument should be defined as having a default value NULL
  • String optional arguments should have a default value equal to an empty string

Note: please be careful when passing arguments of type Mixed to the methods of iaDb class, since if the NULL value passed, the iaDb tries to set the NULL value to a column. In case if your DB table scheme does not allow NULL values for this column, the DB exception will be raised.

Updated by Batyr Mackenov over 7 years ago ยท 1 revisions