Completed
Push — 14.2 ( e07840...cec2da )
by Ralf
83:18 queued 52:04
created
phpgwapi/inc/class.ldap.inc.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 	/**
51 51
 	 * Constructor
52 52
 	 *
53
-	 * @param boolean $exception_on_error=false true: throw Exceptions in ldapConnect instead of echoing error and returning false
53
+	 * @param boolean $exception_on_error true: throw Exceptions in ldapConnect instead of echoing error and returning false
54 54
 	 */
55 55
 	function __construct($exception_on_error=false)
56 56
 	{
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
 	/**
62 62
 	 * Returns information about connected ldap server
63 63
 	 *
64
-	 * @return ldapserverinfo|null
64
+	 * @return ldapserverinfo
65 65
 	 */
66 66
 	function getLDAPServerInfo()
67 67
 	{
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
 	 * @param string $host ldap host
179 179
 	 * @param string $dn ldap dn
180 180
 	 * @param string $passwd ldap pw
181
-	 * @return resource|boolean resource from ldap_connect() or false on error
181
+	 * @return boolean resource from ldap_connect() or false on error
182 182
 	 */
183 183
 	private function _connect($host, $dn, $passwd)
184 184
 	{
Please login to merge, or discard this patch.
phpgwapi/inc/class.ldapserverinfo.inc.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 	/**
71 71
 	* gets the version
72 72
 	*
73
-	* @return integer the supported ldap version
73
+	* @return string the supported ldap version
74 74
 	*/
75 75
 	function getVersion()
76 76
 	{
@@ -131,6 +131,7 @@  discard block
 block discarded – undo
131 131
 	/**
132 132
 	* checks for supported objectclasses
133 133
 	*
134
+	* @param string $_objectClass
134 135
 	* @return bool returns true if the ldap server supports this objectclass
135 136
 	*/
136 137
 	function supportsObjectClass($_objectClass)
Please login to merge, or discard this patch.
phpgwapi/inc/class.mailDomainSigner.inc.php 1 patch
Doc Comments   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -309,10 +309,8 @@
 block discarded – undo
309 309
    * @param string $h Signed header fields, A colon-separated list of header field names that identify the header fields presented to the signing algorithm
310 310
    * @param array $_h Array of headers in same order with $h (Signed header fields)
311 311
    * @param string $body Raw Email Body String
312
-   * @param string $_c='relaxed/relaxed' header/body canonicalzation algorithm, default "relaxed/relaxed", can also be any combination of "relaxed" or "simple"
313
-   * @param string $_a='rsa-sha1' could also be eg. 'rsa/sha256' and other hashes supported by openssl for rsa signing
314
-   * @param string $_dkim=null template for creating DKIM signature, default as for email appropriate
315
-   * @return string|boolean DKIM-Signature Header String, or false if an error happend, eg. unimplemented canonicalization requested
312
+   * @param string $_dkim
313
+   * @return false|string DKIM-Signature Header String, or false if an error happend, eg. unimplemented canonicalization requested
316 314
    * @access public
317 315
    * @author Ahmad Amarullah
318 316
    */
Please login to merge, or discard this patch.
phpgwapi/inc/class.network.inc.php 1 patch
Doc Comments   +11 added lines patch added patch discarded remove patch
@@ -36,6 +36,9 @@  discard block
 block discarded – undo
36 36
 			$this->set_addcrlf($addcrlf);
37 37
 		}
38 38
 
39
+		/**
40
+		 * @param boolean $value
41
+		 */
39 42
 		function set_addcrlf($value)
40 43
 		{
41 44
 			$this->addcrlf = $value;
@@ -50,6 +53,11 @@  discard block
 block discarded – undo
50 53
 			return $str;
51 54
 		}
52 55
 
56
+		/**
57
+		 * @param string $code
58
+		 * @param string $msg
59
+		 * @param string $desc
60
+		 */
53 61
 		function set_error($code,$msg,$desc)
54 62
 		{
55 63
 			$this->error = array('code','msg','desc');
@@ -61,6 +69,9 @@  discard block
 block discarded – undo
61 69
 			return 0;
62 70
 		}
63 71
 
72
+		/**
73
+		 * @param integer $port
74
+		 */
64 75
 		function open_port($server,$port,$timeout=15)
65 76
 		{
66 77
 			switch($port)
Please login to merge, or discard this patch.
phpgwapi/inc/class.nextmatchs.inc.php 1 patch
Doc Comments   +36 added lines patch added patch discarded remove patch
@@ -89,6 +89,11 @@  discard block
 block discarded – undo
89 89
 		@param $img_src ?
90 90
 		@param $label ?
91 91
 		*/
92
+
93
+		/**
94
+		 * @param string $align
95
+		 * @param string $img
96
+		 */
92 97
 		function set_icon($align,$img,$label)
93 98
 		{
94 99
 			$var = array(
@@ -134,6 +139,11 @@  discard block
 block discarded – undo
134 139
 		@param $link ?
135 140
 		@param $extravars ?
136 141
 		*/
142
+
143
+		/**
144
+		 * @param string $align
145
+		 * @param string $img
146
+		 */
137 147
 		function set_link($align,$img,$link,$alt,$extravars)
138 148
 		{
139 149
 			$var = Array(
@@ -244,6 +254,10 @@  discard block
 block discarded – undo
244 254
 		@param $total ?
245 255
 		@param $extradate ?
246 256
 		*/
257
+
258
+		/**
259
+		 * @param integer $start
260
+		 */
247 261
 		function left($scriptname,$start,$total,$extradata = '')
248 262
 		{
249 263
 			$extravars = Array(
@@ -290,6 +304,10 @@  discard block
 block discarded – undo
290 304
 		@param $total ?
291 305
 		@param $extradate ?
292 306
 		*/
307
+
308
+		/**
309
+		 * @param integer $start
310
+		 */
293 311
 		function right($scriptname,$start,$total,$extradata = '')
294 312
 		{
295 313
 			$extravars = Array(
@@ -470,6 +488,10 @@  discard block
 block discarded – undo
470 488
 		@abstract ?
471 489
 		@param $filter_obj
472 490
 		*/
491
+
492
+		/**
493
+		 * @param integer $filter_obj
494
+		 */
473 495
 		function filter($filter_obj,$yours=0)
474 496
 		{
475 497
 			if (is_array($yours))
@@ -654,6 +676,11 @@  discard block
 block discarded – undo
654 676
 		@param $text ?
655 677
 		@param $extra default ''
656 678
 		*/
679
+
680
+		/**
681
+		 * @param string $var
682
+		 * @param string $program
683
+		 */
657 684
 		function show_sort_order($sort,$var,$order,$program,$text,$extra='',$build_a_href=True)
658 685
 		{
659 686
 			if ($order == $var)
@@ -848,6 +875,11 @@  discard block
 block discarded – undo
848 875
 		@param $link ?
849 876
 		@param $extravars ?
850 877
 		*/
878
+
879
+		/**
880
+		 * @param string $align
881
+		 * @param string $img
882
+		 */
851 883
 		function set_link_imap($align,$img,$alt_text,$out_vars)
852 884
 		{
853 885
 			$img_full = $GLOBALS['egw']->common->image('phpgwapi',$img);
@@ -855,6 +887,10 @@  discard block
 block discarded – undo
855 887
 			return '<a href="'.$out_vars['common_uri'].'&start='.$out_vars['start'].'">'.$image_part.'</a>';
856 888
 		}
857 889
 
890
+		/**
891
+		 * @param string $align
892
+		 * @param string $img
893
+		 */
858 894
 		function set_icon_imap($align,$img,$alt_text)
859 895
 		{
860 896
 			$img_full = $GLOBALS['egw']->common->image('phpgwapi',$img);
Please login to merge, or discard this patch.
phpgwapi/inc/class.schema_proc.inc.php 1 patch
Doc Comments   +10 added lines, -20 removed lines patch added patch discarded remove patch
@@ -92,7 +92,6 @@  discard block
 block discarded – undo
92 92
 	 * Constructor of schema-processor
93 93
 	 *
94 94
 	 * @param string $dbms type of the database: 'mysql','pgsql','mssql','maxdb'
95
-	 * @param object $db=null database class, if null we use $GLOBALS['egw']->db
96 95
 	 * @return schema_proc
97 96
 	 */
98 97
 	function __construct($dbms=False,$db=null)
@@ -416,7 +415,7 @@  discard block
 block discarded – undo
416 415
 	/**
417 416
 	 * Check if we have an old, not automaticaly droped sequence and drop it
418 417
 	 *
419
-	 * @param $sTableName
418
+	 * @param string $sTableName
420 419
 	 * @param bool $preserveValue
421 420
 	 */
422 421
 	function _PostgresTestDropOldSequence($sTableName,$preserveValue=False)
@@ -529,9 +528,9 @@  discard block
 block discarded – undo
529 528
 	/**
530 529
 	 * Create an (unique) Index over one or more columns
531 530
 	 *
532
-	 * @param string $sTablename table-name
531
+	 * @param string $sTableName table-name
533 532
 	 * @param array $aColumnNames columns for the index
534
-	 * @param boolean $bUnique=false true for a unique index, default false
533
+	 * @param boolean $bUnique true for a unique index, default false
535 534
 	 * @param array/string $options='' db-sepecific options, default '' = none
536 535
 	 * @param string $sIdxName='' name of the index, if not given (default) its created automaticaly
537 536
 	 * @return int 2: no error, 1: errors, but continued, 0: errors aborted
@@ -789,7 +788,7 @@  discard block
 block discarded – undo
789 788
 	 * Creates all tables for one application
790 789
 	 *
791 790
 	 * @param array $aTables array of eGW table-definitions
792
-	 * @param boolean $bOutputHTML=false should we give diagnostics, default False
791
+	 * @param boolean $bOutputHTML should we give diagnostics, default False
793 792
 	 * @return boolean True on success, False if an (fatal) error occured
794 793
 	 */
795 794
 	function ExecuteScripts($aTables, $bOutputHTML=False)
@@ -827,9 +826,6 @@  discard block
 block discarded – undo
827 826
 	/**
828 827
 	* Return the value of a column
829 828
 	*
830
-	* @param string/integer $Name name of field or positional index starting from 0
831
-	* @param bool $strip_slashes string escape chars from field(optional), default false
832
-	* @return string the field value
833 829
 	*/
834 830
 	function f($value,$strip_slashes=False)
835 831
 	{
@@ -859,12 +855,7 @@  discard block
 block discarded – undo
859 855
 	/**
860 856
 	* Execute a query
861 857
 	*
862
-	* @param string $Query_String the query to be executed
863
-	* @param mixed $line the line method was called from - use __LINE__
864
-	* @param string $file the file method was called from - use __FILE__
865
-	* @param int $offset row to start from
866
-	* @param int $num_rows number of rows to return (optional), if unset will use $GLOBALS['phpgw_info']['user']['preferences']['common']['maxmatchs']
867
-	* @return ADORecordSet or false, if the query fails
858
+	* @param integer $line
868 859
 	*/
869 860
 	function query($sQuery, $line='', $file='')
870 861
 	{
@@ -880,8 +871,6 @@  discard block
 block discarded – undo
880 871
 	*	if the row exists db::update is called else a new row with $date merged with $where gets inserted (data has precedence)
881 872
 	* @param int $line line-number to pass to query
882 873
 	* @param string $file file-name to pass to query
883
-	* @param string $app=false string with name of app, this need to be set in setup anyway!!!
884
-	* @return ADORecordSet or false, if the query fails
885 874
 	*/
886 875
 	function insert($table,$data,$where,$line,$file,$app=False,$use_prepared_statement=false)
887 876
 	{
@@ -892,8 +881,8 @@  discard block
 block discarded – undo
892 881
 	 * Execute the Sql statements in an array and give diagnostics, if any error occures
893 882
 	 *
894 883
 	 * @param $aSql array of SQL strings to execute
895
-	 * @param $debug_level int for which debug_level (and higher) should the diagnostics always been printed
896
-	 * @param $debug string variable number of arguments for the debug_message functions in case of an error
884
+	 * @param integer $debug_level int for which debug_level (and higher) should the diagnostics always been printed
885
+	 * @param string $debug string variable number of arguments for the debug_message functions in case of an error
897 886
 	 * @return int 2: no error, 1: errors, but continued, 0: errors aborted
898 887
 	 */
899 888
 	function ExecuteSqlArray($aSql,$debug_level,$debug)
@@ -935,7 +924,7 @@  discard block
 block discarded – undo
935 924
 	 * b) we use the table-names plus all column-names and remove dublicate parts
936 925
 	 *
937 926
 	 * @internal
938
-	 * @param $sTableName string name of the table
927
+	 * @param string $sTableName string name of the table
939 928
 	 * @param $aColumnNames array of column-names or string with a single column-name
940 929
 	 * @return string the index-name
941 930
 	 */
@@ -992,6 +981,7 @@  discard block
 block discarded – undo
992 981
 
993 982
 	/**
994 983
 	 * Giving a non-fatal error-message
984
+	 * @param string $str
995 985
 	 */
996 986
 	function error($str)
997 987
 	{
@@ -1020,7 +1010,7 @@  discard block
 block discarded – undo
1020 1010
 	 *
1021 1011
 	 * The parameters get formated depending on their type.
1022 1012
 	 *
1023
-	 * @param $msg string message with parameters/variables like lang(), eg. '%1'
1013
+	 * @param string $msg string message with parameters/variables like lang(), eg. '%1'
1024 1014
 	 * @param $backtrace include a function-backtrace, default True=On
1025 1015
 	 *	should only be set to False=Off, if your code ensures a call with backtrace=On was made before !!!
1026 1016
 	 * @param $param mixed a variable number of parameters, to be inserted in $msg
Please login to merge, or discard this patch.
phpgwapi/inc/class.solink.inc.php 1 patch
Doc Comments   +7 added lines, -2 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
 	 *
95 95
 	 * @param int $link_id link to update
96 96
 	 * @param string $remark new text for the remark
97
-	 * @return boolean true on success, else false
97
+	 * @return ADORecordSet true on success, else false
98 98
 	 */
99 99
 	static function update_remark($link_id,$remark)
100 100
 	{
@@ -172,6 +172,11 @@  discard block
 block discarded – undo
172 172
 		return is_array($id) ? $links : ($links[$id] ? $links[$id] : array());
173 173
 	}
174 174
 
175
+	/**
176
+	 * @param boolean $left
177
+	 * @param string $only_app
178
+	 * @param boolean $not_only
179
+	 */
175 180
 	private function _add2links($row,$left,$only_app,$not_only,array &$links)
176 181
 	{
177 182
 		$linked_app = $left ? $row['link_app2'] : $row['link_app1'];
@@ -202,7 +207,7 @@  discard block
 block discarded – undo
202 207
 	 * @param string $id ='' id in $app, if no integer link_id given in $app_link_id
203 208
 	 * @param string $app2 ='' appname of 2. endpoint of the link, if no integer link_id given in $app_link_id
204 209
 	 * @param string $id2 ='' id in $app2, if no integer link_id given in $app_link_id
205
-	 * @return array with link-data or False
210
+	 * @return boolean with link-data or False
206 211
 	 */
207 212
 	static function get_link($app_link_id,$id='',$app2='',$id2='')
208 213
 	{
Please login to merge, or discard this patch.
phpgwapi/inc/class.Template.inc.php 1 patch
Doc Comments   +32 added lines patch added patch discarded remove patch
@@ -64,6 +64,10 @@  discard block
 block discarded – undo
64 64
 		/* public: setroot(pathname $root)
65 65
 		 * root:   new template directory.
66 66
 		 */
67
+
68
+		/**
69
+		 * @param string $root
70
+		 */
67 71
 		function set_root($root)
68 72
 		{
69 73
 			if ($this->debug && $this->check_debug('set_root'))
@@ -127,6 +131,11 @@  discard block
 block discarded – undo
127 131
 		 * extract the template $handle from $parent,
128 132
 		 * place variable {$name} instead.
129 133
 		 */
134
+
135
+		/**
136
+		 * @param string $parent
137
+		 * @param string $handle
138
+		 */
130 139
 		function set_block($parent, $handle, $name = '')
131 140
 		{
132 141
 			if ($this->debug && $this->check_debug('set_block',$parent,$handle,$name))
@@ -253,6 +262,10 @@  discard block
 block discarded – undo
253 262
 			return $str;
254 263
 		}
255 264
 
265
+		/**
266
+		 * @param string $target
267
+		 * @param string $handle
268
+		 */
256 269
 		function pparse($target, $handle, $append = false)
257 270
 		{
258 271
 			print $this->parse($target, $handle, $append);
@@ -260,12 +273,24 @@  discard block
 block discarded – undo
260 273
 		}
261 274
 
262 275
 		/* This is short for finish parse */
276
+
277
+		/**
278
+		 * @param string $target
279
+		 * @param string $handle
280
+		 *
281
+		 * @return string
282
+		 */
263 283
 		function fp($target, $handle, $append = False)
264 284
 		{
265 285
 			return $this->finish($this->parse($target, $handle, $append));
266 286
 		}
267 287
 
268 288
 		/* This is a short cut for print finish parse */
289
+
290
+		/**
291
+		 * @param string $target
292
+		 * @param string $handle
293
+		 */
269 294
 		function pfp($target, $handle, $append = False)
270 295
 		{
271 296
 			echo $this->finish($this->parse($target, $handle, $append));
@@ -307,6 +332,10 @@  discard block
 block discarded – undo
307 332
 		/* public: get_undefined($handle)
308 333
 		 * handle: handle of a template.
309 334
 		 */
335
+
336
+		/**
337
+		 * @param string $handle
338
+		 */
310 339
 		function get_undefined($handle)
311 340
 		{
312 341
 			if (!$this->loadfile($handle))
@@ -476,6 +505,9 @@  discard block
 block discarded – undo
476 505
 			}
477 506
 		}
478 507
 
508
+		/**
509
+		 * @param string $str
510
+		 */
479 511
 		function check_debug($str)
480 512
 		{
481 513
 			if (!$this->debug) return False;
Please login to merge, or discard this patch.
phpgwapi/inc/class.tplsavant2.inc.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@
 block discarded – undo
120 120
 	   * @param bool $fallback if true the default fallback template dir is returned
121 121
 	   * @param string $appname appication name optional can be derived from $GLOBALS['egw_info']['flags']['currentapp'];
122 122
 	   * @access public
123
-	   * @return void
123
+	   * @return string|false
124 124
 	   */
125 125
 	  function get_tpl_dir($fallback=false,$appname = '')
126 126
 	  {
Please login to merge, or discard this patch.