コード例 #1
0
 /**
  * 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);
 }
コード例 #2
0
 /**
  * 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);
 }
コード例 #3
0
 /**
  * Save the current communication item.
  *
  * This function allows us easier debugging of communication issues.
  *
  * @since  1.0.1.1
  */
 public function save()
 {
     parent::save();
 }
コード例 #4
0
 /**
  * Save model.
  *
  * @since  1.0.0
  */
 public function save()
 {
     parent::save();
     parent::store_singleton();
 }
コード例 #5
0
 /**
  * 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();
 }