/** * Returns the post-type of the current object. * * @since 1.0.0 * @return string The post-type name. */ public static function get_post_type() { return parent::_post_type(self::$POST_TYPE); }
/** * Returns the value of a custom data field. * * @since 1.0.0 * @api * * @param string $key The field-key. * @return mixed The value that was previously assigned to the custom field * or false if no value was set for the field. */ public function get_custom_data($key) { // Wrapper function, so this function shows up in API docs. return parent::get_custom_data($key); }
/** * Save the current communication item. * * This function allows us easier debugging of communication issues. * * @since 1.0.1.1 */ public function save() { parent::save(); }
/** * Save model. * * @since 1.0.0 */ public function save() { parent::save(); parent::store_singleton(); }
/** * Save model. * * @since 1.0.0 */ public function save() { // Validate the pay_date attribute of the invoice. $this->validate_pay_date(); parent::save(); parent::store_singleton(); }