Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 90... Línea 90...
90
    public function supports_auto_release() {
90
    public function supports_auto_release() {
91
        return true;
91
        return true;
92
    }
92
    }
Línea 93... Línea 93...
93
 
93
 
94
    /**
-
 
95
     * @deprecated since Moodle 3.10.
-
 
96
     */
-
 
97
    public function supports_recursion() {
-
 
98
        throw new coding_exception('The function supports_recursion() has been removed, please do not use it anymore.');
-
 
99
    }
-
 
100
 
-
 
101
    /**
94
    /**
102
     * Create and get a lock
95
     * Create and get a lock
103
     * @param string $resource - The identifier for the lock. Should use frankenstyle prefix.
96
     * @param string $resource - The identifier for the lock. Should use frankenstyle prefix.
104
     * @param int $timeout - The number of seconds to wait for a lock before giving up.
97
     * @param int $timeout - The number of seconds to wait for a lock before giving up.
105
     * @param int $maxlifetime - Unused by this lock type.
98
     * @param int $maxlifetime - Unused by this lock type.
Línea 148... Línea 141...
148
        }
141
        }
149
        return $result;
142
        return $result;
150
    }
143
    }
Línea 151... Línea 144...
151
 
144
 
152
    /**
-
 
153
     * @deprecated since Moodle 3.10.
-
 
154
     */
-
 
155
    public function extend_lock() {
-
 
156
        throw new coding_exception('The function extend_lock() has been removed, please do not use it anymore.');
-
 
157
    }
-
 
158
 
-
 
159
    /**
145
    /**
160
     * Auto release any open locks on shutdown.
146
     * Auto release any open locks on shutdown.
161
     * This is required, because we may be using persistent DB connections.
147
     * This is required, because we may be using persistent DB connections.
162
     */
148
     */
163
    public function auto_release() {
149
    public function auto_release() {