29 $conds = [
'ts_user' => $user->getId() ];
30 $fields = [
'ts_namespace',
'ts_title',
'ts_value',
'ts_metadata' ];
32 $res = $this->db->select( $this->dbTable, $fields, $conds, __METHOD__ );
35 foreach ( $res as $row ) {
38 Title::makeTitle( (
int)$row->ts_namespace, $row->ts_title ),
40 unserialize( $row->ts_metadata )
49 'ts_user' => $item->getUser()->getId(),
50 'ts_title' => $item->getTitle()->getDBkey(),
51 'ts_namespace' => $item->getTitle()->getNamespace(),
52 'ts_value' => $item->getValue(),
53 'ts_metadata' => serialize( $item->getMetadata() ),
57 [
'ts_user',
'ts_namespace',
'ts_title' ],
60 $this->db->replace( $this->dbTable, $indexes, $row, __METHOD__ );