Moodle PHP Documentation 4.5
Moodle 4.5.5+ (Build: 20250711) (ce34e8ff087)
aiplacement_editor\external\generate_image Class Reference
Inheritance diagram for aiplacement_editor\external\generate_image:

Static Public Member Functions

static execute (int $contextid, string $prompttext, string $aspectratio, string $quality, string $numimages, string $style='',)
 Generate image from the AI placement.
 
static execute_parameters ()
 Generate image parameters.
 
static execute_returns ()
 Generate content return value.
 

Member Function Documentation

◆ execute()

static aiplacement_editor\external\generate_image::execute ( int $contextid,
string $prompttext,
string $aspectratio,
string $quality,
string $numimages,
string $style = '' )
static

Generate image from the AI placement.

Parameters
int$contextidThe context ID.
string$prompttextThe data encoded as a json array.
string$aspectratioThe aspect ratio of the image.
string$qualityThe quality of the image.
string$numimagesThe number of images to generate.
string$styleThe style of the image.
Return values
arrayThe generated content.
Since
Moodle 4.5

◆ execute_parameters()

static aiplacement_editor\external\generate_image::execute_parameters ( )
static

Generate image parameters.

Return values
external_function_parameters
Since
Moodle 4.5

◆ execute_returns()

static aiplacement_editor\external\generate_image::execute_returns ( )
static

Generate content return value.

Return values
external_function_parameters
Since
Moodle 4.5

The documentation for this class was generated from the following file: