| Línea 13... |
Línea 13... |
| 13 |
//
|
13 |
//
|
| 14 |
// You should have received a copy of the GNU General Public License
|
14 |
// You should have received a copy of the GNU General Public License
|
| 15 |
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
15 |
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
| Línea 16... |
Línea 16... |
| 16 |
|
16 |
|
| 17 |
/**
|
- |
|
| 18 |
* The library file for the file cache store.
|
- |
|
| 19 |
*
|
- |
|
| 20 |
* This file is part of the file cache store, it contains the API for interacting with an instance of the store.
|
- |
|
| 21 |
* This is used as a default cache store within the Cache API. It should never be deleted.
|
- |
|
| 22 |
*
|
- |
|
| 23 |
* @package cachestore_file
|
- |
|
| 24 |
* @category cache
|
- |
|
| 25 |
* @copyright 2012 Sam Hemelryk
|
- |
|
| 26 |
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
- |
|
| 27 |
*/
|
- |
|
| 28 |
|
- |
|
| 29 |
require_once($CFG->dirroot.'/cache/forms.php');
|
- |
|
| 30 |
|
- |
|
| 31 |
/**
|
17 |
/**
|
| 32 |
* Form for adding a file instance.
|
18 |
* Form for adding a file instance.
|
| 33 |
*
|
19 |
*
|
| 34 |
* @copyright 2012 Sam Hemelryk
|
20 |
* @copyright 2012 Sam Hemelryk
|
| 35 |
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
21 |
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
| Línea 65... |
Línea 51... |
| 65 |
|
51 |
|
| 66 |
$form->addElement('text', 'lockwait', get_string('lockwait', 'cachestore_file'));
|
52 |
$form->addElement('text', 'lockwait', get_string('lockwait', 'cachestore_file'));
|
| 67 |
$form->setDefault('lockwait', 60);
|
53 |
$form->setDefault('lockwait', 60);
|
| 68 |
$form->setType('lockwait', PARAM_INT);
|
54 |
$form->setType('lockwait', PARAM_INT);
|
| - |
|
55 |
$form->addHelpButton('lockwait', 'lockwait', 'cachestore_file');
|
| - |
|
56 |
|
| - |
|
57 |
$serializeroptions = cachestore_file::config_get_serializer_options();
|
| - |
|
58 |
$form->addElement('select', 'serializer', get_string('useserializer', 'cachestore_file'), $serializeroptions);
|
| - |
|
59 |
$form->setDefault('serializer', cachestore_file::SERIALIZER_PHP);
|
| - |
|
60 |
$form->setType('serializer', PARAM_ALPHA);
|
| 69 |
$form->addHelpButton('lockwait', 'lockwait', 'cachestore_file');
|
61 |
$form->addHelpButton('serializer', 'useserializer', 'cachestore_file');
|
| 70 |
}
|
- |
|
| 71 |
}
|
62 |
}
|
| - |
|
63 |
}
|