HTML and CSS Reference
In-Depth Information
this.getPosterframe = function(){
return _posterframe;
}
/**
* Sets the posterframe URN/Path
* @param {String} posterframe
*/
this.setPosterframe = function(posterframe){
_posterframe = posterframe;
}
/**
* Gets the synopsis as a string with no HTML formatting
* @return {String}
*/
this.getSynopsis = function(){
return _synopsis;
}
/**
* Sets the synopsis, a string with no HTML must be passed
* @param {String} synopsis
*/
this.setSynopsis = function(synopsis){
_synopsis = synopsis;
}
/**
* Gets all videos associated with the movie
* @return {Array}
*/
this.getVideos = function(){
return _videos;
}
/**
* Sets all videos associated with the movie
* @param {Array}
*/
this.setVideos = function(videos){
_videos.length = 0;
/**
* Rather than setting the videos all in one go,
* you use the addVideo method, which can handle
* any validation for each video before it's
* added to the object
*/
Search WWH ::




Custom Search