mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Merging changes to Set class into 1.1.x.x
Added doc comment for Set::reverse() merged changes in DboSource and DboPostgres into 1.1.x.x git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5420 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
49817ea42d
commit
1713dcdfb2
1 changed files with 6 additions and 1 deletions
|
@ -662,7 +662,12 @@ class Set extends Object {
|
||||||
|
|
||||||
return array_combine($keys, $vals);
|
return array_combine($keys, $vals);
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* Converts an object into an array
|
||||||
|
*
|
||||||
|
* @param object $object
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
function reverse($object) {
|
function reverse($object) {
|
||||||
if (is_object($object)) {
|
if (is_object($object)) {
|
||||||
$merge = array();
|
$merge = array();
|
||||||
|
|
Loading…
Reference in a new issue