Definition at line 28 of file main.php.
Public Member Functions | |
init () | |
check_book_id ($book_id) | |
Checks whether the given book_id exists or not. | |
on_book ($event_args) | |
on_approve ($event_args) | |
on_search ($event_args) | |
on_docbook ($event_args) | |
on_xref ($event_args) | |
this event is called by xref.php | |
onRender () | |
get_langs ($book_id) | |
Returns an array of languages (en,fr,it,al) in which the book is available. | |
get_book_title ($book_id, $lng) |
main::init | ( | ) |
Definition at line 30 of file main.php.
References $book_id, $lng, check_book_id(), get_book_title(), and get_langs().
main::check_book_id | ( | $ | book_id | ) |
main::on_book | ( | $ | event_args | ) |
Definition at line 72 of file main.php.
References $book_id, $event_args, $lng, check_book_id(), get_book_title(), and get_langs().
main::on_approve | ( | $ | event_args | ) |
Definition at line 100 of file main.php.
References $book_id, $event_args, $lng, get_book_title(), and get_langs().
main::on_search | ( | $ | event_args | ) |
main::on_docbook | ( | $ | event_args | ) |
Definition at line 138 of file main.php.
References $book_id, $event_args, $lng, get_book_title(), get_langs(), and T_().
main::on_xref | ( | $ | event_args | ) |
this event is called by xref.php
Definition at line 183 of file main.php.
References $book_id, $event_args, $lng, $mode, $node_id, get_book_title(), get_langs(), shell(), and T_().
main::get_langs | ( | $ | book_id | ) |
Returns an array of languages (en,fr,it,al) in which the book is available.
Definition at line 240 of file main.php.
References shell().
Referenced by init(), on_approve(), on_book(), on_docbook(), and on_xref().
main::get_book_title | ( | $ | book_id, | |
$ | lng | |||
) |
Definition at line 251 of file main.php.
References $book_list, and shell().
Referenced by init(), on_approve(), on_book(), on_docbook(), docbook::on_set_lng(), and on_xref().