Ejemplo n.º 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'));
 }
Ejemplo n.º 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();
 }
Ejemplo n.º 3
0
 public function __destruct()
 {
     $this->close();
     parent::__destruct();
 }