Exemplo n.º 1
0
 /**
  * Handle attachment deletion.
  *
  * @param array $indices	Attachment indices
  */
 protected function handle_delete(array $indices)
 {
     $valid_indices = $this->operator->get_fixed_indices();
     $ids = array();
     foreach ($indices as $index => $null) {
         if (isset($valid_indices[$index])) {
             $ids[] = $valid_indices[$index];
         }
     }
     if ($ids) {
         $this->operator->delete($ids);
         $this->deleted = array_merge($this->deleted, $ids);
     }
 }