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')); }
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(); }
public function __destruct() { $this->close(); parent::__destruct(); }