/** * Element plugin specific method for setting unecrypted values baack into post data * * @param array &$post data passed by ref * @param string $key key * @param string $data elements unencrypted data * * @return void */ public function setValuesFromEncryt(&$post, $key, $data) { $group = $this->getGroup(); if ($group->isJoin()) { $jkey = 'join.' . $group->getGroup()->join_id . '.' . $key; FArrayHelper::setValue($post, $jkey, $data); FArrayHelper::setValue($_REQUEST, $jkey, $data); // Seems the only way to add it into $post? FArrayHelper bug I guess but too scared to alter that at the moement $post['join'][$group->getGroup()->join_id][$key] = $data; } else { FArrayHelper::setValue($post, $key, $data); FArrayHelper::setValue($_REQUEST, $key, $data); } // $$$rob even though $post is passed by reference - by adding in the value // we arent actually modifiying the $_POST var that post was created from JRequest::setVar($key, $data); }
/** * element plugin specific method for setting unecrypted values baack into post data * @param aray $post data passed by ref * @param string $key * @param string $data elements unencrypted data * @return null */ function setValuesFromEncryt(&$post, $key, $data) { $group = $this->getGroup(); if ($group->isJoin()) { $key = 'join.' . $group->getGroup()->join_id . '.' . $key; FArrayHelper::setValue($post, $key, $data); FArrayHelper::setValue($_REQUEST, $key, $data); } else { FArrayHelper::setValue($post, $key, $data); FArrayHelper::setValue($_REQUEST, $key, $data); } // $$$rob even though $post is passed by reference - by adding in the value // we arent actually modifiying the $_POST var that post was created from JRequest::setVar($key, $data); }
/** * Element plugin specific method for setting unencrypted values back into post data * * @param array &$post Data passed by ref * @param string $key Key * @param string $data Elements unencrypted data * * @return void */ public function setValuesFromEncryt(&$post, $key, $data) { FArrayHelper::setValue($post, $key, $data); FArrayHelper::setValue($_REQUEST, $key, $data); // $$$rob even though $post is passed by reference - by adding in the value // we aren't actually modifying the $_POST var that post was created from $this->app->input->set($key, $data); }