芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/cms.mgaplay.com.br/lib/Event/LibraryProviderEvent.php
. */ namespace Xibo\Event; use Xibo\Entity\SearchResult; use Xibo\Entity\SearchResults; /** * LibraryProviderEvent */ class LibraryProviderEvent extends Event { protected static $NAME = 'connector.provider.library'; /** @var \Xibo\Entity\SearchResults */ private $results; /** @var int Record count to start from */ private $start; /** @var int Number of records to return */ private $length; /** @var string */ private $search; /** @var array */ private $types; /** @var string landspace|portrait or empty */ private $orientation; /** * @param \Xibo\Entity\SearchResults $results * @param $start * @param $length * @param $search * @param $types * @param $orientation */ public function __construct(SearchResults $results, $start, $length, $search, $types, $orientation) { $this->results = $results; $this->start = $start; $this->length = $length; $this->search = $search; $this->types = $types; $this->orientation = $orientation; } public function addResult(SearchResult $result): LibraryProviderEvent { $this->results->data[] = $result; return $this; } public function getResults(): SearchResults { return $this->results; } /** * Get starting record * @return int */ public function getStart(): int { return $this->start; } /** * Get number of records to return * @return int */ public function getLength(): int { return $this->length; } /** * @return string */ public function getSearch() { return $this->search; } /** * @return array */ public function getTypes() { return $this->types; } /** * @return string */ public function getOrientation() { return $this->orientation; } }