/**
  * Constructs a new MapLocationDistance SortClause on Type $typeIdentifier and Field $fieldIdentifier.
  *
  * @param string $typeIdentifier ContentType identifier
  * @param string $fieldIdentifier FieldDefinition identifier
  * @param float $latitude Latitude of the location that distance is calculated from
  * @param float $longitude Longitude of the location that distance is calculated from
  * @param string $sortDirection
  * @param null|string $languageCode
  */
 public function __construct($typeIdentifier, $fieldIdentifier, $latitude, $longitude, $sortDirection = Query::SORT_ASC, $languageCode = null)
 {
     parent::__construct('maplocation_distance', $sortDirection, new MapLocationTarget($latitude, $longitude, $typeIdentifier, $fieldIdentifier, $languageCode));
 }
Esempio n. 2
0
 /**
  * Constructs a new SectionName SortClause
  * @param string $sortDirection
  */
 public function __construct($sortDirection = Query::SORT_ASC)
 {
     parent::__construct('section_name', $sortDirection);
 }
Esempio n. 3
0
 /**
  * Constructs a new Field SortClause on Type $typeIdentifier and Field $fieldIdentifier
  *
  * @param string $typeIdentifier
  * @param string $fieldIdentifier
  * @param string $sortDirection
  * @param null|string $languageCode
  */
 public function __construct($typeIdentifier, $fieldIdentifier, $sortDirection = Query::SORT_ASC, $languageCode = null)
 {
     parent::__construct('field', $sortDirection, new FieldTarget($typeIdentifier, $fieldIdentifier, $languageCode));
 }
 /**
  * Constructs a new LocationPriority SortClause
  * @param string $sortDirection
  *
  * @deprecated Since 5.3, use Location search instead
  */
 public function __construct($sortDirection = Query::SORT_ASC)
 {
     parent::__construct('location_priority', $sortDirection);
 }
Esempio n. 5
0
 /**
  * Constructs a new ContentId SortClause.
  *
  * @param string $sortDirection
  */
 public function __construct($sortDirection = Query::SORT_ASC)
 {
     parent::__construct('content_id', $sortDirection);
 }
Esempio n. 6
0
 /**
  * Constructs a new Field SortClause on Type $typeIdentifier and Field $fieldIdentifier.
  *
  * @param string $typeIdentifier
  * @param string $fieldIdentifier
  * @param string $sortDirection
  */
 public function __construct($typeIdentifier, $fieldIdentifier, $sortDirection = Query::SORT_ASC)
 {
     parent::__construct('field', $sortDirection, new FieldTarget($typeIdentifier, $fieldIdentifier));
 }
 /**
  * Constructs a new LocationPathString SortClause
  * @param string $sortDirection
  *
  * @deprecated Since 5.3, use Location search instead
  */
 public function __construct($sortDirection = Query::SORT_ASC)
 {
     parent::__construct('location_path_string', $sortDirection);
 }
Esempio n. 8
0
 /**
  * Constructs a new DateModified SortClause.
  *
  * @param string $sortDirection
  */
 public function __construct($sortDirection = Query::SORT_ASC)
 {
     parent::__construct('date_modified', $sortDirection);
 }