Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 220... Línea 220...
220
 * section backup setting to control if section will include
220
 * section backup setting to control if section will include
221
 * user information or no, depends of @restore_users_setting
221
 * user information or no, depends of @restore_users_setting
222
 */
222
 */
223
class restore_section_userinfo_setting extends restore_section_generic_setting {}
223
class restore_section_userinfo_setting extends restore_section_generic_setting {}
Línea -... Línea 224...
-
 
224
 
-
 
225
/**
-
 
226
 * Subsection base class (delegated section).
-
 
227
 */
-
 
228
class restore_subsection_generic_setting extends restore_section_generic_setting {
-
 
229
    /**
-
 
230
     * Class constructor.
-
 
231
     *
-
 
232
     * @param string $name Name of the setting
-
 
233
     * @param string $vtype Type of the setting, for example base_setting::IS_TEXT
-
 
234
     * @param mixed $value Value of the setting
-
 
235
     * @param bool $visibility Is the setting visible in the UI, for example base_setting::VISIBLE
-
 
236
     * @param int $status Status of the setting with regards to the locking, for example base_setting::NOT_LOCKED
-
 
237
     */
-
 
238
    public function __construct($name, $vtype, $value = null, $visibility = self::VISIBLE, $status = self::NOT_LOCKED) {
-
 
239
        parent::__construct($name, $vtype, $value, $visibility, $status);
-
 
240
        $this->level = self::SUBSECTION_LEVEL;
-
 
241
    }
-
 
242
}
-
 
243
 
-
 
244
/**
-
 
245
 * Setting to define if one subsection is included or no.
-
 
246
 *
-
 
247
 * Activities _included settings depend of them if available.
-
 
248
 */
-
 
249
class restore_subsection_included_setting extends restore_subsection_generic_setting {
-
 
250
}
-
 
251
 
-
 
252
/**
-
 
253
 * Subsection backup setting to control if section will include
-
 
254
 * user information or no, depends of @restore_users_setting.
-
 
255
 */
-
 
256
class restore_subsection_userinfo_setting extends restore_subsection_generic_setting {
Línea 224... Línea 257...
224
 
257
}
Línea 225... Línea 258...
225
 
258
 
226
// Activity backup settings
259
// Activity backup settings
Línea 242... Línea 275...
242
 * user information or no, depends of @restore_users_setting
275
 * user information or no, depends of @restore_users_setting
243
 */
276
 */
244
class restore_activity_userinfo_setting extends restore_activity_generic_setting {}
277
class restore_activity_userinfo_setting extends restore_activity_generic_setting {}
Línea 245... Línea 278...
245
 
278
 
-
 
279
/**
-
 
280
 * Generic subactivity setting to pass various settings between tasks and steps
-
 
281
 */
-
 
282
class restore_subactivity_generic_setting extends restore_activity_generic_setting {
-
 
283
    /**
-
 
284
     * Class constructor.
-
 
285
     *
-
 
286
     * @param string $name Name of the setting
-
 
287
     * @param string $vtype Type of the setting, for example base_setting::IS_TEXT
-
 
288
     * @param mixed $value Value of the setting
-
 
289
     * @param bool $visibility Is the setting visible in the UI, for example base_setting::VISIBLE
-
 
290
     * @param int $status Status of the setting with regards to the locking, for example base_setting::NOT_LOCKED
-
 
291
     */
-
 
292
    public function __construct($name, $vtype, $value = null, $visibility = self::VISIBLE, $status = self::NOT_LOCKED) {
-
 
293
        parent::__construct($name, $vtype, $value, $visibility, $status);
-
 
294
        $this->level = self::SUBACTIVITY_LEVEL;
-
 
295
    }
-
 
296
}
-
 
297
 
-
 
298
/**
-
 
299
 * Subactivity backup setting to control if activity will be included or no.
-
 
300
 *
-
 
301
 * Depends of restore_activities_setting and optionally parent section included setting.
-
 
302
 */
-
 
303
class restore_subactivity_included_setting extends restore_subactivity_generic_setting {
-
 
304
}
-
 
305
 
-
 
306
/**
-
 
307
 * Subactivity backup setting to control if activity will include user information.
-
 
308
 *
-
 
309
 * Depends of restore_users_setting.
-
 
310
 */
-
 
311
class restore_subactivity_userinfo_setting extends restore_subactivity_generic_setting {
-
 
312
}
-
 
313
 
246
/**
314
/**
247
 * root setting to control if restore will create content bank content or no
315
 * root setting to control if restore will create content bank content or no
248
 */
316
 */
249
class restore_contentbankcontent_setting extends restore_generic_setting {
317
class restore_contentbankcontent_setting extends restore_generic_setting {