|
FusionDirectory
|
This class contains all the function needed to handle the snapshot functionality. More...
Public Member Functions | |
| __construct () | |
| Create handler. | |
| enabled () | |
| Check if the snapshot is enable. More... | |
| hasDeletedSnapshots ($bases) | |
| Check if there are deleted snapshots. | |
| initSnapshotCache ($base) | |
| Cache Snapshot information for all objects in $base. | |
| hasSnapshots ($dn) | |
| Check if the DN has snapshots. More... | |
| getSnapshots ($dn, $raw=FALSE) | |
| Get snapshots. More... | |
| createSnapshot ($dn, string $description, string $objectType, string $snapshotSource='FD') | |
| Create a snapshot of the current object. More... | |
| removeSnapshot ($dn) | |
| Remove a snapshot. More... | |
| getAvailableSnapsShots ($dn) | |
| Get the available snapshots. More... | |
| getAllDeletedSnapshots ($base_of_object) | |
| Get all deleted snapshots. More... | |
| restoreSnapshot ($dn) | |
| Restore selected snapshot. More... | |
This class contains all the function needed to handle the snapshot functionality.
Definition at line 32 of file class_SnapshotHandler.inc.
| createSnapshot | ( | $dn, | |
| string | $description, | ||
| string | $objectType, | ||
| string | $snapshotSource = 'FD' |
||
| ) |
Create a snapshot of the current object.
| string | $dn | The DN |
| string | $description | Snapshot description |
| string | $objectType | Type of snapshotted object |
| string | $snapshotSource | source of the data. |
Definition at line 203 of file class_SnapshotHandler.inc.
References logging\debug(), and enabled().
| enabled | ( | ) |
Check if the snapshot is enable.
Definition at line 78 of file class_SnapshotHandler.inc.
Referenced by __construct(), createSnapshot(), getAllDeletedSnapshots(), getAvailableSnapsShots(), getSnapshots(), initSnapshotCache(), and restoreSnapshot().
| getAllDeletedSnapshots | ( | $base_of_object | ) |
Get all deleted snapshots.
| string | $base_of_object |
Definition at line 404 of file class_SnapshotHandler.inc.
References enabled().
Referenced by hasDeletedSnapshots().
| getAvailableSnapsShots | ( | $dn | ) |
Get the available snapshots.
Definition at line 366 of file class_SnapshotHandler.inc.
References enabled().
| getSnapshots | ( | $dn, | |
$raw = FALSE |
|||
| ) |
Get snapshots.
| string | $dn | The DN |
| string | $raw | FALSE |
Definition at line 148 of file class_SnapshotHandler.inc.
References enabled().
| hasSnapshots | ( | $dn | ) |
Check if the DN has snapshots.
Definition at line 136 of file class_SnapshotHandler.inc.
| removeSnapshot | ( | $dn | ) |
Remove a snapshot.
| string | $dn | The DN |
Definition at line 348 of file class_SnapshotHandler.inc.
| restoreSnapshot | ( | $dn | ) |
Restore selected snapshot.
| string | $dn | The DN |
Definition at line 451 of file class_SnapshotHandler.inc.
References logging\debug(), and enabled().
1.8.13