Skip to content

Commit b40a4d1

Browse files
author
Bertrand Dunogier
committed
Unified examples a bit
1 parent 9cfbe1c commit b40a4d1

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

doc/examples/gallery_images/README.md renamed to doc/examples/children/README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
### Gallery images query field
2-
A field that lists the images of a gallery.
2+
A field that lists the children of a given type below the current location.
33

44
#### Content type configuration
55
The following assumes a "gallery" content type with an "images" query field.
6-
The actual images are sub-items of the gallery.
6+
The images are the sub-items of the gallery.
7+
78

89
##### Query type
9-
AppBundle:Children
10+
`AppBundle:Children` (defined in `ChildrenQueryType.php`)
1011

1112
##### Returned type
1213
Image

doc/examples/nearby_places/README.md renamed to doc/examples/map_location_distance/README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
### Nearby places query field
2-
3-
A field that lists Place items located close to the current item.
2+
A field that returns items based on their distance relative to the current item.
43

54
#### Content type configuration
65
The following assumes a "place" content item with a "location" map location
76
field definition.
87

98
##### Query type
10-
"Nearby places" (see [NearbyPlacesQueryType](NearbyPlacesQueryType.php).
9+
"RelativeDistance" (see [NearbyPlacesQueryType](NearbyPlacesQueryType.php).
1110

1211
##### Parameters
1312
```yaml

doc/examples/nearby_places/NearbyPlacesQueryType.php renamed to doc/examples/map_location_distance/RelativeDistanceQueryType.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
* @copyright Copyright (C) eZ Systems AS. All rights reserved.
55
* @license For full copyright and license information view LICENSE file distributed with this source code.
66
*/
7-
namespace App\QueryType;
7+
namespace AppBundle\QueryType;
88

99
use eZ\Publish\API\Repository\Values\Content\Query;
1010
use eZ\Publish\API\Repository\Values\Content\Query\Criterion;
1111
use eZ\Publish\Core\QueryType\QueryType;
1212

13-
class NearbyPlacesQueryType implements QueryType
13+
class RelativeDistanceQueryType implements QueryType
1414
{
1515
public function getQuery(array $parameters = [])
1616
{
@@ -35,6 +35,6 @@ public function getSupportedParameters()
3535

3636
public static function getName()
3737
{
38-
return 'NearbyPlaces';
38+
return 'RelativeDistance';
3939
}
4040
}
File renamed without changes.

0 commit comments

Comments
 (0)