var/classes/DataObject/Projekt/Listing.php line 15

Open in your IDE?
  1. <?php
  2. namespace Pimcore\Model\DataObject\Projekt;
  3. use Pimcore\Model;
  4. use Pimcore\Model\DataObject;
  5. /**
  6.  * @method DataObject\Projekt|false current()
  7.  * @method DataObject\Projekt[] load()
  8.  * @method DataObject\Projekt[] getData()
  9.  * @method DataObject\Projekt[] getObjects()
  10.  */
  11. class Listing extends DataObject\Listing\Concrete
  12. {
  13. protected $classId "Projekt";
  14. protected $className "Projekt";
  15. /**
  16. * Filter by date (Date)
  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 filterByDate ($data$operator '=')
  22. {
  23.     $this->getClass()->getFieldDefinition("date")->addListingFilter($this$data$operator);
  24.     return $this;
  25. }
  26. /**
  27. * Filter by category (Category)
  28. * @param mixed $data
  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 filterByCategory ($data$operator '=')
  33. {
  34.     $this->getClass()->getFieldDefinition("category")->addListingFilter($this$data$operator);
  35.     return $this;
  36. }
  37. /**
  38. * Filter by maintitle (Maintitle)
  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 filterByMaintitle ($data$operator '=')
  44. {
  45.     $this->getClass()->getFieldDefinition("maintitle")->addListingFilter($this$data$operator);
  46.     return $this;
  47. }
  48. /**
  49. * Filter by intro (Intro)
  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 filterByIntro ($data$operator '=')
  55. {
  56.     $this->getClass()->getFieldDefinition("intro")->addListingFilter($this$data$operator);
  57.     return $this;
  58. }
  59. /**
  60. * Filter by textLeft (Text Left)
  61. * @param string|int|float|array|Model\Element\ElementInterface $data  comparison data, can be scalar or array (if operator is e.g. "IN (?)")
  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 filterByTextLeft ($data$operator '=')
  66. {
  67.     $this->getClass()->getFieldDefinition("textLeft")->addListingFilter($this$data$operator);
  68.     return $this;
  69. }
  70. /**
  71. * Filter by textRight (Text Right)
  72. * @param string|int|float|array|Model\Element\ElementInterface $data  comparison data, can be scalar or array (if operator is e.g. "IN (?)")
  73. * @param string $operator  SQL comparison operator, e.g. =, <, >= etc. You can use "?" as placeholder, e.g. "IN (?)"
  74. * @return static
  75. */
  76. public function filterByTextRight ($data$operator '=')
  77. {
  78.     $this->getClass()->getFieldDefinition("textRight")->addListingFilter($this$data$operator);
  79.     return $this;
  80. }
  81. /**
  82. * Filter by image (Image)
  83. * @param string|int|float|array|Model\Element\ElementInterface $data  comparison data, can be scalar or array (if operator is e.g. "IN (?)")
  84. * @param string $operator  SQL comparison operator, e.g. =, <, >= etc. You can use "?" as placeholder, e.g. "IN (?)"
  85. * @return static
  86. */
  87. public function filterByImage ($data$operator '=')
  88. {
  89.     $this->getClass()->getFieldDefinition("image")->addListingFilter($this$data$operator);
  90.     return $this;
  91. }
  92. /**
  93. * Filter by shadowImage (Shadow Image)
  94. * @param string|int|float|array|Model\Element\ElementInterface $data  comparison data, can be scalar or array (if operator is e.g. "IN (?)")
  95. * @param string $operator  SQL comparison operator, e.g. =, <, >= etc. You can use "?" as placeholder, e.g. "IN (?)"
  96. * @return static
  97. */
  98. public function filterByShadowImage ($data$operator '=')
  99. {
  100.     $this->getClass()->getFieldDefinition("shadowImage")->addListingFilter($this$data$operator);
  101.     return $this;
  102. }
  103. }