mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 11:06:15 +00:00
Merge branch '1.2' of code.cakephp.org:cakephp into 1.2
This commit is contained in:
commit
0949ea912d
2 changed files with 17 additions and 6 deletions
|
@ -905,7 +905,7 @@ class DboOracle extends DboSource {
|
|||
|
||||
switch (strtolower($type)) {
|
||||
case 'select':
|
||||
return "SELECT {$fields} FROM {$table} {$alias} {$joins} {$conditions} {$order} {$limit}";
|
||||
return "SELECT {$fields} FROM {$table} {$alias} {$joins} {$conditions} {$group} {$order} {$limit}";
|
||||
break;
|
||||
case 'create':
|
||||
return "INSERT INTO {$table} ({$fields}) VALUES ({$values})";
|
||||
|
|
|
@ -474,13 +474,24 @@ class FormHelper extends AppHelper {
|
|||
));
|
||||
}
|
||||
/**
|
||||
* Will display all the fields passed in an array expects fieldName as an array key
|
||||
* replaces generateFields
|
||||
* Generate a set of inputs for `$fields`. If $fields is null the current model
|
||||
* will be used.
|
||||
*
|
||||
* In addition to controller fields output, `$fields` can be used to control legend
|
||||
* and fieldset rendering with the `fieldset` and `legend` keys.
|
||||
* `$form->inputs(array('legend' => 'My legend'));` Would generate an input set with
|
||||
* a custom legend. You can customize individual inputs through `$fields` as well.
|
||||
*
|
||||
* {{{
|
||||
* $form->inputs(array(
|
||||
* 'name' => array('label' => 'custom label')
|
||||
* ));
|
||||
* }}}
|
||||
*
|
||||
* @param mixed $fields An array of fields to generate inputs for, or null.
|
||||
* @param array $blacklist a simple array of fields to skip.
|
||||
* @return string Completed form inputs.
|
||||
* @access public
|
||||
* @param array $fields works well with Controller::generateFields() or on its own;
|
||||
* @param array $blacklist a simple array of fields to skip
|
||||
* @return output
|
||||
*/
|
||||
function inputs($fields = null, $blacklist = null) {
|
||||
$fieldset = $legend = true;
|
||||
|
|
Loading…
Add table
Reference in a new issue