OCA\Richdocuments\Db::getCollection PHP Метод

getCollection() публичный Метод

Get all records from the table
public getCollection ( ) : array
Результат array
    public function getCollection()
    {
        $result = $this->execute('SELECT * FROM ' . $this->tableName);
        $data = $result->fetchAll();
        if (!is_array($data)) {
            $data = array();
        }
        return $data;
    }