CleanTags¶
-
class
OC\Repair\
CleanTags
¶ - Class RepairConfig
Source: lib/private/Repair/CleanTags.php#41 Implements: OCP\Migration\IRepairStep
Properties¶
-
protected static property
OC\Repair\CleanTags::$
connection
¶ Source: lib/private/Repair/CleanTags.php#44 Type: \OCP\IDBConnection
-
protected static property
OC\Repair\CleanTags::$
userManager
¶ Source: lib/private/Repair/CleanTags.php#47 Type: \OCP\IUserManager
-
protected static property
OC\Repair\CleanTags::$
deletedTags
¶ Source: lib/private/Repair/CleanTags.php#49
Methods¶
-
public
OC\Repair\CleanTags::
__construct
($connection, $userManager)¶ Source: Parameters: - $connection (
OCP\IDBConnection
) - $userManager (
OCP\IUserManager
)
- $connection (
-
public
OC\Repair\CleanTags::
getName
()¶ Source: lib/private/Repair/CleanTags.php#63 Returns: string
-
public
OC\Repair\CleanTags::
run
($output)¶ - Updates the configuration after running an update
Source: lib/private/Repair/CleanTags.php#70
-
protected
OC\Repair\CleanTags::
deleteOrphanTags
($output)¶ - Delete tags for deleted users
Source: lib/private/Repair/CleanTags.php#80
-
protected
OC\Repair\CleanTags::
checkTags
($offset)¶ Source: lib/private/Repair/CleanTags.php#89
-
protected
OC\Repair\CleanTags::
deleteOrphanFileEntries
($output)¶ - Delete tag entries for deleted files
Source: lib/private/Repair/CleanTags.php#126
-
protected
OC\Repair\CleanTags::
deleteOrphanTagEntries
($output)¶ - Delete tag entries for deleted tags
Source: lib/private/Repair/CleanTags.php#138
-
protected
OC\Repair\CleanTags::
deleteOrphanCategoryEntries
($output)¶ - Delete tags that have no entries
Source: lib/private/Repair/CleanTags.php#150
-
protected
OC\Repair\CleanTags::
deleteOrphanEntries
($output, $repairInfo, $deleteTable, $deleteId, $sourceTable, $sourceId, $sourceNullColumn)¶ - Deletes all entries from $deleteTable that do not have a matching entry in $sourceTableA query joins $deleteTable.$deleteId = $sourceTable.$sourceId and checkswhether $sourceNullColumn is null. If it is null, the entry in $deleteTableis being deleted.
Source: Parameters: - $repairInfo (string)
- $deleteTable (string)
- $deleteId (string)
- $sourceTable (string)
- $sourceId (string)
- $sourceNullColumn (string) If this column is null in the source table,
the entry is deleted in the $deleteTable