Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
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
 * Redis Cache Store - Add instance form
-
 
19
 *
-
 
20
 * @package   cachestore_redis
-
 
21
 * @copyright 2013 Adam Durana
-
 
22
 * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
-
 
23
 */
-
 
24
 
-
 
25
defined('MOODLE_INTERNAL') || die();
-
 
26
 
-
 
27
require_once($CFG->dirroot . '/cache/forms.php');
-
 
28
 
-
 
29
/**
17
/**
30
 * Form for adding instance of Redis Cache Store.
18
 * Form for adding instance of Redis Cache Store.
31
 *
19
 *
32
 * @copyright   2013 Adam Durana
20
 * @copyright   2013 Adam Durana
33
 * @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 75... Línea 63...
75
        $compressoroptions = cachestore_redis::config_get_compressor_options();
63
        $compressoroptions = cachestore_redis::config_get_compressor_options();
76
        $form->addElement('select', 'compressor', get_string('usecompressor', 'cachestore_redis'), $compressoroptions);
64
        $form->addElement('select', 'compressor', get_string('usecompressor', 'cachestore_redis'), $compressoroptions);
77
        $form->addHelpButton('compressor', 'usecompressor', 'cachestore_redis');
65
        $form->addHelpButton('compressor', 'usecompressor', 'cachestore_redis');
78
        $form->setDefault('compressor', cachestore_redis::COMPRESSOR_NONE);
66
        $form->setDefault('compressor', cachestore_redis::COMPRESSOR_NONE);
79
        $form->setType('compressor', PARAM_INT);
67
        $form->setType('compressor', PARAM_INT);
-
 
68
 
-
 
69
        $form->addElement('text', 'connectiontimeout', get_string('connectiontimeout', 'cachestore_redis'));
-
 
70
        $form->addHelpButton('connectiontimeout', 'connectiontimeout', 'cachestore_redis');
-
 
71
        $form->setDefault('connectiontimeout', cachestore_redis::CONNECTION_TIMEOUT);
-
 
72
        $form->setType('connectiontimeout', PARAM_INT);
80
    }
73
    }
81
}
74
}