/** * Delete items, leaving only x items in the region. Used for converting multi-item to single item. Undoable. * * @param string $resulting_item_count * @return void * @author Drew McLellan */ public function truncate($resulting_item_count = 1) { $new_rev = $this->create_new_revision(); $Items = new PerchContent_Items(); $Items->truncate_for_region($this->id(), $new_rev, $resulting_item_count); $Perch = Perch::fetch(); $Perch->event('region.truncate', $this); }