phpBB3


acm\acm_memory
includes/acm/acm_memory.php at line 23

Class acm_memory

acm_memory
All Known Subclasses:
acm

public class acm_memory

ACM Abstract Memory Class


Field Summary
mixed

$cache_dir

mixed

$is_modified

mixed

$key_prefix

mixed

$sql_row_pointer

mixed

$sql_rowset

mixed

$vars

Constructor Summary
void

__construct()

Set cache path

Method Summary
void

load()

Load global cache

void

unload()

Unload cache object

void

save()

Save modified objects

void

tidy()

Tidy cache

void

get(mixed var_name)

Get saved cache object

void

put(mixed var_name, mixed var, int ttl)

Put data into cache

void

purge()

Purge cache data

void

destroy(mixed var_name, str table)

Destroy cache data

void

sql_load(mixed query)

Load cached sql query

void

sql_save(mixed query, mixed query_result, mixed ttl)

Save sql query

void

sql_exists(mixed query_id)

Ceck if a given sql query exist in cache

void

sql_fetchrow(mixed query_id)

Fetch row from cache (database)

void

sql_fetchfield(mixed query_id, mixed field)

Fetch a field from the current row of a cached database result (database)

void

sql_rowseek(mixed rownum, mixed query_id)

Seek a specific row in an a cached database result (database)

void

sql_freeresult(mixed query_id)

Free memory used for a cached database result (database)

void

remove_file(mixed filename, bool check)

Removes/unlinks file

Field Detail

includes/acm/acm_memory.php at line 32

cache_dir

public mixed $cache_dir = ''

includes/acm/acm_memory.php at line 28

is_modified

public mixed $is_modified = false

includes/acm/acm_memory.php at line 25

key_prefix

public mixed $key_prefix = 2592000

includes/acm/acm_memory.php at line 31

sql_row_pointer

public mixed $sql_row_pointer = array()

includes/acm/acm_memory.php at line 30

sql_rowset

public mixed $sql_rowset = array()

includes/acm/acm_memory.php at line 27

vars

public mixed $vars = array()

Constructor Detail

includes/acm/acm_memory.php at line 37

__construct

public void __construct()

Set cache path


Method Detail

includes/acm/acm_memory.php at line 62

load

public void load()

Load global cache


includes/acm/acm_memory.php at line 78

unload

public void unload()

Unload cache object


includes/acm/acm_memory.php at line 93

save

public void save()

Save modified objects


includes/acm/acm_memory.php at line 108

tidy

public void tidy()

Tidy cache


includes/acm/acm_memory.php at line 118

get

public void get(mixed var_name)

Get saved cache object


includes/acm/acm_memory.php at line 138

put

public void put(mixed var_name, mixed var, int ttl)

Put data into cache


includes/acm/acm_memory.php at line 154

purge

public void purge()

Purge cache data


includes/acm/acm_memory.php at line 190

destroy

public void destroy(mixed var_name, str table)

Destroy cache data


includes/acm/acm_memory.php at line 264

sql_load

public void sql_load(mixed query)

Load cached sql query


includes/acm/acm_memory.php at line 284

sql_save

public void sql_save(mixed query, mixed query_result, mixed ttl)

Save sql query


includes/acm/acm_memory.php at line 344

sql_exists

public void sql_exists(mixed query_id)

Ceck if a given sql query exist in cache


includes/acm/acm_memory.php at line 352

sql_fetchrow

public void sql_fetchrow(mixed query_id)

Fetch row from cache (database)


includes/acm/acm_memory.php at line 365

sql_fetchfield

public void sql_fetchfield(mixed query_id, mixed field)

Fetch a field from the current row of a cached database result (database)


includes/acm/acm_memory.php at line 378

sql_rowseek

public void sql_rowseek(mixed rownum, mixed query_id)

Seek a specific row in an a cached database result (database)


includes/acm/acm_memory.php at line 392

sql_freeresult

public void sql_freeresult(mixed query_id)

Free memory used for a cached database result (database)


includes/acm/acm_memory.php at line 408

remove_file

public void remove_file(mixed filename, bool check)

Removes/unlinks file


phpBB3