Files
Phraseanet/lib/Alchemy/Phrasea/SearchEngine/Elastic/Structure/Structure.php
jygaulier cfd385498d - add : cache on es "tags"
- removed : variable globalstructure construction (WITH_FIELDS, WITH_FLAGS...) (was unused)
- cleanup (stopwatches etc)
2020-11-05 19:54:14 +01:00

81 lines
1.4 KiB
PHP

<?php
/**
* This file is part of Phraseanet
*
* (c) 2005-2016 Alchemy
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Alchemy\Phrasea\SearchEngine\Elastic\Structure;
interface Structure
{
/**
* @return Field[]
*/
public function getAllFields();
/**
* @return Field[]
*/
public function getUnrestrictedFields();
/**
* @return Field[]
*/
public function getPrivateFields();
/**
* @return Field[]
*/
public function getThesaurusEnabledFields();
/**
* @return Field[]
*/
public function getDateFields();
/**
* @param string $name
* @return null|Field
*/
public function get($name);
/**
* @param string $name
* @return string|null
*/
public function typeOf($name);
/**
* @param string $name
* @return bool
* @throws \DomainException
*/
public function isPrivate($name);
/**
* @return Flag[]
*/
public function getAllFlags();
/**
* @param string $name
* @return Flag
*/
public function getFlagByName($name);
/**
* @return Tag[]
*/
public function getMetadataTags();
/**
* @param string $name
* @return Tag|null
*/
public function getMetadataTagByName($name);
}