/** * Test for PMA_arrayKeyExists * * @param boolean $expected Expected result of the function * @param string $path Path in the array * @param array $array The array * * @return void * * @dataProvider provArrayKeyExists */ function testArrayKeyExists($expected, $path, $array) { $this->assertEquals($expected, PMA_arrayKeyExists($path, $array)); }
/** * Returns configuration array (full, multidimensional format) * * @return array */ public function getConfig() { $c = $_SESSION[$this->_id]; foreach ($this->_cfgUpdateReadMapping as $map_to => $map_from) { if (PMA_arrayKeyExists($map_to, $c)) { PMA_arrayWrite($map_to, $c, PMA_arrayRead($map_from, $c)); PMA_arrayRemove($map_from, $c); } } return $c; }