Skip to content

Commit c9b9f59

Browse files
committed
cms@1bf44ce
Finish 4.10.8
1 parent c8fbf2a commit c9b9f59

File tree

8 files changed

+0
-432
lines changed

8 files changed

+0
-432
lines changed

docs/.artifacts/cms/4.x/addresses.md

Lines changed: 0 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
| Param | Description
1010
| ----------------------------------------- | -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
11-
| [addOrderBy](#addorderby) | Adds additional ORDER BY columns to the query.
1211
| [administrativeArea](#administrativearea) | Narrows the query results based on the administrative area the assets belong to.
1312
| [afterPopulate](#afterpopulate) | Performs any post-population processing on elements.
1413
| [andRelatedTo](#andrelatedto) | Narrows the query results to only addresses that are related to certain other elements.
@@ -18,7 +17,6 @@
1817
| [countryCode](#countrycode) | Narrows the query results based on the country the assets belong to.
1918
| [dateCreated](#datecreated) | Narrows the query results based on the addresses’ creation dates.
2019
| [dateUpdated](#dateupdated) | Narrows the query results based on the addresses’ last-updated dates.
21-
| [fields](#fields) | Returns the list of fields that should be returned by default by [toArray()](https://www.yiiframework.com/doc/api/2.0/yii-base-arrayabletrait#toArray()-detail) when no specific fields are specified.
2220
| [fixedOrder](#fixedorder) | Causes the query results to be returned in the order specified by [id](#id).
2321
| [id](#id) | Narrows the query results based on the addresses’ IDs.
2422
| [ignorePlaceholders](#ignoreplaceholders) | Causes the query to return matching addresses as they are stored in the database, ignoring matching placeholder elements that were set by [craft\services\Elements::setPlaceholderElement()](https://docs.craftcms.com/api/v4/craft-services-elements.html#method-setplaceholderelement).
@@ -42,19 +40,6 @@
4240
<!-- textlint-enable -->
4341

4442

45-
#### `addOrderBy`
46-
47-
Adds additional ORDER BY columns to the query.
48-
49-
50-
51-
52-
53-
54-
55-
56-
57-
5843
#### `administrativeArea`
5944

6045
Narrows the query results based on the administrative area the assets belong to.
@@ -286,45 +271,6 @@ $addresses = \craft\elements\Address::find()
286271
:::
287272

288273

289-
#### `fields`
290-
291-
Returns the list of fields that should be returned by default by [toArray()](https://www.yiiframework.com/doc/api/2.0/yii-base-arrayabletrait#toArray()-detail) when no specific fields are specified.
292-
293-
A field is a named element in the returned array by [toArray()](https://www.yiiframework.com/doc/api/2.0/yii-base-arrayabletrait#toArray()-detail).
294-
This method should return an array of field names or field definitions.
295-
If the former, the field name will be treated as an object property name whose value will be used
296-
as the field value. If the latter, the array key should be the field name while the array value should be
297-
the corresponding field definition which can be either an object property name or a PHP callable
298-
returning the corresponding field value. The signature of the callable should be:
299-
300-
```php
301-
function ($model, $field) {
302-
// return field value
303-
}
304-
```
305-
306-
For example, the following code declares four fields:
307-
308-
- `email`: the field name is the same as the property name `email`;
309-
- `firstName` and `lastName`: the field names are `firstName` and `lastName`, and their
310-
values are obtained from the `first_name` and `last_name` properties;
311-
- `fullName`: the field name is `fullName`. Its value is obtained by concatenating `first_name`
312-
and `last_name`.
313-
314-
```php
315-
return [
316-
'email',
317-
'firstName' => 'first_name',
318-
'lastName' => 'last_name',
319-
'fullName' => function ($model) {
320-
return $model->first_name . ' ' . $model->last_name;
321-
},
322-
];
323-
```
324-
325-
326-
327-
328274
#### `fixedOrder`
329275

330276
Causes the query results to be returned in the order specified by [id](#id).

docs/.artifacts/cms/4.x/assets.md

Lines changed: 0 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
| Param | Description
1010
| ----------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
11-
| [addOrderBy](#addorderby) | Adds additional ORDER BY columns to the query.
1211
| [afterPopulate](#afterpopulate) | Performs any post-population processing on elements.
1312
| [andRelatedTo](#andrelatedto) | Narrows the query results to only assets that are related to certain other elements.
1413
| [asArray](#asarray) | Causes the query to return matching assets as arrays of data, rather than [Asset](craft4:craft\elements\Asset) objects.
@@ -17,7 +16,6 @@
1716
| [dateCreated](#datecreated) | Narrows the query results based on the assets’ creation dates.
1817
| [dateModified](#datemodified) | Narrows the query results based on the assets’ files’ last-modified dates.
1918
| [dateUpdated](#dateupdated) | Narrows the query results based on the assets’ last-updated dates.
20-
| [fields](#fields) | Returns the list of fields that should be returned by default by [toArray()](https://www.yiiframework.com/doc/api/2.0/yii-base-arrayabletrait#toArray()-detail) when no specific fields are specified.
2119
| [filename](#filename) | Narrows the query results based on the assets’ filenames.
2220
| [fixedOrder](#fixedorder) | Causes the query results to be returned in the order specified by [id](#id).
2321
| [folderId](#folderid) | Narrows the query results based on the folders the assets belong to, per the folders’ IDs.
@@ -57,19 +55,6 @@
5755
<!-- textlint-enable -->
5856

5957

60-
#### `addOrderBy`
61-
62-
Adds additional ORDER BY columns to the query.
63-
64-
65-
66-
67-
68-
69-
70-
71-
72-
7358
#### `afterPopulate`
7459

7560
Performs any post-population processing on elements.
@@ -273,45 +258,6 @@ $assets = \craft\elements\Asset::find()
273258
:::
274259

275260

276-
#### `fields`
277-
278-
Returns the list of fields that should be returned by default by [toArray()](https://www.yiiframework.com/doc/api/2.0/yii-base-arrayabletrait#toArray()-detail) when no specific fields are specified.
279-
280-
A field is a named element in the returned array by [toArray()](https://www.yiiframework.com/doc/api/2.0/yii-base-arrayabletrait#toArray()-detail).
281-
This method should return an array of field names or field definitions.
282-
If the former, the field name will be treated as an object property name whose value will be used
283-
as the field value. If the latter, the array key should be the field name while the array value should be
284-
the corresponding field definition which can be either an object property name or a PHP callable
285-
returning the corresponding field value. The signature of the callable should be:
286-
287-
```php
288-
function ($model, $field) {
289-
// return field value
290-
}
291-
```
292-
293-
For example, the following code declares four fields:
294-
295-
- `email`: the field name is the same as the property name `email`;
296-
- `firstName` and `lastName`: the field names are `firstName` and `lastName`, and their
297-
values are obtained from the `first_name` and `last_name` properties;
298-
- `fullName`: the field name is `fullName`. Its value is obtained by concatenating `first_name`
299-
and `last_name`.
300-
301-
```php
302-
return [
303-
'email',
304-
'firstName' => 'first_name',
305-
'lastName' => 'last_name',
306-
'fullName' => function ($model) {
307-
return $model->first_name . ' ' . $model->last_name;
308-
},
309-
];
310-
```
311-
312-
313-
314-
315261
#### `filename`
316262

317263
Narrows the query results based on the assets’ filenames.

docs/.artifacts/cms/4.x/categories.md

Lines changed: 0 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
| Param | Description
1010
| ----------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
11-
| [addOrderBy](#addorderby) | Adds additional ORDER BY columns to the query.
1211
| [afterPopulate](#afterpopulate) | Performs any post-population processing on elements.
1312
| [ancestorDist](#ancestordist) | Narrows the query results to only categories that are up to a certain distance away from the category specified by [ancestorOf](#ancestorof).
1413
| [ancestorOf](#ancestorof) | Narrows the query results to only categories that are ancestors of another category in its structure.
@@ -20,7 +19,6 @@
2019
| [dateUpdated](#dateupdated) | Narrows the query results based on the categories’ last-updated dates.
2120
| [descendantDist](#descendantdist) | Narrows the query results to only categories that are up to a certain distance away from the category specified by [descendantOf](#descendantof).
2221
| [descendantOf](#descendantof) | Narrows the query results to only categories that are descendants of another category in its structure.
23-
| [fields](#fields) | Returns the list of fields that should be returned by default by [toArray()](https://www.yiiframework.com/doc/api/2.0/yii-base-arrayabletrait#toArray()-detail) when no specific fields are specified.
2422
| [fixedOrder](#fixedorder) | Causes the query results to be returned in the order specified by [id](#id).
2523
| [group](#group) | Narrows the query results based on the category groups the categories belong to.
2624
| [groupId](#groupid) | Narrows the query results based on the category groups the categories belong to, per the groups’ IDs.
@@ -59,19 +57,6 @@
5957
<!-- textlint-enable -->
6058

6159

62-
#### `addOrderBy`
63-
64-
Adds additional ORDER BY columns to the query.
65-
66-
67-
68-
69-
70-
71-
72-
73-
74-
7560
#### `afterPopulate`
7661

7762
Performs any post-population processing on elements.
@@ -369,45 +354,6 @@ This can be combined with [descendantDist](#descendantdist) if you want to limit
369354
:::
370355

371356

372-
#### `fields`
373-
374-
Returns the list of fields that should be returned by default by [toArray()](https://www.yiiframework.com/doc/api/2.0/yii-base-arrayabletrait#toArray()-detail) when no specific fields are specified.
375-
376-
A field is a named element in the returned array by [toArray()](https://www.yiiframework.com/doc/api/2.0/yii-base-arrayabletrait#toArray()-detail).
377-
This method should return an array of field names or field definitions.
378-
If the former, the field name will be treated as an object property name whose value will be used
379-
as the field value. If the latter, the array key should be the field name while the array value should be
380-
the corresponding field definition which can be either an object property name or a PHP callable
381-
returning the corresponding field value. The signature of the callable should be:
382-
383-
```php
384-
function ($model, $field) {
385-
// return field value
386-
}
387-
```
388-
389-
For example, the following code declares four fields:
390-
391-
- `email`: the field name is the same as the property name `email`;
392-
- `firstName` and `lastName`: the field names are `firstName` and `lastName`, and their
393-
values are obtained from the `first_name` and `last_name` properties;
394-
- `fullName`: the field name is `fullName`. Its value is obtained by concatenating `first_name`
395-
and `last_name`.
396-
397-
```php
398-
return [
399-
'email',
400-
'firstName' => 'first_name',
401-
'lastName' => 'last_name',
402-
'fullName' => function ($model) {
403-
return $model->first_name . ' ' . $model->last_name;
404-
},
405-
];
406-
```
407-
408-
409-
410-
411357
#### `fixedOrder`
412358

413359
Causes the query results to be returned in the order specified by [id](#id).

docs/.artifacts/cms/4.x/entries.md

Lines changed: 0 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
| Param | Description
1010
| ----------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
11-
| [addOrderBy](#addorderby) | Adds additional ORDER BY columns to the query.
1211
| [after](#after) | Narrows the query results to only entries that were posted on or after a certain date.
1312
| [afterPopulate](#afterpopulate) | Performs any post-population processing on elements.
1413
| [ancestorDist](#ancestordist) | Narrows the query results to only entries that are up to a certain distance away from the entry specified by [ancestorOf](#ancestorof).
@@ -30,7 +29,6 @@
3029
| [draftOf](#draftof) | Narrows the query results to only drafts of a given entry.
3130
| [drafts](#drafts) | Narrows the query results to only drafts entries.
3231
| [expiryDate](#expirydate) | Narrows the query results based on the entries’ expiry dates.
33-
| [fields](#fields) | Returns the list of fields that should be returned by default by [toArray()](https://www.yiiframework.com/doc/api/2.0/yii-base-arrayabletrait#toArray()-detail) when no specific fields are specified.
3432
| [fixedOrder](#fixedorder) | Causes the query results to be returned in the order specified by [id](#id).
3533
| [hasDescendants](#hasdescendants) | Narrows the query results based on whether the entries have any descendants in their structure.
3634
| [id](#id) | Narrows the query results based on the entries’ IDs.
@@ -79,19 +77,6 @@
7977
<!-- textlint-enable -->
8078

8179

82-
#### `addOrderBy`
83-
84-
Adds additional ORDER BY columns to the query.
85-
86-
87-
88-
89-
90-
91-
92-
93-
94-
9580
#### `after`
9681

9782
Narrows the query results to only entries that were posted on or after a certain date.
@@ -719,45 +704,6 @@ $entries = \craft\elements\Entry::find()
719704
:::
720705

721706

722-
#### `fields`
723-
724-
Returns the list of fields that should be returned by default by [toArray()](https://www.yiiframework.com/doc/api/2.0/yii-base-arrayabletrait#toArray()-detail) when no specific fields are specified.
725-
726-
A field is a named element in the returned array by [toArray()](https://www.yiiframework.com/doc/api/2.0/yii-base-arrayabletrait#toArray()-detail).
727-
This method should return an array of field names or field definitions.
728-
If the former, the field name will be treated as an object property name whose value will be used
729-
as the field value. If the latter, the array key should be the field name while the array value should be
730-
the corresponding field definition which can be either an object property name or a PHP callable
731-
returning the corresponding field value. The signature of the callable should be:
732-
733-
```php
734-
function ($model, $field) {
735-
// return field value
736-
}
737-
```
738-
739-
For example, the following code declares four fields:
740-
741-
- `email`: the field name is the same as the property name `email`;
742-
- `firstName` and `lastName`: the field names are `firstName` and `lastName`, and their
743-
values are obtained from the `first_name` and `last_name` properties;
744-
- `fullName`: the field name is `fullName`. Its value is obtained by concatenating `first_name`
745-
and `last_name`.
746-
747-
```php
748-
return [
749-
'email',
750-
'firstName' => 'first_name',
751-
'lastName' => 'last_name',
752-
'fullName' => function ($model) {
753-
return $model->first_name . ' ' . $model->last_name;
754-
},
755-
];
756-
```
757-
758-
759-
760-
761707
#### `fixedOrder`
762708

763709
Causes the query results to be returned in the order specified by [id](#id).

0 commit comments

Comments
 (0)