Lines:
1 to 20 of 20
<?php // @todo - nicer API for array values? /* class WPCOM_REST_API_V2_Field_Controller */ /* function WPCOM_REST_API_V2_Field_Controller::__construct() – */ /* function WPCOM_REST_API_V2_Field_Controller::register_fields() – Registers the field with the appropriate schema and callbacks. */ /* function WPCOM_REST_API_V2_Field_Controller::prepare_for_response() – Ensures the response matches the schema and request context. */ /* function WPCOM_REST_API_V2_Field_Controller::get_default_value() – Returns the schema’s default value */ /* function WPCOM_REST_API_V2_Field_Controller::get_for_response() – The field’s wrapped getter. Does permission checks and output preparation. */ /* function WPCOM_REST_API_V2_Field_Controller::update_from_request() – The field’s wrapped setter. Does permission checks. */ /* function WPCOM_REST_API_V2_Field_Controller::get_permission_check() – Permission Check for the field’s getter. Must be implemented in the inheriting class. */ /* function WPCOM_REST_API_V2_Field_Controller::get() – The field’s "raw" getter. Must be implemented in the inheriting class. */ /* function WPCOM_REST_API_V2_Field_Controller::update_permission_check() – Permission Check for the field’s setter. Must be implemented in the inheriting class. */ /* function WPCOM_REST_API_V2_Field_Controller::update() – The field’s "raw" setter. Must be implemented in the inheriting class. */ /* function WPCOM_REST_API_V2_Field_Controller::get_schema() – The JSON Schema for the field */ /* function WPCOM_REST_API_V2_Field_Controller::is_valid_for_context() – */ /* function WPCOM_REST_API_V2_Field_Controller::filter_response_by_context() – Removes properties that should not appear in the current request’s context */