Пример #1
0
 public function DeleteRow($nugetEntity)
 {
     $dbInstance = new SmallTxtDb("3.0.0.0", __MYTXTDB_USR__, __MYTXTDBROWS_USR__, __MYTXTDBROWS_USR_TYP__);
     $nameOfCaptain = "";
     $rowNumber = 0;
     foreach ($dbInstance->rows as $row) {
         if ($row['UserId'] == $nugetEntity->UserId) {
             $dbInstance->delete_row($rowNumber);
             break;
         }
         $rowNumber++;
     }
     $dbInstance->save();
 }
Пример #2
0
 public function DeleteRow($nugetEntity)
 {
     $dbInstance = new SmallTxtDb("3.0.0.0", __MYTXTDB_PKG__, __MYTXTDBROWS_PKG__, __MYTXTDBROWS_PKG_TYPES__);
     $dbInstance->BuildItem = 'nugetDbPackageBuilder';
     $nameOfCaptain = "";
     $rowNumber = 0;
     foreach ($dbInstance->rows as $row) {
         if ($row['PackageHash'] == $nugetEntity->PackageHash) {
             $dbInstance->delete_row($rowNumber);
             break;
         }
         $rowNumber++;
     }
     $dbInstance->save();
 }