->get() -- Simple Get (Select) request
Descripción
Get a result using key, value. Returns Number of rows located (usually 1) for success,
and puts all the table columns into this classes variables.
If only one parameter is used, it is assumed that first parameter is a
value and get() will use the primary key.
Valor devuelto
int - Number of rows
Nota
Esta función no puede ser llamada
estáticamente.
You should avoid calling get on the same object instance twice,
as this will result in unexpected results.
Ejemplo
Ejemplo 35-5. Results of example code
<?php
Object (DataObjects_Person) =>
[N] => 1
[id] => 12
[group] => 5
[has_glasses] => 1
[name] => 'fred blogs'
[password] => '**testing'
[email] => 'test@example.com'
?>
|
|