1.

When does the defineContentAttribute() method return a false?(a) Data stored in different table(b) Data stored in its own table(c) Data is not stored at all(d) Data is not obtainedI had been asked this question in exam.This is a very interesting question from Crafting the Public API topic in portion Parsing, Benchmarking and Logging of JavaScript

Answer»

The CORRECT answer is (B) Data stored in its own table

The best explanation: If your fieldtype is storing data in its own table, and doesn’t have any use for a column within the MAIN content table, you may also set defineContentAttribute() to return false. By DEFAULT, BaseFieldType sets the column to VARCHAR(255), but you can override that with defineContentAttribute().



Discussion

No Comment Found

Related InterviewSolutions