Sha256: 932d9ebdf1da1a3449e607744e6aac9a6c5d9686bdabac31e3b3b13981ad84e5

Contents?: true

Size: 1.81 KB

Versions: 31

Compression:

Stored size: 1.81 KB

Contents

pageflow.EntryData = pageflow.Object.extend({
  getThemingOption: function(name) {
    throw 'Not implemented';
  },

  getPageConfiguration: function(permaId) {
    throw 'Not implemented';
  },

  getPagePosition: function(permaId) {
    throw 'Not implemented';
  },

  getChapterConfiguration: function(id) {
    throw 'Not implemented';
  },

  getStorylineConfiguration: function(id) {
    throw 'Not implemented';
  },

  getChapterIdByPagePermaId: function(permaId) {
    throw 'Not implemented';
  },

  getStorylineIdByChapterId: function(permaId) {
    throw 'Not implemented';
  },

  getChapterPagePermaIds: function(id) {
    throw 'Not implemented';
  },

  getParentPagePermaIdByPagePermaId: function(permaId) {
    var storylineId = this.getStorylineIdByPagePermaId(permaId);
    return this.getParentPagePermaId(storylineId);
  },

  getStorylineIdByPagePermaId: function(permaId) {
    var chapterId = this.getChapterIdByPagePermaId(permaId);
    return this.getStorylineIdByChapterId(chapterId);
  },

  getParentStorylineId: function(storylineId) {
    var parentPagePermaId = this.getParentPagePermaId(storylineId);
    return parentPagePermaId && this.getStorylineIdByPagePermaId(parentPagePermaId);
  },

  getParentChapterId: function(chapterId) {
    var storylineId = this.getStorylineIdByChapterId(chapterId);
    var pagePermaId = this.getParentPagePermaId(storylineId);
    return pagePermaId && this.getChapterIdByPagePermaId(pagePermaId);
  },

  getParentPagePermaId: function(storylineId) {
    return this.getStorylineConfiguration(storylineId).parent_page_perma_id;
  },

  getStorylineLevel: function(storylineId) {
    var parentStorylineId = this.getParentStorylineId(storylineId);

    if (parentStorylineId) {
      return this.getStorylineLevel(parentStorylineId) + 1;
    }
    else {
      return 0;
    }
  }
});

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
pageflow-12.6.0 app/assets/javascripts/pageflow/entry_data.js
pageflow-12.5.0 app/assets/javascripts/pageflow/entry_data.js
pageflow-12.4.1 app/assets/javascripts/pageflow/entry_data.js
pageflow-12.4.0 app/assets/javascripts/pageflow/entry_data.js
pageflow-12.3.0 app/assets/javascripts/pageflow/entry_data.js
pageflow-13.0.0.beta6 app/assets/javascripts/pageflow/entry_data.js
pageflow-13.0.0.beta5 app/assets/javascripts/pageflow/entry_data.js
pageflow-13.0.0.beta4 app/assets/javascripts/pageflow/entry_data.js
pageflow-13.0.0.beta3 app/assets/javascripts/pageflow/entry_data.js
pageflow-13.0.0.beta2 app/assets/javascripts/pageflow/entry_data.js
pageflow-13.0.0.beta1 app/assets/javascripts/pageflow/entry_data.js
pageflow-12.2.0 app/assets/javascripts/pageflow/entry_data.js
pageflow-12.1.0 app/assets/javascripts/pageflow/entry_data.js
pageflow-12.0.4 app/assets/javascripts/pageflow/entry_data.js
pageflow-12.0.3 app/assets/javascripts/pageflow/entry_data.js
pageflow-12.0.2 app/assets/javascripts/pageflow/entry_data.js
pageflow-12.0.1 app/assets/javascripts/pageflow/entry_data.js
pageflow-12.0.0 app/assets/javascripts/pageflow/entry_data.js
pageflow-12.0.0.rc7 app/assets/javascripts/pageflow/entry_data.js
pageflow-12.0.0.rc6 app/assets/javascripts/pageflow/entry_data.js