var/classes/DataObject/Vehicle/Listing.php line 29

Open in your IDE?
  1. <?php
  2. namespace Pimcore\Model\DataObject\Vehicle;
  3. use Pimcore\Model;
  4. use Pimcore\Model\DataObject;
  5. /**
  6.  * @method DataObject\Vehicle|false current()
  7.  * @method DataObject\Vehicle[] load()
  8.  * @method DataObject\Vehicle[] getData()
  9.  * @method DataObject\Vehicle[] getObjects()
  10.  */
  11. class Listing extends DataObject\Listing\Concrete
  12. {
  13. protected $classId = "vehicle";
  14. protected $className = "vehicle";
  15. /**
  16. * Filter by internalVehicleId (Internal Vehicle Id)
  17. * @param string|int|float|array|Model\Element\ElementInterface $data  comparison data, can be scalar or array (if operator is e.g. "IN (?)")
  18. * @param string $operator  SQL comparison operator, e.g. =, <, >= etc. You can use "?" as placeholder, e.g. "IN (?)"
  19. * @return static
  20. */
  21. public function filterByInternalVehicleId ($data, $operator = '=')
  22. {
  23.     $this->getClass()->getFieldDefinition("internalVehicleId")->addListingFilter($this, $data, $operator);
  24.     return $this;
  25. }
  26. /**
  27. * Filter by filterRate (Filter Rate)
  28. * @param string|int|float|array|Model\Element\ElementInterface $data  comparison data, can be scalar or array (if operator is e.g. "IN (?)")
  29. * @param string $operator  SQL comparison operator, e.g. =, <, >= etc. You can use "?" as placeholder, e.g. "IN (?)"
  30. * @return static
  31. */
  32. public function filterByFilterRate ($data, $operator = '=')
  33. {
  34.     $this->getClass()->getFieldDefinition("filterRate")->addListingFilter($this, $data, $operator);
  35.     return $this;
  36. }
  37. /**
  38. * Filter by IncorrectDataLog (Incorrect Data Log)
  39. * @param string|int|float|array|Model\Element\ElementInterface $data  comparison data, can be scalar or array (if operator is e.g. "IN (?)")
  40. * @param string $operator  SQL comparison operator, e.g. =, <, >= etc. You can use "?" as placeholder, e.g. "IN (?)"
  41. * @return static
  42. */
  43. public function filterByIncorrectDataLog ($data, $operator = '=')
  44. {
  45.     $this->getClass()->getFieldDefinition("IncorrectDataLog")->addListingFilter($this, $data, $operator);
  46.     return $this;
  47. }
  48. /**
  49. * Filter by adId (mobile.de Ad-ID)
  50. * @param string|int|float|array|Model\Element\ElementInterface $data  comparison data, can be scalar or array (if operator is e.g. "IN (?)")
  51. * @param string $operator  SQL comparison operator, e.g. =, <, >= etc. You can use "?" as placeholder, e.g. "IN (?)"
  52. * @return static
  53. */
  54. public function filterByAdId ($data, $operator = '=')
  55. {
  56.     $this->getClass()->getFieldDefinition("adId")->addListingFilter($this, $data, $operator);
  57.     return $this;
  58. }
  59. /**
  60. * Filter by images (Images)
  61. * @param mixed $data
  62. * @param string $operator SQL comparison operator, e.g. =, <, >= etc. You can use "?" as placeholder, e.g. "IN (?)"
  63. * @return static
  64. */
  65. public function filterByImages ($data, $operator = '=')
  66. {
  67.     $this->getClass()->getFieldDefinition("images")->addListingFilter($this, $data, $operator);
  68.     return $this;
  69. }
  70. }