protected function backupCustomLocationAliases()
    {
        $table = static::CUSTOM_ALIAS_BACKUP_TABLE;

        if (!$this->tableExists($table)) {
            $this->createCustomLocationUrlAliasBackupTable();
        }

        if (!$this->isTableEmpty($table)) {
            throw new RuntimeException(
                "Table '{$table}' contains data. " .
                "Ensure it's empty or non-existent (it will be automatically created)."
            );
        }

        $this->doBackupCustomLocationAliases();
    }
protected function backupCustomLocationAliases()
    {
        $table = static::CUSTOM_ALIAS_BACKUP_TABLE;

        if (!$this->tableExists($table)) {
            $this->createCustomLocationUrlAliasBackupTable();
        }

        if (!$this->isTableEmpty($table)) {
            throw new RuntimeException(
                "Table '{$table}' contains data. " .
                "Ensure it's empty or non-existent (it will be automatically created)."
            );
        }

        $this->doBackupCustomLocationAliases();
    }
protected function backupCustomLocationAliases ( ) { $ table = static :: CUSTOM_ALIAS_BACKUP_TABLE ; if ( ! $ this -> tableExists ( $ table ) ) { $ this -> createCustomLocationUrlAliasBackupTable ( ) ; } if ( ! $ this -> isTableEmpty ( $ table ) ) { throw new RuntimeException ( "Table '{$table}' contains data. " . "Ensure it's empty or non-existent (it will be automatically created)." ) ; } $ this -> doBackupCustomLocationAliases ( ) ; }
Backups custom Location URL aliases the custom URL alias backup table.
Backups custom Location URL aliases the custom URL alias backup table .