Skip to content

Commit 0c28d2c

Browse files
committed
Merge branch '1.2' of code.cakephp.org:cakephp into 1.2
2 parents 4dc656f + b75779e commit 0c28d2c

File tree

1 file changed

+41
-46
lines changed

1 file changed

+41
-46
lines changed

cake/basics.php

Lines changed: 41 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,8 @@ function clone($object)
5050
* Loads configuration files. Receives a set of configuration files
5151
* to load.
5252
* Example:
53-
* <code>
54-
* config('config1', 'config2');
55-
* </code>
53+
*
54+
* `config('config1', 'config2');`
5655
*
5756
* @return boolean Success
5857
*/
@@ -79,9 +78,8 @@ function config() {
7978
* Loads component/components from LIBS. Takes optional number of parameters.
8079
*
8180
* Example:
82-
* <code>
83-
* uses('flay', 'time');
84-
* </code>
81+
*
82+
* `uses('flay', 'time');`
8583
*
8684
* @param string $name Filename without the .php part
8785
*/
@@ -212,14 +210,12 @@ function h($text, $charset = null) {
212210
* Returns an array of all the given parameters.
213211
*
214212
* Example:
215-
* <code>
216-
* a('a', 'b')
217-
* </code>
213+
*
214+
* `a('a', 'b')`
218215
*
219216
* Would return:
220-
* <code>
221-
* array('a', 'b')
222-
* </code>
217+
*
218+
* `array('a', 'b')`
223219
*
224220
* @return array Array of given parameters
225221
* @link http://book.cakephp.org/view/694/a
@@ -232,14 +228,12 @@ function a() {
232228
* Constructs associative array from pairs of arguments.
233229
*
234230
* Example:
235-
* <code>
236-
* aa('a','b')
237-
* </code>
231+
*
232+
* `aa('a','b')`
238233
*
239234
* Would return:
240-
* <code>
241-
* array('a'=>'b')
242-
* </code>
235+
*
236+
* `array('a'=>'b')`
243237
*
244238
* @return array Associative array
245239
* @link http://book.cakephp.org/view/695/aa
@@ -507,10 +501,9 @@ function cache($path, $data = null, $expires = '+1 day', $target = 'cache') {
507501
/**
508502
* Used to delete files in the cache directories, or clear contents of cache directories
509503
*
510-
* @param mixed $params As String name to be searched for deletion, if name is a directory all files in directory will be deleted.
511-
* If array, names to be searched for deletion.
512-
* If clearCache() without params, all files in app/tmp/cache/views will be deleted
513-
*
504+
* @param mixed $params As String name to be searched for deletion, if name is a directory all files in
505+
* directory will be deleted. If array, names to be searched for deletion. If clearCache() without params,
506+
* all files in app/tmp/cache/views will be deleted
514507
* @param string $type Directory in tmp/cache defaults to view directory
515508
* @param string $ext The file extension you are deleting
516509
* @return true if files found and deleted false otherwise
@@ -685,13 +678,14 @@ function __dn($domain, $singular, $plural, $count, $return = false) {
685678
* Valid categories are: LC_CTYPE, LC_NUMERIC, LC_TIME, LC_COLLATE, LC_MONETARY, LC_MESSAGES and LC_ALL.
686679
*
687680
* Note that the category must be specified with a numeric value, instead of the constant name. The values are:
688-
* LC_CTYPE 0
689-
* LC_NUMERIC 1
690-
* LC_TIME 2
691-
* LC_COLLATE 3
692-
* LC_MONETARY 4
693-
* LC_MESSAGES 5
694-
* LC_ALL 6
681+
*
682+
* - LC_ALL 0
683+
* - LC_COLLATE 1
684+
* - LC_CTYPE 2
685+
* - LC_MONETARY 3
686+
* - LC_NUMERIC 4
687+
* - LC_TIME 5
688+
* - LC_MESSAGES 6
695689
*
696690
* @param string $domain Domain
697691
* @param string $msg Message to translate
@@ -723,13 +717,14 @@ function __dc($domain, $msg, $category, $return = false) {
723717
* Valid categories are: LC_CTYPE, LC_NUMERIC, LC_TIME, LC_COLLATE, LC_MONETARY, LC_MESSAGES and LC_ALL.
724718
*
725719
* Note that the category must be specified with a numeric value, instead of the constant name. The values are:
726-
* LC_ALL 0
727-
* LC_COLLATE 1
728-
* LC_CTYPE 2
729-
* LC_MONETARY 3
730-
* LC_NUMERIC 4
731-
* LC_TIME 5
732-
* LC_MESSAGES 6
720+
*
721+
* - LC_ALL 0
722+
* - LC_COLLATE 1
723+
* - LC_CTYPE 2
724+
* - LC_MONETARY 3
725+
* - LC_NUMERIC 4
726+
* - LC_TIME 5
727+
* - LC_MESSAGES 6
733728
*
734729
* @param string $domain Domain
735730
* @param string $singular Singular string to translate
@@ -758,13 +753,14 @@ function __dcn($domain, $singular, $plural, $count, $category, $return = false)
758753
* Valid categories are: LC_CTYPE, LC_NUMERIC, LC_TIME, LC_COLLATE, LC_MONETARY, LC_MESSAGES and LC_ALL.
759754
*
760755
* Note that the category must be specified with a numeric value, instead of the constant name. The values are:
761-
* LC_CTYPE 0
762-
* LC_NUMERIC 1
763-
* LC_TIME 2
764-
* LC_COLLATE 3
765-
* LC_MONETARY 4
766-
* LC_MESSAGES 5
767-
* LC_ALL 6
756+
*
757+
* - LC_ALL 0
758+
* - LC_COLLATE 1
759+
* - LC_CTYPE 2
760+
* - LC_MONETARY 3
761+
* - LC_NUMERIC 4
762+
* - LC_TIME 5
763+
* - LC_MESSAGES 6
768764
*
769765
* @param string $msg String to translate
770766
* @param integer $category Category
@@ -926,9 +922,8 @@ function http_build_query($data, $prefix = null, $argSep = null, $baseKey = null
926922
* Wraps ternary operations. If $condition is a non-empty value, $val1 is returned, otherwise $val2.
927923
* Don't use for isset() conditions, or wrap your variable with @ operator:
928924
* Example:
929-
* <code>
930-
* ife(isset($variable), @$variable, 'default');
931-
* </code>
925+
*
926+
* `ife(isset($variable), @$variable, 'default');`
932927
*
933928
* @param mixed $condition Conditional expression
934929
* @param mixed $val1 Value to return in case condition matches

0 commit comments

Comments
 (0)