Example #1
0
    {
        if ($this->array === NULL) {
            $this->array = $this->toArray();
        }
        if ($name === NULL) {
            $this->array[] = $value;
        } else {
            $this->array[$name] = $value;
        }
    }
    public function offsetGet($name)
    {
        return $this->array[$name];
    }
    public function offsetExists($name)
    {
        return \array_key_exists($name, $this->array);
    }
    public function offsetUnset($name)
    {
        if (\array_key_exists($name, $this->values)) {
            unset($this->array[$name]);
        }
    }
    public function __destruct()
    {
        $this->release();
    }
}
Database::$translator = new \DibiTranslator(\dibi::getConnection());