Toggle navigation
Hot Examples
PT
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Pesquisar
Página Inicial
lithium
data
Collection
set
lithium\data\Collection::set PHP Method
Collection Class Documentation
Exibir arquivo
Open project: unionofrad/lithium
set()
public
method
For example:
$collection->set(array( 42 => array('title' => 'Lorem Ipsum'), 43 => array('title' => 'Dolor Amet') ));
public
set
(
arary
$values
) :
void
$values
arary
An associative array of fields and values to assign to the `Collection`.
return
void
public function set($values) { foreach ($values as $key => $val) { $this[$key] = $val; } }
Collection
__construct
__destruct
_filterFromArray
_init
_populate
_set
assignTo
close
closed
current
data
each
exists
find
first
key
keys
map
meta
model
next
offsetExists
offsetGet
offsetSet
offsetUnset
parent
reduce
result
rewind
schema
serialize
set
sort
stats
to
unserialize
valid