Completed
Push — master ( 5e8324...900e93 )
by Yannick
06:22
created
require/class.Connection.php 1 patch
Doc Comments   +20 added lines patch added patch discarded remove patch
@@ -6,6 +6,9 @@  discard block
 block discarded – undo
6 6
 	public $dbs = array();
7 7
 	public $latest_schema = 37;
8 8
 	
9
+	/**
10
+	 * @param string $dbname
11
+	 */
9 12
 	public function __construct($dbc = null,$dbname = null,$user = null,$pass = null) {
10 13
 	    global $globalDBdriver, $globalNoDB;
11 14
 	    if (isset($globalNoDB) && $globalNoDB === TRUE) {
@@ -140,6 +143,9 @@  discard block
 block discarded – undo
140 143
 		return true;
141 144
 	}
142 145
 
146
+	/**
147
+	 * @param string $table
148
+	 */
143 149
 	public function tableExists($table)
144 150
 	{
145 151
 		global $globalDBdriver, $globalDBname;
@@ -189,6 +195,11 @@  discard block
 block discarded – undo
189 195
 	/*
190 196
 	* Check if index exist
191 197
 	*/
198
+
199
+	/**
200
+	 * @param string $table
201
+	 * @param string $index
202
+	 */
192 203
 	public function indexExists($table,$index)
193 204
 	{
194 205
 		global $globalDBdriver, $globalDBname;
@@ -231,6 +242,10 @@  discard block
 block discarded – undo
231 242
 		return $columns;
232 243
 	}
233 244
 
245
+	/**
246
+	 * @param string $table
247
+	 * @param string $column
248
+	 */
234 249
 	public function getColumnType($table,$column) {
235 250
 		$select = $this->db->query('SELECT '.$column.' FROM '.$table);
236 251
 		$tomet = $select->getColumnMeta(0);
@@ -241,6 +256,11 @@  discard block
 block discarded – undo
241 256
 	* Check if a column name exist in a table
242 257
 	* @return Boolean column exist or not
243 258
 	*/
259
+
260
+	/**
261
+	 * @param string $table
262
+	 * @param string $name
263
+	 */
244 264
 	public function checkColumnName($table,$name)
245 265
 	{
246 266
 		global $globalDBdriver, $globalDBname;
Please login to merge, or discard this patch.
require/class.APRS.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -89,6 +89,10 @@  discard block
 block discarded – undo
89 89
 	'y' => 'Yagi At QTH');
90 90
 	
91 91
 
92
+    /**
93
+     * @param integer $n
94
+     * @param integer $s
95
+     */
92 96
     private function urshift($n, $s) {
93 97
 	return ($n >= 0) ? ($n >> $s) :
94 98
 	    (($n & 0x7fffffff) >> $s) | 
@@ -475,6 +479,9 @@  discard block
 block discarded – undo
475 479
 	socket_close($this->socket);
476 480
     }
477 481
     
482
+    /**
483
+     * @param string $data
484
+     */
478 485
     public function send($data) {
479 486
 	if ($this->connected === false) $this->connect();
480 487
 	$send = socket_send( $this->socket  , $data , strlen($data),0);
Please login to merge, or discard this patch.