$mediaType
$mediaType :
Provides an easier interface for constructing {@link Filters} objects.
Usage: $filters = FiltersBuilder::new() ->addIncludedContentCategory(ContentCategory::LANDSCAPES) ->setIncludeArchivedMedia(true) ->build(); $searchMediaItemsRequest->setFilters($filters);
build() : \Google\Photos\Library\V1\Filters
Builds a Filters object.
The built Filters object.
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 \addDateRange.
\DateTime | $start | |
\DateTime | $end |
convertToCategory(string $category) : integer
Converts a string into a {@link ContentCategory}.
string | $category | A stringified version of a ContentCategory, e.g. "NONE". |
if $category is not an element of {@link PhotosLibraryClient::contentCategories()}.
A constant from ContentCategory.