Server IP : 172.67.158.161 / Your IP : 3.140.196.48 Web Server : LiteSpeed System : Linux business53.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : giankuin ( 1871) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/self/cwd/wp-content/plugins/woocommerce/includes/interfaces/ |
Upload File : |
<?php /** * Object Data Store Interface * * @version 3.0.0 * @package WooCommerce\Interface */ if ( ! defined( 'ABSPATH' ) ) { exit; } /** * WC Data Store Interface * * @version 3.0.0 */ interface WC_Object_Data_Store_Interface { /** * Method to create a new record of a WC_Data based object. * * @param WC_Data $data Data object. */ public function create( &$data ); /** * Method to read a record. Creates a new WC_Data based object. * * @param WC_Data $data Data object. */ public function read( &$data ); /** * Updates a record in the database. * * @param WC_Data $data Data object. */ public function update( &$data ); /** * Deletes a record from the database. * * @param WC_Data $data Data object. * @param array $args Array of args to pass to the delete method. * @return bool result */ public function delete( &$data, $args = array() ); /** * Returns an array of meta for an object. * * @param WC_Data $data Data object. * @return array */ public function read_meta( &$data ); /** * Deletes meta based on meta ID. * * @param WC_Data $data Data object. * @param object $meta Meta object (containing at least ->id). * @return array */ public function delete_meta( &$data, $meta ); /** * Add new piece of meta. * * @param WC_Data $data Data object. * @param object $meta Meta object (containing ->key and ->value). * @return int meta ID */ public function add_meta( &$data, $meta ); /** * Update meta. * * @param WC_Data $data Data object. * @param object $meta Meta object (containing ->id, ->key and ->value). */ public function update_meta( &$data, $meta ); }