class_name = $class_name; parent :: __construct(); } function perform() { $ids = $this->request->get('ids'); if(!is_array($ids) || !count($ids)) $this->closePopup(); foreach($ids as $id) { $item = new $this->class_name((int)$id); $item->setIsPublished(true); $item->save(); } $this->closePopup(); } } ?>