<?php
namespace Pimcore\Model\DataObject\Projekt;
use Pimcore\Model;
use Pimcore\Model\DataObject;
/**
* @method DataObject\Projekt|false current()
* @method DataObject\Projekt[] load()
* @method DataObject\Projekt[] getData()
* @method DataObject\Projekt[] getObjects()
*/
class Listing extends DataObject\Listing\Concrete
{
protected $classId = "Projekt";
protected $className = "Projekt";
/**
* Filter by date (Date)
* @param string|int|float|array|Model\Element\ElementInterface $data comparison data, can be scalar or array (if operator is e.g. "IN (?)")
* @param string $operator SQL comparison operator, e.g. =, <, >= etc. You can use "?" as placeholder, e.g. "IN (?)"
* @return static
*/
public function filterByDate ($data, $operator = '=')
{
$this->getClass()->getFieldDefinition("date")->addListingFilter($this, $data, $operator);
return $this;
}
/**
* Filter by category (Category)
* @param mixed $data
* @param string $operator SQL comparison operator, e.g. =, <, >= etc. You can use "?" as placeholder, e.g. "IN (?)"
* @return static
*/
public function filterByCategory ($data, $operator = '=')
{
$this->getClass()->getFieldDefinition("category")->addListingFilter($this, $data, $operator);
return $this;
}
/**
* Filter by maintitle (Maintitle)
* @param string|int|float|array|Model\Element\ElementInterface $data comparison data, can be scalar or array (if operator is e.g. "IN (?)")
* @param string $operator SQL comparison operator, e.g. =, <, >= etc. You can use "?" as placeholder, e.g. "IN (?)"
* @return static
*/
public function filterByMaintitle ($data, $operator = '=')
{
$this->getClass()->getFieldDefinition("maintitle")->addListingFilter($this, $data, $operator);
return $this;
}
/**
* Filter by intro (Intro)
* @param string|int|float|array|Model\Element\ElementInterface $data comparison data, can be scalar or array (if operator is e.g. "IN (?)")
* @param string $operator SQL comparison operator, e.g. =, <, >= etc. You can use "?" as placeholder, e.g. "IN (?)"
* @return static
*/
public function filterByIntro ($data, $operator = '=')
{
$this->getClass()->getFieldDefinition("intro")->addListingFilter($this, $data, $operator);
return $this;
}
/**
* Filter by textLeft (Text Left)
* @param string|int|float|array|Model\Element\ElementInterface $data comparison data, can be scalar or array (if operator is e.g. "IN (?)")
* @param string $operator SQL comparison operator, e.g. =, <, >= etc. You can use "?" as placeholder, e.g. "IN (?)"
* @return static
*/
public function filterByTextLeft ($data, $operator = '=')
{
$this->getClass()->getFieldDefinition("textLeft")->addListingFilter($this, $data, $operator);
return $this;
}
/**
* Filter by textRight (Text Right)
* @param string|int|float|array|Model\Element\ElementInterface $data comparison data, can be scalar or array (if operator is e.g. "IN (?)")
* @param string $operator SQL comparison operator, e.g. =, <, >= etc. You can use "?" as placeholder, e.g. "IN (?)"
* @return static
*/
public function filterByTextRight ($data, $operator = '=')
{
$this->getClass()->getFieldDefinition("textRight")->addListingFilter($this, $data, $operator);
return $this;
}
/**
* Filter by image (Image)
* @param string|int|float|array|Model\Element\ElementInterface $data comparison data, can be scalar or array (if operator is e.g. "IN (?)")
* @param string $operator SQL comparison operator, e.g. =, <, >= etc. You can use "?" as placeholder, e.g. "IN (?)"
* @return static
*/
public function filterByImage ($data, $operator = '=')
{
$this->getClass()->getFieldDefinition("image")->addListingFilter($this, $data, $operator);
return $this;
}
/**
* Filter by shadowImage (Shadow Image)
* @param string|int|float|array|Model\Element\ElementInterface $data comparison data, can be scalar or array (if operator is e.g. "IN (?)")
* @param string $operator SQL comparison operator, e.g. =, <, >= etc. You can use "?" as placeholder, e.g. "IN (?)"
* @return static
*/
public function filterByShadowImage ($data, $operator = '=')
{
$this->getClass()->getFieldDefinition("shadowImage")->addListingFilter($this, $data, $operator);
return $this;
}
}