File: wp-includes/php-ai-client/src/Files/DTO/File.php
-
methodFile::__clone()
Performs a deep clone of the file.
Used by 0 functions | Uses 0 functions | Source: wp-includes/php-ai-client/src/Files/DTO/File.php:396 -
methodFile::isMimeType()
Checks if the file is a specific MIME type.
Used by 0 functions | Uses 0 functions | Source: wp-includes/php-ai-client/src/Files/DTO/File.php:296 -
Determines the MIME type from various sources.
Used by 1 function | Uses 2 functions | Source: wp-includes/php-ai-client/src/Files/DTO/File.php:311 -
methodFile::getJsonSchema()
{@inheritDoc}
Used by 1 function | Uses 0 functions | Source: wp-includes/php-ai-client/src/Files/DTO/File.php:347 -
methodFile::toArray()
{@inheritDoc}
Used by 0 functions | Uses 1 function | Source: wp-includes/php-ai-client/src/Files/DTO/File.php:358 -
methodFile::fromArray()
{@inheritDoc}
-
methodFile::getMimeType()
Gets the MIME type of the file as a string.
Used by 2 functions | Uses 0 functions | Source: wp-includes/php-ai-client/src/Files/DTO/File.php:217 -
Gets the MIME type object.
Used by 0 functions | Uses 0 functions | Source: wp-includes/php-ai-client/src/Files/DTO/File.php:228 -
methodFile::isVideo()
Checks if the file is a video.
Used by 0 functions | Uses 0 functions | Source: wp-includes/php-ai-client/src/Files/DTO/File.php:239 -
methodFile::isImage()
Checks if the file is an image.
Used by 0 functions | Uses 0 functions | Source: wp-includes/php-ai-client/src/Files/DTO/File.php:250 -
methodFile::isAudio()
Checks if the file is audio.
Used by 0 functions | Uses 0 functions | Source: wp-includes/php-ai-client/src/Files/DTO/File.php:261 -
methodFile::isText()
Checks if the file is text.
Used by 0 functions | Uses 0 functions | Source: wp-includes/php-ai-client/src/Files/DTO/File.php:272 -
methodFile::isDocument()
Checks if the file is a document.
Used by 0 functions | Uses 0 functions | Source: wp-includes/php-ai-client/src/Files/DTO/File.php:283 -
methodFile::isRemote()
Checks if the file is a remote file.
Used by 0 functions | Uses 0 functions | Source: wp-includes/php-ai-client/src/Files/DTO/File.php:170 -
methodFile::getUrl()
Gets the URL for remote files.
Used by 0 functions | Uses 0 functions | Source: wp-includes/php-ai-client/src/Files/DTO/File.php:181 -
methodFile::getBase64Data()
Gets the base64-encoded data for inline files.
Used by 0 functions | Uses 0 functions | Source: wp-includes/php-ai-client/src/Files/DTO/File.php:192 -
methodFile::getDataUri()
Gets the data as a data URI for inline files.
Used by 0 functions | Uses 1 function | Source: wp-includes/php-ai-client/src/Files/DTO/File.php:203 -
Converts a local file to base64.
Used by 1 function | Uses 0 functions | Source: wp-includes/php-ai-client/src/Files/DTO/File.php:133 -
methodFile::getFileType()
Gets the file type.
Used by 0 functions | Uses 0 functions | Source: wp-includes/php-ai-client/src/Files/DTO/File.php:148 -
methodFile::isInline()
Checks if the file is an inline file.
Used by 0 functions | Uses 0 functions | Source: wp-includes/php-ai-client/src/Files/DTO/File.php:159 -
classFile
Represents a file in the AI client.
Used by 0 functions | Uses 0 functions | Source: wp-includes/php-ai-client/src/Files/DTO/File.php:28 -
methodFile::__construct()
Constructor.
-
Detects the file type and processes it accordingly.
-
methodFile::isUrl()
Checks if a string is a valid URL.
Used by 1 function | Uses 0 functions | Source: wp-includes/php-ai-client/src/Files/DTO/File.php:120