LazyRecord\Metadata::getKeyValues PHP Method

getKeyValues() public method

public getKeyValues ( )
    public function getKeyValues()
    {
        $stm = $this->connection->prepare('SELECT * FROM __meta__');
        $stm->execute();
        $rows = $stm->fetchAll(PDO::FETCH_OBJ);
        $data = array();
        foreach ($rows as $row) {
            $data[$row->name] = $row->value;
        }
        return $data;
    }