mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6357 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
aeaeb97a49
commit
aa7ca4e703
2 changed files with 2 additions and 16 deletions
|
@ -2189,17 +2189,7 @@ class Model extends Overloadable {
|
|||
return $this->displayField;
|
||||
}
|
||||
/**
|
||||
* Returns a resultset array with specified fields from database matching given conditions.
|
||||
* Method can be used to generate option lists for SELECT elements.
|
||||
*
|
||||
* @param mixed $conditions SQL conditions as a string or as an array('field' =>'value',...)
|
||||
* @param string $order SQL ORDER BY conditions (e.g. "price DESC" or "name ASC")
|
||||
* @param integer $limit SQL LIMIT clause, for calculating items per page
|
||||
* @param string $keyPath A string path to the key, i.e. "{n}.Post.id"
|
||||
* @param string $valuePath A string path to the value, i.e. "{n}.Post.title"
|
||||
* @param string $groupPath A string path to a value to group the elements by, i.e. "{n}.Post.category_id"
|
||||
* @return array An associative array of records, where the id is the key, and the display field is the value
|
||||
* @access public
|
||||
* @deprecated
|
||||
*/
|
||||
function generateList($conditions = null, $order = null, $limit = null, $keyPath = null, $valuePath = null, $groupPath = null) {
|
||||
trigger_error(__('(Model::generateList) Deprecated, use Model::find("list") or Model::find("all") and Set::combine()', true), E_USER_WARNING);
|
||||
|
|
|
@ -969,11 +969,7 @@ class FormHelper extends AppHelper {
|
|||
return $out;
|
||||
}
|
||||
/**
|
||||
* Creates an image input widget.
|
||||
*
|
||||
* @param string $path Path to the image file, relative to the webroot/img/ directory.
|
||||
* @param array $options Array of HTML attributes.
|
||||
* @return string HTML submit image element
|
||||
* @deprecated
|
||||
*/
|
||||
function submitImage($path, $options = array()) {
|
||||
trigger_error("FormHelper::submitImage() is deprecated. Use \$form->submit('path/to/img.gif')", E_USER_WARNING);
|
||||
|
|
Loading…
Add table
Reference in a new issue