1 | <?php |
||
11 | class Mssql extends AbsractAdapter |
||
12 | { |
||
13 | |||
14 | /** |
||
15 | * @var int |
||
16 | */ |
||
17 | protected $port = 1433; |
||
18 | |||
19 | /** |
||
20 | * @inheritDoc |
||
21 | */ |
||
22 | protected function parseConstrants() |
||
23 | { |
||
24 | // TODO: implement here |
||
25 | } |
||
26 | |||
27 | /** |
||
28 | * @inheritDoc |
||
29 | */ |
||
30 | protected function parseTables() |
||
34 | |||
35 | /** |
||
36 | * @inheritDoc |
||
37 | * @return string |
||
38 | */ |
||
39 | public function getPDOString() |
||
44 | |||
45 | /** |
||
46 | * @inheritDoc |
||
47 | * @return string |
||
48 | */ |
||
49 | public function getPDOSocketString() |
||
54 | |||
55 | /** |
||
56 | * @inheritDoc |
||
57 | * @param string $databaseName |
||
58 | * @return \Classes\Db\DbTable[] |
||
59 | */ |
||
60 | public function getTables($schema = 0) |
||
65 | |||
66 | /** |
||
67 | * @inheritDoc |
||
68 | * @return string[] |
||
69 | */ |
||
70 | public function getListNameTable() |
||
75 | |||
76 | /** |
||
77 | * retorna multiplos arrays com dados da column em array |
||
78 | * |
||
79 | * @return array[] |
||
80 | */ |
||
81 | public function getListColumns () |
||
85 | |||
86 | /** |
||
87 | * retorna o numero total de tabelas |
||
88 | * |
||
89 | * @return int |
||
90 | */ |
||
91 | public function getTotalTables () |
||
95 | |||
96 | public function getSequence ( $table , $column ) |
||
100 | |||
101 | public function getListConstrant () |
||
105 | |||
106 | } |
||
107 |
The PSR-1: Basic Coding Standard recommends that a file should either introduce new symbols, that is classes, functions, constants or similar, or have side effects. Side effects are anything that executes logic, like for example printing output, changing ini settings or writing to a file.
The idea behind this recommendation is that merely auto-loading a class should not change the state of an application. It also promotes a cleaner style of programming and makes your code less prone to errors, because the logic is not spread out all over the place.
To learn more about the PSR-1, please see the PHP-FIG site on the PSR-1.