| 1 |
<?php |
| 2 |
|
| 3 |
namespace FilterEverything\Filter; |
| 4 |
|
| 5 |
if ( ! defined('ABSPATH') ) { |
| 6 |
exit; |
| 7 |
} |
| 8 |
|
| 9 |
class DefaultEntity implements Entity |
| 10 |
{ |
| 11 |
public $items = []; |
| 12 |
/** |
| 13 |
* Declared explicitly: assigned from the outside in |
| 14 |
* EntityManager::prepareEntitiesToDisplay(); dynamic properties are |
| 15 |
* deprecated since PHP 8.2. |
| 16 |
*/ |
| 17 |
public $items_sort = []; |
| 18 |
|
| 19 |
public $filter = []; |
| 20 |
|
| 21 |
public $entityName = ''; |
| 22 |
|
| 23 |
public function __construct( $postMetaName ){ |
| 24 |
$this->entityName = $postMetaName; |
| 25 |
} |
| 26 |
|
| 27 |
function getName() |
| 28 |
{ |
| 29 |
return $this->entityName; |
| 30 |
} |
| 31 |
|
| 32 |
function getAllExistingTerms( $force = false ) |
| 33 |
{ |
| 34 |
// TODO: Implement getAllExistingTerms() method. |
| 35 |
return array(); |
| 36 |
} |
| 37 |
|
| 38 |
function addTermsToWpQuery($a, $b) |
| 39 |
{ |
| 40 |
// TODO: Implement addTermsToWpQuery() method. |
| 41 |
} |
| 42 |
|
| 43 |
function populateTermsWithPostIds( $setId, $post_type ) |
| 44 |
{ |
| 45 |
// TODO: Implement populateTermsWithPostIds() method. |
| 46 |
} |
| 47 |
|
| 48 |
function getTermId($slug) |
| 49 |
{ |
| 50 |
// TODO: Implement getTermId() method. |
| 51 |
return $slug; |
| 52 |
} |
| 53 |
|
| 54 |
function setExcludedTerms($excludedTerms, $isInclude) |
| 55 |
{ |
| 56 |
// TODO: Implement setExcludedTerms() method. |
| 57 |
} |
| 58 |
|
| 59 |
public function getTermsForSelect() |
| 60 |
{ |
| 61 |
// TODO: Implement getTermsForSelect() method. |
| 62 |
return array(); |
| 63 |
} |
| 64 |
|
| 65 |
public function getTerms() |
| 66 |
{ |
| 67 |
// TODO: Implement getTerms() method. |
| 68 |
return array(); |
| 69 |
} |
| 70 |
|
| 71 |
public function setPostTypes($postTypes) |
| 72 |
{ |
| 73 |
// TODO: Implement setPostTypes() method. |
| 74 |
} |
| 75 |
} |