@@ -21,6 +21,7 @@ discard block |
||
21 | 21 | |
22 | 22 | /** |
23 | 23 | * This is a constructor; a default method that will be called automatically during class instantiation |
24 | + * @param string|false $modelClassName |
|
24 | 25 | */ |
25 | 26 | public function __construct($modelClassName, $dbConn = Null) |
26 | 27 | { |
@@ -35,7 +36,8 @@ discard block |
||
35 | 36 | /** |
36 | 37 | * This method create a record and store it in a table row |
37 | 38 | * @params associative array, string tablename |
38 | - * @return boolean true or false |
|
39 | + * @param string|false $tableName |
|
40 | + * @return boolean|null true or false |
|
39 | 41 | */ |
40 | 42 | public function create($associative1DArray, $tableName, $dbConn = Null) |
41 | 43 | { |
@@ -70,6 +72,7 @@ discard block |
||
70 | 72 | /** |
71 | 73 | * This method updates any table by supplying 3 parameter |
72 | 74 | * @params: $updateParams, $tableName, $associative1DArray |
75 | + * @param string|false $tableName |
|
73 | 76 | * @return boolean true or false |
74 | 77 | */ |
75 | 78 | public function update(array $updateParams, $tableName, $associative1DArray, $dbConn = Null) |
@@ -102,6 +105,7 @@ discard block |
||
102 | 105 | /** |
103 | 106 | * This method retrieves record from a table |
104 | 107 | * @params int id, string tableName |
108 | + * @param string|false $tableName |
|
105 | 109 | * @return array |
106 | 110 | */ |
107 | 111 | public static function read($id, $tableName, $dbConn = Null) |
@@ -132,6 +136,7 @@ discard block |
||
132 | 136 | /** |
133 | 137 | * This method deletes a record from a table row |
134 | 138 | * @params int id, string tableName |
139 | + * @param string|false $tableName |
|
135 | 140 | * @return boolean true or false |
136 | 141 | */ |
137 | 142 | public static function delete($id, $tableName, $dbConn = Null) |
@@ -164,7 +169,7 @@ discard block |
||
164 | 169 | |
165 | 170 | /** |
166 | 171 | * This method returns sql query |
167 | - * @param $sql |
|
172 | + * @param string $sql |
|
168 | 173 | * @return string |
169 | 174 | */ |
170 | 175 | public function prepareUpdateQuery($sql) |
@@ -206,6 +211,7 @@ discard block |
||
206 | 211 | * This method returns column fields of a particular table |
207 | 212 | * @param $table |
208 | 213 | * @param $conn |
214 | + * @param DatabaseConnection $dbConn |
|
209 | 215 | * @return array |
210 | 216 | */ |
211 | 217 | public function getColumnNames($table, $dbConn = Null) { |