You are here

function cmfcClassesCoreStandAlone::saveToMemento in Calendar Systems 7

Same name and namespace in other branches
  1. 8 calendar/lib/classesCore.class.inc.php \cmfcClassesCoreStandAlone::saveToMemento()
  2. 8.2 calendar/lib/classesCore.class.inc.php \cmfcClassesCoreStandAlone::saveToMemento()
  3. 6.3 calendar/lib/classesCore.class.inc.php \cmfcClassesCoreStandAlone::saveToMemento()
  4. 6 calendar/lib/classesCore.class.inc.php \cmfcClassesCoreStandAlone::saveToMemento()
  5. 7.3 calendar/lib/classesCore.class.inc.php \cmfcClassesCoreStandAlone::saveToMemento()
  6. 7.2 calendar/lib/classesCore.class.inc.php \cmfcClassesCoreStandAlone::saveToMemento()

memento design pattern will clone the object for adding undo ability. @todo - should become complete

File

calendar/lib/classesCore.class.inc.php, line 417

Class

cmfcClassesCoreStandAlone
all cmf classes inherit from this class

Code

function saveToMemento() {
  return clone $this;
}