Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions src/Core/Constants.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,15 @@ class Constants
'ALL' => 'all',
];

/**
* @var array Query searchParamsGentech
*/
protected static $_searchParamsGentech = [
'TRUE' => 'true',
'FALSE' => 'false',
'ALL' => 'all',
];

/**
* @var array Query resultColumns
*/
Expand Down Expand Up @@ -461,6 +470,16 @@ public static function getSearchParamsPremium() : array
return static::$_searchParamsPremium;
}

/**
* Getter for SearchParamsGentech.
* @return array
*/
public static function getSearchParamsGentech() : array
{
return static::$_searchParamsGentech;
}


/**
* Getter for ResultColumns.
* @return array
Expand Down
28 changes: 28 additions & 0 deletions src/Models/SearchParameters.php
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,12 @@ class SearchParameters
*/
public $filters_premium;

/**
* Filter AI generated (gentech) and non-gentech assets.
* @var string
*/
public $filters_gentech;

/**
* Asset's model or property releases that can be used in
* search parameters for searching assets.
Expand Down Expand Up @@ -287,6 +293,7 @@ class SearchParameters
'filters_3d_type_id' => '[filters][3d_type_id][]',
'filters_template_category_id' => '[filters][template_category_id][]',
'filters_premium' => '[filters][premium]',
'filters_gentech' => '[filters][gentech]',
'filters_has_releases' => '[filters][has_releases]',
];

Expand Down Expand Up @@ -1093,6 +1100,27 @@ public function setFilterPremium(string $filters_premium) : SearchParameters
return $this;
}

/**
* Get gentech (pricing) level to find the assests.
* @return string|null
*/
public function getFilterGentech() : ?string
{
return $this->filters_gentech;
}

/**
* Sets gentech (pricing) level to find the assests.
* @param string $filters_gentech
* @return SearchParameters object
*/
public function setFilterGentech(string $filters_gentech) : SearchParameters
{
$gentech = CoreConstants::getSearchParamsGentech();
$this->filters_gentech = $gentech[$filters_gentech];
return $this;
}

/**
* Get HasReleases filter that you have set to find assets which has model
* or property releases.
Expand Down