Changeset 31139 for trunk/src/wp-includes/class-wp-ajax-response.php
- Timestamp:
- 01/11/2015 12:12:47 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-ajax-response.php
r31126 r31139 12 12 * @since 2.1.0 13 13 * @var array 14 * @access private15 14 */ 16 p rivate$responses = array();15 public $responses = array(); 17 16 18 17 /** … … 27 26 if ( !empty($args) ) 28 27 $this->add($args); 29 }30 31 /**32 * Make private properties readable for backwards compatibility.33 *34 * @since 4.0.035 * @access public36 *37 * @param string $name Property to get.38 * @return mixed Property.39 */40 public function __get( $name ) {41 return $this->$name;42 }43 44 /**45 * Make private properties settable for backwards compatibility.46 *47 * @since 4.0.048 * @access public49 *50 * @param string $name Property to set.51 * @param mixed $value Property value.52 * @return mixed Newly-set property.53 */54 public function __set( $name, $value ) {55 return $this->$name = $value;56 }57 58 /**59 * Make private properties checkable for backwards compatibility.60 *61 * @since 4.0.062 * @access public63 *64 * @param string $name Property to check if set.65 * @return bool Whether the property is set.66 */67 public function __isset( $name ) {68 return isset( $this->$name );69 }70 71 /**72 * Make private properties un-settable for backwards compatibility.73 *74 * @since 4.0.075 * @access public76 *77 * @param string $name Property to unset.78 */79 public function __unset( $name ) {80 unset( $this->$name );81 28 } 82 29
Note: See TracChangeset
for help on using the changeset viewer.