mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 17:16:18 +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)) {
|
switch (strtolower($type)) {
|
||||||
case 'select':
|
case 'select':
|
||||||
return "SELECT {$fields} FROM {$table} {$alias} {$joins} {$conditions} {$order} {$limit}";
|
return "SELECT {$fields} FROM {$table} {$alias} {$joins} {$conditions} {$group} {$order} {$limit}";
|
||||||
break;
|
break;
|
||||||
case 'create':
|
case 'create':
|
||||||
return "INSERT INTO {$table} ({$fields}) VALUES ({$values})";
|
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
|
* Generate a set of inputs for `$fields`. If $fields is null the current model
|
||||||
* replaces generateFields
|
* 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
|
* @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) {
|
function inputs($fields = null, $blacklist = null) {
|
||||||
$fieldset = $legend = true;
|
$fieldset = $legend = true;
|
||||||
|
|
Loading…
Add table
Reference in a new issue