|  | @@ -187,6 +187,12 @@  discard block | 
                                                    
                                                        |  |  |  block discarded – undo | 
                                                                                                                                                                                                                    
                                                            | 187 | 187 |  		return $bookmarks; | 
                                                                                                            
                                                            | 188 | 188 |  	} | 
                                                                                                            
                                                            | 189 | 189 |   | 
                                                                                                            
                                                            |  | 190 | +	/** | 
                                                                                                            
                                                            |  | 191 | +	 * @param string $sql | 
                                                                                                            
                                                            |  | 192 | +	 * @param string[] $params | 
                                                                                                            
                                                            |  | 193 | +	 * @param boolean $filterTagOnly | 
                                                                                                            
                                                            |  | 194 | +	 * @param string $tagFilterConjunction | 
                                                                                                            
                                                            |  | 195 | +	 */ | 
                                                                                                            
                                                            | 190 | 196 |  	private static function findBookmarksBuildFilter(&$sql, &$params, $filters, $filterTagOnly, $tagFilterConjunction, $CONFIG_DBTYPE) { | 
                                                                                                            
                                                            | 191 | 197 |  		$tagOrSearch = false; | 
                                                                                                            
                                                            | 192 | 198 |  		$connectWord = 'AND'; | 
                                                                                                                                                        
                                                        |  | @@ -371,7 +377,7 @@  discard block | 
                                                    
                                                        |  |  |  block discarded – undo | 
                                                                                                                                                                                                                    
                                                            | 371 | 377 |  	 * @param array $tags Simple array of tags to qualify the bookmark (different tags are taken from values) | 
                                                                                                            
                                                            | 372 | 378 |  	 * @param string $description A longer description about the bookmark | 
                                                                                                            
                                                            | 373 | 379 |  	 * @param boolean $is_public True if the bookmark is publishable to not registered users | 
                                                                                                            
                                                            | 374 |  | -	 * @return null | 
                                                                                                            
                                                            |  | 380 | +	 * @return null|integer | 
                                                                                                            
                                                            | 375 | 381 |  	 */ | 
                                                                                                            
                                                            | 376 | 382 |  	public static function editBookmark($userid, IDb $db, $id, $url, $title, $tags = array(), $description = '', $is_public = false) { | 
                                                                                                            
                                                            | 377 | 383 |   | 
                                                                                                                                                        
                                                        |  | @@ -423,7 +429,7 @@  discard block | 
                                                    
                                                        |  |  |  block discarded – undo | 
                                                                                                                                                                                                                    
                                                            | 423 | 429 |  	 * @param string $title Name of the bookmark | 
                                                                                                            
                                                            | 424 | 430 |  	 * @param array $tags Simple array of tags to qualify the bookmark (different tags are taken from values) | 
                                                                                                            
                                                            | 425 | 431 |  	 * @param string $description A longer description about the bookmark | 
                                                                                                            
                                                            | 426 |  | -	 * @param boolean $public True if the bookmark is publishable to not registered users | 
                                                                                                            
                                                            |  | 432 | +	 * @param boolean $is_public True if the bookmark is publishable to not registered users | 
                                                                                                            
                                                            | 427 | 433 |  	 * @return int The id of the bookmark created | 
                                                                                                            
                                                            | 428 | 434 |  	 */ | 
                                                                                                            
                                                            | 429 | 435 |  	public static function addBookmark($userid, IDb $db, $url, $title, $tags = array(), $description = '', $is_public = false) { | 
                                                                                                                                                        
                                                        |  | @@ -608,7 +614,7 @@  discard block | 
                                                    
                                                        |  |  |  block discarded – undo | 
                                                                                                                                                                                                                    
                                                            | 608 | 614 |   | 
                                                                                                            
                                                            | 609 | 615 |  	/** | 
                                                                                                            
                                                            | 610 | 616 |  	 * @brief Seperate Url String at comma charachter | 
                                                                                                            
                                                            | 611 |  | -	 * @param $line String of Tags | 
                                                                                                            
                                                            |  | 617 | +	 * @param string $line String of Tags | 
                                                                                                            
                                                            | 612 | 618 |  	 * @return array Array of Tags | 
                                                                                                            
                                                            | 613 | 619 |  	 * */ | 
                                                                                                            
                                                            | 614 | 620 |  	public static function analyzeTagRequest($line) { |