public function delete($cachenames) { parent::delete($cachenames); if ($this->_allowmem || $this->_isfilecache) { foreach ((array) $cachenames as $cachename) { $this->_allowmem && memory('rm', $cachename); $this->_isfilecache && @unlink(DZF_ROOT . './data/cache/cache_' . $cachename . '.php'); } } }
public function fetch($sid, $ip = false, $uid = false) { if (empty($sid)) { return array(); } $this->checkpk(); $session = parent::fetch($sid); if ($session && $ip !== false && $ip != "{$session['ip1']}.{$session['ip2']}.{$session['ip3']}.{$session['ip4']}") { $session = array(); } if ($session && $uid !== false && $uid != $session['uid']) { $session = array(); } return $session; }
public function __construct() { $this->_table = 'common_plugin'; $this->_pk = 'pluginid'; parent::__construct(); }
public function __construct() { $this->_table = 'common_setting'; $this->_pk = 'skey'; parent::__construct(); }