Toggle navigation
Hot Examples
JP
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
検索
Home
lithium
data
entity
Document
offsetSet
lithium\data\entity\Document::offsetSet PHP Method
Document Class Documentation
ファイルを表示
Open project: unionofrad/lithium
offsetSet()
public
method
Allows document fields to be assigned as array keys, i.e.
$document['_id'] = $id
.
public
offsetSet
(
mixed
$offset
,
mixed
$value
) :
void
$offset
mixed
String or integer indicating the offset or the name of a field in an individual document.
$value
mixed
The value to assign to the field.
return
void
public function offsetSet($offset, $value) { return $this->set(array($offset => $value)); }
Document
__get
__isset
__set
__unset
_getNested
_init
_relation
_setNested
current
export
key
next
offsetExists
offsetGet
offsetSet
offsetUnset
rewind
set
sync
to
valid