예제 #1
0
 public function undoAction()
 {
     $this->_helper->viewRenderer->setNoRender();
     $history = Command_ModificationHistory::getInstance($notes);
     // $myNamespace = new Zend_Session_Namespace('history');
     //$history =  unserialize($myNamespace->instance);
     $history->undo();
     //var_dump($history);
 }
예제 #2
0
 public static function getInstance($parent = null)
 {
     $logger = Zend_Registry::get('logger');
     if (self::$instance == null) {
         $myNamespace = new Zend_Session_Namespace('history');
         if (isset($myNamespace->instance)) {
             self::$instance = unserialize($myNamespace->instance);
         } else {
             self::$instance = new Command_ModificationHistory($parent);
         }
     }
     return self::$instance;
 }
예제 #3
0
파일: Abstract.php 프로젝트: sandin/iMemo
 public function __construct($receiver = null, $param = null)
 {
     $this->_receiver = $receiver;
     $this->_param = $param;
     $this->_mHistory = Command_ModificationHistory::getInstance($receiver);
 }