1<?php
2/**
3 * Federated Login for DokuWiki - remove a provider class
4 *
5 * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
6 * @link       http://www.dokuwiki.org/plugin:fedauth
7 * @author     Aoi Karasu <aoikarasu@gmail.com>
8 */
9
10/**
11 * Authorization providers management class responsible
12 * for removing a provider item from the local configuration.
13 *
14 * @author     Aoi Karasu <aoikarasu@gmail.com>
15 */
16class fa_remove extends fa_manage {
17
18    /**
19     * Creates the class instance bound with the admin plugin and an authorization provider.
20     *
21     * @param objref $manager object reference to the admin plugin
22     * @param string $cmd name of the command to handle
23     * @param string $provid (optional) an authorization provider id
24     */
25    function __construct(&$manager, $cmd, $provid='') {
26        parent::__construct(&$manager, $cmd, $provid);
27    }
28
29    /**
30     * Performs removal of the provider item from the local configuration.
31     *
32     * @return string the processing result message
33     */
34    function process_remove() {
35        return '';
36    }
37
38    /**
39     * Handles AJAX call to return the result in JSON format.
40     *
41     * @return bool true on success
42     */
43    function handle_ajax_remove() {
44        print '{"success":' . (int)$this->success . '}';
45        return true;
46    }
47
48} /* fa_remove */
49
50/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
51