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;
    }