28 throw new \Dcp\Exception(
"SharedDocuments limit must be a integer");
37 public static function &
get($key)
44 if ($key ===
'' or $key === null or (!is_scalar($key))) {
47 if ($gdocs && array_key_exists($key, $gdocs)) {
60 public static function set($key, &$item,
$force =
false)
66 if ($key ===
'' or $key === null or (!is_scalar($key))) {
69 if (count($gdocs) < self::$limit ||
$force ===
true) {
70 $gdocs[$key] = & $item;
81 public static function remove($key)
87 if ($key ===
'' or $key === null or (!is_scalar($key))) {
110 if (!isset($gdocs)) {
113 return array_keys($gdocs);
123 if (!isset($gdocs)) {
126 return array_key_exists($key, $gdocs);
137 if (!isset($gdocs)) {
140 if ($key ===
'' or $key === null or (!is_scalar($key))) {
143 return (isset($gdocs[$key]) && $gdocs[$key] === $item);
static isShared($key, &$item)
static set($key, &$item, $force=false)