System_Sharedmemory
[ class tree: System_Sharedmemory ] [ index: System_Sharedmemory ] [ all elements ]

Class: System_SharedMemory_Sqlite

Source Location: /System_SharedMemory-0.9.0RC1/SharedMemory/Sqlite.php

Class Overview

System_SharedMemory_Common
   |
   --System_SharedMemory_Sqlite

System_SharedMemory_Common is the base class from which each database driver class extends


Author(s):

Version:

  • CVS: $Id:$

Copyright:

  • 2005 Evgeny Stepanischev

Methods


Inherited Variables

Inherited Methods

Class: System_SharedMemory_Common

System_SharedMemory_Common::engineName()
returns name of current engine
System_SharedMemory_Common::isConnected()
returns true if plugin was successfully connected to backend
System_SharedMemory_Common::_default()
fill non-set properties by def values

Class Details

[line 44]
System_SharedMemory_Common is the base class from which each database driver class extends
  • Author: Evgeny Stepanischev <bolk@lixil.ru>
  • Version: CVS: $Id:$
  • Copyright: 2005 Evgeny Stepanischev


[ Top ]


Method Detail

System_SharedMemory_Sqlite (Constructor)   [line 86]

System_SharedMemory_Sqlite System_SharedMemory_Sqlite( array $options)

Constructor. Init all variables.

SQLite table must be created: CREATE sharedmemory(var text PRIMARY KEY, value TEXT) It's very important!

  • Access: public

Parameters:

array   $options   — 

[ Top ]

get   [line 127]

mixed get( string $name)

returns value of variable in shared mem
  • Return: value of the variable
  • Access: public

Parameters:

string   $name   —  name of variable

[ Top ]

isConnected   [line 112]

bool isConnected( )

returns true if plugin was successfully connected to backend
  • Return: true if connected
  • Access: public

Overrides System_SharedMemory_Common::isConnected() (returns true if plugin was successfully connected to backend)
[ Top ]

rm   [line 177]

bool rm( string $name)

remove variable from memory
  • Return: true on success
  • Access: public

Parameters:

string   $name   —  name of the variable

[ Top ]

set   [line 154]

bool set( string $name, string $value)

set value of variable in shared mem
  • Return: true on success
  • Access: public

Parameters:

string   $name   —  name of the variable
string   $value   —  value of the variable

[ Top ]


Documentation generated on Mon, 11 Mar 2019 14:32:43 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.