@@ -74,8 +74,8 @@ |
||
74 | 74 | |
75 | 75 | /** |
76 | 76 | * Hook the result-set given into a Query class, suitable for use by SilverStripe. |
77 | - * @param mysqli_stmt $statement The related statement, if present |
|
78 | - * @param mysqli_result $metadata The metadata for this statement |
|
77 | + * @param \mysqli_stmt $statement The related statement, if present |
|
78 | + * @param \mysqli_result $metadata The metadata for this statement |
|
79 | 79 | */ |
80 | 80 | public function __construct($statement, $metadata) { |
81 | 81 | $this->statement = $statement; |
@@ -5,7 +5,6 @@ |
||
5 | 5 | use SilverStripe\Filesystem\ImageManipulation; |
6 | 6 | use SilverStripe\Filesystem\Storage\AssetContainer; |
7 | 7 | use SilverStripe\Filesystem\Storage\AssetStore; |
8 | - |
|
9 | 8 | use Injector; |
10 | 9 | use AssetField; |
11 | 10 | use File; |
@@ -9,9 +9,6 @@ |
||
9 | 9 | use Injector; |
10 | 10 | use ArrayIterator; |
11 | 11 | use ViewableData; |
12 | - |
|
13 | - |
|
14 | - |
|
15 | 12 | use SilverStripe\Model\Filterable; |
16 | 13 | use SilverStripe\Model\Sortable; |
17 | 14 | use SilverStripe\Model\Limitable; |
@@ -9,9 +9,6 @@ |
||
9 | 9 | use Injector; |
10 | 10 | use ArrayIterator; |
11 | 11 | use ViewableData; |
12 | - |
|
13 | - |
|
14 | - |
|
15 | 12 | use SilverStripe\Model\Filterable; |
16 | 13 | use SilverStripe\Model\Sortable; |
17 | 14 | use SilverStripe\Model\Limitable; |
@@ -397,7 +397,7 @@ discard block |
||
397 | 397 | * |
398 | 398 | * Note that columns may be double quoted as per ANSI sql standard |
399 | 399 | * |
400 | - * @return DataList |
|
400 | + * @return ArrayList |
|
401 | 401 | * @see SS_List::sort() |
402 | 402 | * @example $list->sort('Name'); // default ASC sorting |
403 | 403 | * @example $list->sort('Name DESC'); // DESC sorting |
@@ -533,7 +533,7 @@ discard block |
||
533 | 533 | * $list = $list->filterAny(array('Name'=>array('bob','phil'), 'Age'=>array(21, 43))); |
534 | 534 | * |
535 | 535 | * @param string|array See {@link filter()} |
536 | - * @return DataList |
|
536 | + * @return ArrayList |
|
537 | 537 | */ |
538 | 538 | public function filterAny() { |
539 | 539 | $keepUs = call_user_func_array(array($this, 'normaliseFilterArgs'), func_get_args()); |
@@ -600,6 +600,9 @@ discard block |
||
600 | 600 | return $this->filter('ID', $ids); |
601 | 601 | } |
602 | 602 | |
603 | + /** |
|
604 | + * @param integer $id |
|
605 | + */ |
|
603 | 606 | public function byID($id) { |
604 | 607 | $firstElement = $this->filter("ID", $id)->first(); |
605 | 608 | |
@@ -684,7 +687,6 @@ discard block |
||
684 | 687 | /** |
685 | 688 | * Returns whether an item with $key exists |
686 | 689 | * |
687 | - * @param mixed $key |
|
688 | 690 | * @return bool |
689 | 691 | */ |
690 | 692 | public function offsetExists($offset) { |
@@ -694,7 +696,6 @@ discard block |
||
694 | 696 | /** |
695 | 697 | * Returns item stored in list with index $key |
696 | 698 | * |
697 | - * @param mixed $key |
|
698 | 699 | * @return DataObject |
699 | 700 | */ |
700 | 701 | public function offsetGet($offset) { |
@@ -704,7 +705,6 @@ discard block |
||
704 | 705 | /** |
705 | 706 | * Set an item with the key in $key |
706 | 707 | * |
707 | - * @param mixed $key |
|
708 | 708 | * @param mixed $value |
709 | 709 | */ |
710 | 710 | public function offsetSet($offset, $value) { |
@@ -718,7 +718,6 @@ discard block |
||
718 | 718 | /** |
719 | 719 | * Unset an item with the key in $key |
720 | 720 | * |
721 | - * @param mixed $key |
|
722 | 721 | */ |
723 | 722 | public function offsetUnset($offset) { |
724 | 723 | unset($this->items[$offset]); |
@@ -5,7 +5,6 @@ |
||
5 | 5 | use SilverStripe\Filesystem\ImageManipulation; |
6 | 6 | use SilverStripe\Filesystem\Storage\AssetContainer; |
7 | 7 | use SilverStripe\Filesystem\Storage\AssetStore; |
8 | - |
|
9 | 8 | use Injector; |
10 | 9 | use AssetField; |
11 | 10 | use File; |