Author: ygrego Date: 2015-05-15 13:42:44 +0000 (Fri, 15 May 2015) New Revision: 1345 Url: http://forge.nuiton.org/projects/sandbox/repository/revisions/1345 Log: Implementation of the method "iconUri", and addition of the property "_iconUri". Modified: oipf/js/impl/model/ParentalRatingScheme.js Modified: oipf/js/impl/model/ParentalRatingScheme.js =================================================================== --- oipf/js/impl/model/ParentalRatingScheme.js 2015-05-15 13:26:16 UTC (rev 1344) +++ oipf/js/impl/model/ParentalRatingScheme.js 2015-05-15 13:42:44 UTC (rev 1345) @@ -18,9 +18,8 @@ * properties and methods defined below. */ var ParentalRatingScheme = Array.extend({ - init: function() { - + this._iconUri = []; }, /* @@ -45,6 +44,21 @@ } return -1; + }, + + /* + * Description: + * Return the URI of the icon representing the rating at index in the rating + * scheme, or undefined if no item is present at that position. If no icon + * is available, this method SHALL return null. + * + * Argument: + * - index: The string representation of a parental rating value. + * See property name in section 7.9.1.1 for more information about possible + * values. Values are not case sensitive. + */ + iconUri: function(index) { + return this._iconUri[index]; } });
participants (1)
-
ygregoï¼ users.nuiton.org