Definition at line 5 of file Meta.php.
Definition at line 25 of file Meta.php.
29 return parent::__get($key);
Definition at line 32 of file Meta.php.
36 parent::__set(
"entityId", $value->id);
37 parent::__set(
"entityType", get_class($value));
40 else if ($key ==
"entityId" || $key ==
"entityType")
41 throw new \Exception(
"Cannot access private field {$key}");
42 return parent::__set($key, $value);
Definition at line 9 of file Meta.php.
12 $result = self::$dbo->exec(
"CREATE TABLE IF NOT EXISTS `{$dbPrefix}meta` (
13 `entity_id` INTEGER(11) UNSIGNED NOT NULL,
14 `entityType` VARCHAR(32) NOT NULL,
15 `lang` VARCHAR(8) NULL,
16 `key` VARCHAR(64) NOT NULL,
18 UNIQUE(`entity_id`, `entityType`, `lang`)
20 if ($result ===
false)
21 throw new \Exception(get_class().
": ".self::$dbo->errorInfo()[2]);
The documentation for this class was generated from the following file: