<?php
namespace Pimcore\Model\DataObject\News;
use Pimcore\Model;
use Pimcore\Model\DataObject;
/**
* @method DataObject\News|false current()
* @method DataObject\News[] load()
* @method DataObject\News[] getData()
* @method DataObject\News[] getObjects()
*/
class Listing extends DataObject\Listing\Concrete
{
protected $classId = "News";
protected $className = "News";
/**
* 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 headline (Headline)
* @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 filterByHeadline ($data, $operator = '=')
{
$this->getClass()->getFieldDefinition("headline")->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 teaserImage (Teaser Image)
* @param mixed $data
* @param string $operator SQL comparison operator, e.g. =, <, >= etc. You can use "?" as placeholder, e.g. "IN (?)"
* @return static
*/
public function filterByTeaserImage ($data, $operator = '=')
{
$this->getClass()->getFieldDefinition("teaserImage")->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;
}
}