Skip to content

Commit bd9bfcc

Browse files
committed
phpDoc: removed inherited docs
1 parent 25cfd27 commit bd9bfcc

File tree

8 files changed

+7
-214
lines changed

8 files changed

+7
-214
lines changed

src/Database/Drivers/MsSqlDriver.php

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -33,47 +33,32 @@ public function convertException(\PDOException $e): Nette\Database\DriverExcepti
3333
/********************* SQL ****************d*g**/
3434

3535

36-
/**
37-
* Delimites identifier for use in a SQL statement.
38-
*/
3936
public function delimite(string $name): string
4037
{
4138
// @see https://msdn.microsoft.com/en-us/library/ms176027.aspx
4239
return '[' . str_replace(['[', ']'], ['[[', ']]'], $name) . ']';
4340
}
4441

4542

46-
/**
47-
* Formats date-time for use in a SQL statement.
48-
*/
4943
public function formatDateTime(\DateTimeInterface $value): string
5044
{
5145
return $value->format("'Y-m-d H:i:s'");
5246
}
5347

5448

55-
/**
56-
* Formats date-time interval for use in a SQL statement.
57-
*/
5849
public function formatDateInterval(\DateInterval $value): string
5950
{
6051
throw new Nette\NotSupportedException;
6152
}
6253

6354

64-
/**
65-
* Encodes string for use in a LIKE statement.
66-
*/
6755
public function formatLike(string $value, int $pos): string
6856
{
6957
$value = strtr($value, ["'" => "''", '%' => '[%]', '_' => '[_]', '[' => '[[]']);
7058
return ($pos <= 0 ? "'%" : "'") . $value . ($pos >= 0 ? "%'" : "'");
7159
}
7260

7361

