<?php
namespace Pimcore\Model\DataObject\MediaArticle;
use Pimcore\Model;
use Pimcore\Model\DataObject;
/**
* @method DataObject\MediaArticle|false current()
* @method DataObject\MediaArticle[] load()
* @method DataObject\MediaArticle[] getData()
* @method DataObject\MediaArticle[] getObjects()
*/
class Listing extends DataObject\Listing\Concrete
{
protected $classId = "5";
protected $className = "MediaArticle";
/**
* Filter by title (Title)
* @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 filterByTitle ($data, $operator = '=')
{
$this->getClass()->getFieldDefinition("title")->addListingFilter($this, $data, $operator);
return $this;
}
/**
* 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 introtext (Text on tile)
* @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 filterByIntrotext ($data, $operator = '=')
{
$this->getClass()->getFieldDefinition("introtext")->addListingFilter($this, $data, $operator);
return $this;
}
/**
* Filter by category (Category)
* @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 filterByCategory ($data, $operator = '=')
{
$this->getClass()->getFieldDefinition("category")->addListingFilter($this, $data, $operator);
return $this;
}
/**
* Filter by urlSlug (URL Slug)
* @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 filterByUrlSlug ($data, $operator = '=')
{
$this->getClass()->getFieldDefinition("urlSlug")->addListingFilter($this, $data, $operator);
return $this;
}
/**
* Filter by tileImage (Image on tile)
* @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 filterByTileImage ($data, $operator = '=')
{
$this->getClass()->getFieldDefinition("tileImage")->addListingFilter($this, $data, $operator);
return $this;
}
/**
* Filter by mainImage (Main 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 filterByMainImage ($data, $operator = '=')
{
$this->getClass()->getFieldDefinition("mainImage")->addListingFilter($this, $data, $operator);
return $this;
}
/**
* Filter by content (Content)
* @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 filterByContent ($data, $operator = '=')
{
$this->getClass()->getFieldDefinition("content")->addListingFilter($this, $data, $operator);
return $this;
}
}