My favorites
▼
|
Sign in
skjb-zf
Steven's Zend Framework Stuff
Project Home
Downloads
Wiki
Issues
Source
Checkout
Browse
Changes
Source path:
svn
/
trunk
/
library
/
Skjb
/
Db
/
Table
/
Row
/
Registry.php
r67
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
class Skjb_Db_Table_Row_Registry
{
private static $_data = array();
public static function setItem($table, $id, $value)
{
if (!isset(self::$_data[$table])) {
self::$_data[$table] = array();
}
self::$_data[$table][$id] = $value;
}
public static function getItem($table, $id)
{
if (!isset(self::$_data[$table])) {
return false;
}
if (!isset(self::$_data[$table][$id])) {
return false;
}
return self::$_data[$table][$id];
}
public static function clear($table = null)
{
if (null !== $table) {
unset(self::$_data[$table]);
return;
}
self::$_data = array();
}
}
Show details
Hide details
File info
Size: 839 bytes, 38 lines
View raw file
Powered by
Google Project Hosting