گ=>@¨.غاx@8@pâ5@@آغا@"دلاگè8@àˆ6@@آغا€"دلاط)غا‹غاک‎`@ک‎`@8µf@p]دلاہ]دلاگ=>@@ثغاA}@XA}@HG@HG@x*غابٹغا *غاàرغا^دلاHG@HG@+غاxٹغاذ4UüSlug automatically generated from the entity title', 'tribe-common' ), ) )->set_example( 'my-awesome-title' )->set_read_only( true ); $title_properties = new PropertiesCollection(); $title_properties[] = ( new Text( 'rendered', fn() => __( 'HTML title for the entity, transformed for display', 'tribe-common' ), ) )->set_example( 'My Awesome Title' ); $properties[] = ( new Entity( 'title', fn() => __( 'The globally unique identifier for the entity.', 'tribe-common' ), $title_properties, ) ); $content_properties = new PropertiesCollection(); $content_properties[] = ( new Text( 'rendered', fn() => __( 'HTML content for the entity, transformed for display', 'tribe-common' ), ) )->set_example( 'This is the content...' ); $content_properties[] = ( new Boolean( 'protected', fn() => __( 'Whether the content is protected with a password', 'tribe-common' ), ) )->set_example( false ); $properties[] = ( new Entity( 'content', fn() => __( 'The content for the entity.', 'tribe-common' ), $content_properties, ) ); $excerpt_properties = new PropertiesCollection(); $excerpt_properties[] = ( new Text( 'rendered', fn() => __( 'HTML excerpt for the entity, transformed for display', 'tribe-common' ), ) )->set_example( 'This is the excerpt...' ); $excerpt_properties[] = ( new Boolean( 'protected', fn() => __( 'Whether the excerpt is protected with a password', 'tribe-common' ), ) )->set_example( false ); $properties[] = ( new Entity( 'excerpt', fn() => __( 'The excerpt for the entity.', 'tribe-common' ), $excerpt_properties, ) ); $properties[] = ( new Positive_Integer( 'author', fn() => __( 'The ID for the author of the entity.', 'tribe-common' ), ) )->set_example( 1 ); $properties[] = ( new Positive_Integer( 'featured_media', fn() => __( 'The ID of the featured media for the entity.', 'tribe-common' ), ) )->set_example( 123 ); $properties[] = ( new Text( 'comment_status', fn() => __( 'Whether or not comments are open on the entity.', 'tribe-common' ), 'open', [ 'open', 'closed' ] ) )->set_example( 'open' ); $properties[] = ( new Text( 'ping_status', fn() => __( 'Whether or not the entity can be pinged', 'tribe-common' ), 'open', [ 'open', 'closed' ] ) )->set_example( 'open' ); $properties[] = ( new Text( 'format', fn() => __( 'The format for the entity.', 'tribe-common' ), 'standard', [ 'standard', 'aside', 'chat', 'gallery', 'link', 'image', 'quote', 'status', 'video', 'audio' ] ) )->set_example( 'standard' ); $properties[] = ( new Boolean( 'sticky', fn() => __( 'Whether or not the entity should be treated as sticky', 'tribe-common' ), false, false, ) )->set_example( false ); $properties[] = ( new Text( 'template', fn() => __( 'The theme file to use to display the entity.', 'tribe-common' ), ) )->set_example( 'templates-full.php' ); $properties[] = ( new Array_Of_Type( 'tags', fn() => __( 'The terms assigned to the entity in the post_tag taxonomy', 'tribe-common' ), Positive_Integer::class, ) )->set_example( [ 2, 8, 15 ] ); $documentation = [ 'type' => 'object', 'title' => __( 'TEC Post Entity', 'tribe-common' ), 'description' => __( 'A TEC post object as returned by the REST API', 'tribe-common' ), 'properties' => $properties, ]; $type = strtolower( $this->get_type() ); /** * Filters the Swagger documentation generated for an TEC_Post_Entity in the TEC REST API. * * @since 6.9.0 * * @param array $documentation An associative PHP array in the format supported by Swagger. * @param TEC_Post_Entity_Definition $this The TEC_Post_Entity_Definition instance. * * @return array */ $documentation = (array) apply_filters( "tec_rest_swagger_{$type}_definition", $documentation, $this ); /** * Filters the Swagger documentation generated for a definition in the TEC REST API. * * @since 6.9.0 * * @param array $documentation An associative PHP array in the format supported by Swagger. * @param TEC_Post_Entity_Definition $this The TEC_Post_Entity_Definition instance. * * @return array */ return (array) apply_filters( 'tec_rest_swagger_definition', $documentation, $this ); } /** * Get the priority. * * @since 6.9.0 * * @return int The priority. */ public function get_priority(): int { return 0; } }