74-
/**
75-
* Injects LIMIT/OFFSET to the SQL query.
76-
*/
7762
public function applyLimit(string &$sql, ?int $limit, ?int $offset): void
7863
{
7964
if ($offset) {
@@ -94,45 +79,30 @@ public function applyLimit(string &$sql, ?int $limit, ?int $offset): void
9479
/********************* reflection ****************d*g**/
9580

9681

97-
/**
98-
* Returns list of tables.
99-
*/
10082
public function getTables(): array
10183
{
10284
throw new Nette\NotImplementedException;
10385
}
10486

10587

106-
/**
107-
* Returns metadata for all columns in a table.
108-
*/
10988
public function getColumns(string $table): array
11089
{
11190
throw new Nette\NotImplementedException;
11291
}
11392

11493

115-
/**
116-
* Returns metadata for all indexes in a table.
117-
*/
11894
public function getIndexes(string $table): array
11995
{
12096
throw new Nette\NotImplementedException;
12197
}
12298

12399

124-
/**
125-
* Returns metadata for all foreign keys in a table.
126-
*/
127100
public function getForeignKeys(string $table): array
128101
{
129102
throw new Nette\NotImplementedException;
130103
}
131104

132105

133-
/**
134-
* Returns associative array of detected types (IReflection::FIELD_*) in result set.
135-
*/
136106
public function getColumnTypes(\PDOStatement $statement): array
137107
{
138108
return Nette\Database\Helpers::detectTypes($statement);

src/Database/Drivers/MySqlDriver.php

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -71,37 +71,25 @@ public function convertException(\PDOException $e): Nette\Database\DriverExcepti
7171
/********************* SQL ****************d*g**/
7272

7373

74-
/**
75-
* Delimites identifier for use in a SQL statement.
76-
*/
7774
public function delimite(string $name): string
7875
{
7976
// @see http://dev.mysql.com/doc/refman/5.0/en/identifiers.html
8077
return '`' . str_replace('`', '``', $name) . '`';
8178
}
8279

8380

84-
/**
85-
* Formats date-time for use in a SQL statement.
86-
*/
8781
public function formatDateTime(\DateTimeInterface $value): string
8882
{
8983
return $value->format("'Y-m-d H:i:s'");
9084
}
9185

9286

93-
/**
94-
* Formats date-time interval for use in a SQL statement.
95-
*/
9687
public function formatDateInterval(\DateInterval $value): string
9788
{
9889
return $value->format("'%r%h:%I:%S'");
9990
}
10091

10192

102-
/**
103-
* Encodes string for use in a LIKE statement.
104-
*/
10593
public function formatLike(string $value, int $pos): string
10694
{
10795
$value = str_replace('\\', '\\\\', $value);
@@ -110,9 +98,6 @@ public function formatLike(string $value, int $pos): string
11098
}
11199

112100

113-
/**
114-
* Injects LIMIT/OFFSET to the SQL query.
115-
*/
116101
public function applyLimit(string &$sql, ?int $limit, ?int $offset): void
117102
{
118103
if ($limit < 0 || $offset < 0) {
@@ -129,9 +114,6 @@ public function applyLimit(string &$sql, ?int $limit, ?int $offset): void
129114
/********************* reflection ****************d*g**/
130115

131116

132-
/**
133-
* Returns list of tables.
134-
*/
135117
public function getTables(): array
136118
{
137119
$tables = [];
@@ -145,9 +127,6 @@ public function getTables(): array
145127
}
146128

147129

148-
/**
149-
* Returns metadata for all columns in a table.
150-
*/
151130
public function getColumns(string $table): array
152131
{
153132
$columns = [];
@@ -169,9 +148,6 @@ public function getColumns(string $table): array
169148
}
170149

171150

172-
/**
173-
* Returns metadata for all indexes in a table.
174-
*/
175151
public function getIndexes(string $table): array
176152
{
177153
$indexes = [];
@@ -185,9 +161,6 @@ public function getIndexes(string $table): array
185161
}
186162

187163

188-
/**
189-
* Returns metadata for all foreign keys in a table.
190-
*/
191164
public function getForeignKeys(string $table): array
192165
{
193166
$keys = [];
@@ -205,9 +178,6 @@ public function getForeignKeys(string $table): array
205178
}
206179

207180

208-
/**
209-
* Returns associative array of detected types (IReflection::FIELD_*) in result set.
210-
*/
211181
public function getColumnTypes(\PDOStatement $statement): array
212182
{
213183
$types = [];

src/Database/Drivers/OciDriver.php

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -54,46 +54,31 @@ public function convertException(\PDOException $e): Nette\Database\DriverExcepti
5454
/********************* SQL ****************d*g**/
5555

5656

57-
/**
58-
* Delimites identifier for use in a SQL statement.
59-
*/
6057
public function delimite(string $name): string
6158
{
6259
// @see http://download.oracle.com/docs/cd/B10500_01/server.920/a96540/sql_elements9a.htm
6360
return '"' . str_replace('"', '""', $name) . '"';
6461
}
6562

6663

67-
/**
68-
* Formats date-time for use in a SQL statement.
69-
*/
7064
public function formatDateTime(\DateTimeInterface $value): string
7165
{
7266
return $value->format($this->fmtDateTime);
7367
}
7468

7569

76-
/**
77-
* Formats date-time interval for use in a SQL statement.
78-
*/
7970
public function formatDateInterval(\DateInterval $value): string
8071
{
8172
throw new Nette\NotSupportedException;
8273
}
8374

8475

85-
/**
86-
* Encodes string for use in a LIKE statement.
87-
*/
8876
public function formatLike(string $value, int $pos): string
8977
{
9078
throw new Nette\NotImplementedException;
9179
}
9280

9381

94-
/**
95-
* Injects LIMIT/OFFSET to the SQL query.
96-
*/
9782
public function applyLimit(string &$sql, ?int $limit, ?int $offset): void
9883
{
9984
if ($limit < 0 || $offset < 0) {
@@ -114,9 +99,6 @@ public function applyLimit(string &$sql, ?int $limit, ?int $offset): void
11499
/********************* reflection ****************d*g**/
115100

116101

117-
/**
118-
* Returns list of tables.
119-
*/
120102
public function getTables(): array
121103
{
122104
$tables = [];
@@ -132,36 +114,24 @@ public function getTables(): array
132114
}
133115

134116

135-
/**
136-
* Returns metadata for all columns in a table.
137-
*/
138117
public function getColumns(string $table): array
139118
{
140119
throw new Nette\NotImplementedException;
141120
}
142121

143122

144-
/**
145-
* Returns metadata for all indexes in a table.
146-
*/
147123
public function getIndexes(string $table): array
148124
{
149125
throw new Nette\NotImplementedException;
150126
}
151127

152128

153-
/**
154-
* Returns metadata for all foreign keys in a table.
155-
*/
156129
public function getForeignKeys(string $table): array
157130
{
158131
throw new Nette\NotImplementedException;
159132
}
160133

161134

162-
/**
163-
* Returns associative array of detected types (IReflection::FIELD_*) in result set.
164-
*/
165135
public function getColumnTypes(\PDOStatement $statement): array
166136
{
167137
return [];

src/Database/Drivers/OdbcDriver.php

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -33,46 +33,31 @@ public function convertException(\PDOException $e): Nette\Database\DriverExcepti
3333
/********************* SQL ****************d*g**/
3434

3535

36-
/**
37-
* Delimites identifier for use in a SQL statement.
38-
*/
3936
public function delimite(string $name): string
4037
{
4138
return '[' . str_replace(['[', ']'], ['[[', ']]'], $name) . ']';
4239
}
4340

4441

45-
/**
46-
* Formats date-time for use in a SQL statement.
47-
*/
4842
public function formatDateTime(\DateTimeInterface $value): string
4943
{
5044
return $value->format('#m/d/Y H:i:s#');
5145
}
5246

5347

54-
/**
55-
* Formats date-time interval for use in a SQL statement.
56-
*/
5748
public function formatDateInterval(\DateInterval $value): string
5849
{
5950
throw new Nette\NotSupportedException;
6051
}
6152

6253

63-
/**
64-
* Encodes string for use in a LIKE statement.
65-
*/
6654
public function formatLike(string $value, int $pos): string
6755
{
6856
$value = strtr($value, ["'" => "''", '%' => '[%]', '_' => '[_]', '[' => '[[]']);
6957
return ($pos <= 0 ? "'%" : "'") . $value . ($pos >= 0 ? "%'" : "'");
7058
}
7159

7260

73-
/**
74-
* Injects LIMIT/OFFSET to the SQL query.
75-
*/
7661
public function applyLimit(string &$sql, ?int $limit, ?int $offset): void
7762
{
7863
if ($offset) {
@@ -93,45 +78,30 @@ public function applyLimit(string &$sql, ?int $limit, ?int $offset): void
9378
/********************* reflection ****************d*g**/
9479

9580

96-
/**
97-
* Returns list of tables.
98-
*/
9981
public function getTables(): array
10082
{
10183
throw new Nette\NotImplementedException;
10284
}
10385

10486

105-
/**
106-
* Returns metadata for all columns in a table.
107-
*/
10887
public function getColumns(string $table): array
10988
{
11089
throw new Nette\NotImplementedException;
11190
}
11291

11392

114-
/**
115-
* Returns metadata for all indexes in a table.
116-
*/
11793
public function getIndexes(string $table): array
11894
{
11995
throw new Nette\NotImplementedException;
12096
}
12197

12298

123-
/**
124-
* Returns metadata for all foreign keys in a table.
125-
*/
12699
public function getForeignKeys(string $table): array
127100
{
128101
throw new Nette\NotImplementedException;
129102
}
130103

131104

132-
/**
133-
* Returns associative array of detected types (IReflection::FIELD_*) in result set.
134-
*/
135105
public function getColumnTypes(\PDOStatement $statement): array
136106
{
137107
return Nette\Database\Helpers::detectTypes($statement);

0 commit comments

Comments
 (0)