/** * Copy the slots from another page * @param sfPlopPage $page_ref */ public function copySlotsFrom(sfPlopPage $page_ref) { foreach ($page_ref->getsfPlopSlots() as $slot_ref) { $slot = new sfPlopSlot(); $slot_ref->copyInto($slot, true); $slot->swapPage($this->getId()); } }