OCA\Richdocuments\Db::load PHP 메소드

load() 공개 메소드

Get single record by primary key
public load ( integer $value ) : Db
$value integer primary key value
리턴 Db
    public function load($value)
    {
        if (!is_array($value)) {
            $value = array($value);
        }
        $result = $this->execute($this->loadStatement, $value);
        $data = $result->fetch();
        if (!is_array($data)) {
            $data = array();
        }
        $this->data = $data;
        return $this;
    }