/** * Operation handler: delete. */ public function opDelete(ImceFM $fm) { $items = $fm->getSelection(); if ($this->validateDelete($fm, $items)) { $this->deleteItems($fm, $items); } }
/** * Operation handler: resize. */ public function opResize(ImceFM $fm) { $width = min(10000, (int) $fm->getPost('width')); $height = min(10000, (int) $fm->getPost('height')); $copy = (bool) $fm->getPost('copy'); $items = $fm->getSelection(); if ($this->validateResize($fm, $items, $width, $height, $copy)) { $this->resizeItems($fm, $items, $width, $height, $copy); } }