.scripts/symbiota.php
/**
   * Step 5 - Local/Remote Deletion
   *
   * If applicable, delete any local plants that no longer exist remotely.
   */
Step 5 - Local/Remote Deletion
If applicable, delete any local plants that no longer exist remotely.
Step 5 - Local / Remote Deletion If applicable delete any local plants that no longer exist remotely .
public function localDeletion() {
    $this->logger("There are " . count($this->deletions) . " plants deleted remotely.");
    foreach ($this->deletions as $key=>$id) {
      $id = trim($id);
      $this->logger("Deleting id " . $id);
      $prepare = $this->database->prepare("
        DELETE FROM plants
        WHERE       id = :id
        LIMIT       1
      ");
      $prepare->execute(array(":id" => $id));
    }
  }
public function localDeletion ( ) { $ this -> logger ( " There are  " . count ( $ this -> deletions ) . "  plants deleted remotely. " ) ; foreach ( $ this -> deletions as $ key => $ id ) { $ id = trim ( $ id ) ; $ this -> logger ( " Deleting id  " . $ id ) ; $ prepare = $ this -> database -> prepare ( " 
        DELETE FROM plants
        WHERE       id = :id
        LIMIT       1
       " ) ; $ prepare -> execute ( array ( " :id " => $ id ) ) ; } }
Step 5 - Local/Remote Deletion
 If applicable, delete any local plants that no longer exist remotely.
Step 5 - Local / Remote Deletion If applicable delete any local plants that no longer exist remotely .