OCA\Richdocuments\Db::load PHP Method

load() public method

Get single record by primary key
public load ( integer $value ) : Db
$value integer primary key value
return 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;
    }