- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
function read($fields = null, $id = null) {
$this->validationErrors = array();
if ($id != null) {
$this->id = $id;
}
$id = $this->id;
if (is_array($this->id)) {
$id = $this->id[0];
}
if ($id !== null && $id !== false) {
$this->data = $this->find(array($this->alias.'.'.$this->primaryKey => $id), $fields);
return $this->data;
} else {
return false;
}
}
cartman 28.06.2011 21:02 # +1
yasenhui 28.06.2011 21:45 # 0
http://php.net/manual/en/language.operators.comparison.php
Курить до просветления.
guest8 09.04.2019 11:05 # −999