| 1 | ################################################################################ |
1 | ################################################################################ |
| 2 | # WeBWorK mod_perl (c) 2000-2002 WeBWorK Project |
2 | # WeBWorK mod_perl (c) 2000-2002 WeBWorK Project |
| 3 | # $Id$ |
3 | # $Id$ |
| 4 | ################################################################################ |
4 | ################################################################################ |
| 5 | |
5 | |
| 6 | package WeBWorK::PG::EquationCache; |
6 | package WeBWorK::EquationCache; |
| 7 | |
7 | |
| 8 | =head1 NAME |
8 | =head1 NAME |
| 9 | |
9 | |
| 10 | WeBWorK::PG::EquationCache - create and cache images of TeX equations. |
10 | WeBWorK::EquationCache - create and cache images of TeX equations. |
| 11 | |
11 | |
| 12 | =head1 SYNPOSIS |
12 | =head1 SYNPOSIS |
| 13 | |
13 | |
| 14 | my $cache = WeBWorK::PG::EquationCache->new(cacheDB => "/path/to/equationcache.db"); |
14 | my $cache = WeBWorK::EquationCache->new(cacheDB => "/path/to/equationcache.db"); |
| 15 | my $imageName = $cache->lookup('\[3x^2\]'); |
15 | my $imageName = $cache->lookup('\[3x^2\]'); |
| 16 | |
16 | |
| 17 | =head1 DESCRIPTION |
17 | =head1 DESCRIPTION |
| 18 | |
18 | |
| 19 | WeBWorK::PG::EquationCache maintains a list of unique identifiers for TeX |
19 | WeBWorK::PG::EquationCache maintains a list of unique identifiers for TeX |
| … | |
… | |
| 41 | |
41 | |
| 42 | =head1 METHODS |
42 | =head1 METHODS |
| 43 | |
43 | |
| 44 | =over |
44 | =over |
| 45 | |
45 | |
| 46 | =item new |
46 | =item new(%options) |
| 47 | |
47 | |
| 48 | Returns a new EquationCache object. C<%options> must contain the following |
48 | Returns a new EquationCache object. C<%options> must contain the following |
| 49 | entries: |
49 | entries: |
| 50 | |
50 | |
| 51 | cacheDB => path to image cache database file |
51 | cacheDB => path to image cache database file |