Class Main

Object
   |
   +--Main

class Main

Defined in obj-main.js

Version: 1.0

Author: mpollack


Field Summary
 Chapter chapter
          Current Chapter Object reference
 Course course
          Course Object reference
 GlobalTools globaltools
          Global Tools Object reference
 Glossary glossary
          Glossary Object reference
 string objname
          Name given to identify object on debug
 Page page
          Current Page Object reference
 Section section
          Current Section Object reference
 Theme theme
          Theme Object reference
 Topic topic
          Current Topic Object reference
 
Constructor Summary
Main()
            The highest level object containing all data and methods for accessing data from a course or theme
 
Method Summary
 void getCurrent()
           sends the command to get the current page information
 void gotoPage(<string> p)
           Sends the go to page command passing the supplied LI number
 void nextPage()
           Sends the next page command
 void previousPage()
           Sends the previous page command
 void setCurrentChapterByID(<string> i)
           Sets the chapter from a supplied ID
 void setCurrentPageByID(<string> i)
           Sets the page from a supplied ID and if the page set does not have page text set, the call is made to get that text.
 void setCurrentSectionByID(<string> i)
           Sets the section from a supplied ID
 void setCurrentTopicByID(<string> i)
           Sets the topic from a supplied ID
 void setData(<string> d)
           Sets data on the object using a delimited string sent via the jshook api.
 void toggle()
           Toggles from the current language to the secondary language and refreshes the data and theme

Field Detail

chapter

Chapter chapter

course

Course course

globaltools

GlobalTools globaltools

glossary

Glossary glossary

objname

string objname

page

Page page

section

Section section

theme

Theme theme

topic

Topic topic

Constructor Detail

Main

Main()

Method Detail

getCurrent

void getCurrent()

gotoPage

void gotoPage(<string> p)

nextPage

void nextPage()

previousPage

void previousPage()

setCurrentChapterByID

void setCurrentChapterByID(<string> i)

setCurrentPageByID

void setCurrentPageByID(<string> i)

setCurrentSectionByID

void setCurrentSectionByID(<string> i)

setCurrentTopicByID

void setCurrentTopicByID(<string> i)

setData

void setData(<string> d)

toggle

void toggle()


Documentation generated by JSDoc on Tue Mar 4 12:01:48 2008