$mediaType
$mediaType :
Provides an easier interface for constructing {@link Filters} objects.
Usage: $filters = FiltersBuilder::new() ->addIncludedContentCategory(ContentCategory::LANDSCAPES) ->setIncludeArchivedMedia(true) ->build(); $searchMediaItemsRequest->setFilters($filters);
construct()
Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jfschmakeit/Downloads/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jfschmakeit/Downloads/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275
build() : \Google\Photos\Library\V1\Filters
Builds a Filters object.
Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jfschmakeit/Downloads/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/jfschmakeit/Downloads/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275The built Filters object.
setMediaTypeFromString(string $mediaType) : $this
Sets the media type, from a string. Overwrites the existing media type.
string | $mediaType | The media type to set. Must be an element of {@link PhotosLibraryClient::mediaTypes()} |
setMediaType(integer $mediaType) : $this
Sets the media type. Overwrites the existing media type.
integer | $mediaType | The media type to set, a constant from MediaType. |
addIncludedCategory(integer $category) : $this
Adds a category to the list of included categories.
integer | $category | The category to include; a constant from {@link ContentCategory}. |
addIncludedCategoryFromString(string $category) : $this
Adds a category to the list of included categories.
string | $category | The category to include. Must be an element of {@link PhotosLibraryClient::contentCategories()} |
addIncludedFeature(integer $feature) : $this
Adds a feature to the list of included features.
integer | $feature | The feature to include; a constant from {@link Feature}. |
addIncludedFeatureFromString(string $feature) : $this
Adds a category to the list of included features.
string | $feature | The feature to include. Must be an element of {@link PhotosLibraryClient::features()} |
addExcludedCategory(integer $category) : $this
Adds a category to the list of of excluded categories.
integer | $category | The category to exclude. |
addExcludedCategoryFromString(string $category) : $this
Adds a category to the list of excluded categories.
string | $category | The category to exclude. Must be an element of {@link PhotosLibraryClient::contentCategories()} |
addDateRange(\Google\Type\Date $start, \Google\Type\Date $end) : $this
Adds a date range to the list of included date ranges.
\Google\Type\Date | $start | |
\Google\Type\Date | $end |
addDateRangeFromDateTime(\DateTime $start, \DateTime $end) : $this
Adds a date range to the list of included date ranges, from two DateTimes.
If you require dates with wildcards (e.g., a year-only date), you must use \Google\Photos\Library\V1\addDateRange.
\DateTime | $start | |
\DateTime | $end |
addDate(\Google\Type\Date $date) : $this
Adds a date to the list of included dates.
\Google\Type\Date | $date |
addDateFromDateTime(\DateTime $date) : $this
Adds a date to the list of included dates, from a DateTime.
If you require a date with wildcards (e.g., a year-only date), you must use \Google\Photos\Library\V1\addDate.
\DateTime | $date |
setIncludeArchivedMedia(boolean $includeArchivedMedia) : $this
Sets the flag to include archived media. If false, archived media will not be returned.
boolean | $includeArchivedMedia |
convertToGoogleDate(\DateTime $date) : \Google\Type\Date
Converts a DateTime object into a Google Date object.
\DateTime | $date |