original_string: public function delete($table, array $conditions)
      {
          $table = $this->getTable($table);
          $where = $this->buildSqlObject($conditions, ' AND ');
  
          $query = "DELETE FROM $table WHERE " . $where;
          return $this->executeUpdate($query, array_values($conditions));
      }
code: public function delete($table, array $conditions)
      {
          $table = $this->getTable($table);
          $where = $this->buildSqlObject($conditions, ' AND ');
  
          $query = "DELETE FROM $table WHERE " . $where;
          return $this->executeUpdate($query, array_values($conditions));
      }
code_tokens: public function delete ( $ table , array $ conditions ) { $ table = $ this -> getTable ( $ table ) ; $ where = $ this -> buildSqlObject ( $ conditions , ' AND ' ) ; $ query = "DELETE FROM $table WHERE " . $ where ; return $ this -> executeUpdate ( $ query , array_values ( $ conditions ) ) ; }
docstring: Executes a DELETE query
  
  @param string $table The name of table
  @param array $conditions The conditions to search records
  @return int The number of affected rows
docstring_tokens: Executes a DELETE query