예제 #1
0
 protected function init()
 {
     parent::init();
     $this->behavior(new StorageAction(StorageAction::READ), array(&$this, 'read'));
     $this->behavior(new StorageAction(StorageAction::WRITE), array(&$this, 'write'));
     $this->behavior(new StorageAction(StorageAction::DELETE), array(&$this, 'delete'));
 }
예제 #2
0
 public function __construct($config = null)
 {
     parent::__construct();
     if (is_array($config)) {
         $this->config($config);
     }
     if (!$this->config('storage')) {
         $this->config('storage', self::FILE);
     }
     self::$_messages = array();
 }
예제 #3
0
 public function __destruct()
 {
     $this->close();
     parent::__destruct();
 }