mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #4977 from tractorcow/pulls/3.2/fix-idlist-docs
FIX PHPDocs on DataList::getIDList() and UnsavedRelationList::getIDList
This commit is contained in:
commit
60c97dbf14
@ -916,7 +916,9 @@ class DataList extends ViewableData implements SS_List, SS_Filterable, SS_Sortab
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns an array with both the keys and values set to the IDs of the records in this list.
|
* Returns an array with both the keys and values set to the IDs of the records in this list.
|
||||||
|
* Does not respect sort order. Use ->column("ID") to get an ID list with the current sort.
|
||||||
*
|
*
|
||||||
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function getIDList() {
|
public function getIDList() {
|
||||||
$ids = $this->column("ID");
|
$ids = $this->column("ID");
|
||||||
|
@ -206,8 +206,10 @@ class UnsavedRelationList extends ArrayList {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns an array with both the keys and values set to the IDs of the records in this list.
|
* Returns an array with both the keys and values set to the IDs of the records in this list.
|
||||||
|
* Does not respect sort order. Use ->column("ID") to get an ID list with the current sort.
|
||||||
|
* Does not return the IDs for unsaved DataObjects.
|
||||||
*
|
*
|
||||||
* Does not return the IDs for unsaved DataObjects
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function getIDList() {
|
public function getIDList() {
|
||||||
// Get a list of IDs of our current items - if it's not a number then object then assume it's a DO.
|
// Get a list of IDs of our current items - if it's not a number then object then assume it's a DO.
|
||||||
|
Loading…
Reference in New Issue
Block a user