Changeset 32990 for trunk/src/wp-includes/class-IXR.php
- Timestamp:
- 06/28/2015 03:26:41 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-IXR.php
r32964 r32990 50 50 var $type; 51 51 52 function IXR_Value($data, $type = false) 52 /** 53 * PHP5 constructor. 54 */ 55 function __construct( $data, $type = false ) 53 56 { 54 57 $this->data = $data; … … 69 72 } 70 73 } 74 75 /** 76 * PHP4 constructor. 77 */ 78 public function IXR_Value( $data, $type = false ) { 79 self::__construct( $data, $type ); 80 } 71 81 72 82 function calculateType() … … 195 205 var $_parser; 196 206 197 function IXR_Message($message) 207 /** 208 * PHP5 constructor. 209 */ 210 function __construct( $message ) 198 211 { 199 212 $this->message =& $message; 200 213 } 214 215 /** 216 * PHP4 constructor. 217 */ 218 public function IXR_Message( $message ) { 219 self::__construct( $message ); 220 } 201 221 202 222 function parse() … … 387 407 var $capabilities; 388 408 389 function IXR_Server($callbacks = false, $data = false, $wait = false) 409 /** 410 * PHP5 constructor. 411 */ 412 function __construct( $callbacks = false, $data = false, $wait = false ) 390 413 { 391 414 $this->setCapabilities(); … … 398 421 } 399 422 } 423 424 /** 425 * PHP4 constructor. 426 */ 427 public function IXR_Server( $callbacks = false, $data = false, $wait = false ) { 428 self::__construct( $callbacks, $data, $wait ); 429 } 400 430 401 431 function serve($data = false) … … 601 631 var $xml; 602 632 603 function IXR_Request($method, $args) 633 /** 634 * PHP5 constructor. 635 */ 636 function __construct($method, $args) 604 637 { 605 638 $this->method = $method; … … 620 653 $this->xml .= '</params></methodCall>'; 621 654 } 655 656 /** 657 * PHP4 constructor. 658 */ 659 public function IXR_Request( $method, $args ) { 660 self::__construct( $method, $args ); 661 } 622 662 623 663 function getLength() … … 654 694 var $error = false; 655 695 656 function IXR_Client($server, $path = false, $port = 80, $timeout = 15) 696 /** 697 * PHP5 constructor. 698 */ 699 function __construct( $server, $path = false, $port = 80, $timeout = 15 ) 657 700 { 658 701 if (!$path) { … … 679 722 $this->timeout = $timeout; 680 723 } 724 725 /** 726 * PHP4 constructor. 727 */ 728 public function IXR_Client( $server, $path = false, $port = 80, $timeout = 15 ) { 729 self::__construct( $server, $path, $port, $timeout ); 730 } 681 731 682 732 function query() … … 799 849 var $message; 800 850 801 function IXR_Error($code, $message) 851 /** 852 * PHP5 constructor. 853 */ 854 function __construct( $code, $message ) 802 855 { 803 856 $this->code = $code; 804 857 $this->message = htmlspecialchars($message); 805 858 } 859 860 /** 861 * PHP4 constructor. 862 */ 863 public function IXR_Error( $code, $message ) { 864 self::__construct( $code, $message ); 865 } 806 866 807 867 function getXml() … … 845 905 var $timezone; 846 906 847 function IXR_Date($time) 907 /** 908 * PHP5 constructor. 909 */ 910 function __construct( $time ) 848 911 { 849 912 // $time can be a PHP timestamp or an ISO one … … 854 917 } 855 918 } 919 920 /** 921 * PHP4 constructor. 922 */ 923 public function IXR_Date( $time ) { 924 self::__construct( $time ); 925 } 856 926 857 927 function parseTimestamp($timestamp) … … 903 973 var $data; 904 974 905 function IXR_Base64($data) 975 /** 976 * PHP5 constructor. 977 */ 978 function __construct( $data ) 906 979 { 907 980 $this->data = $data; 908 981 } 982 983 /** 984 * PHP4 constructor. 985 */ 986 public function IXR_Base64( $data ) { 987 self::__construct( $data ); 988 } 909 989 910 990 function getXml() … … 925 1005 var $help; 926 1006 927 function IXR_IntrospectionServer() 1007 /** 1008 * PHP5 constructor. 1009 */ 1010 function __construct() 928 1011 { 929 1012 $this->setCallbacks(); … … 958 1041 ); 959 1042 } 1043 1044 /** 1045 * PHP4 constructor. 1046 */ 1047 public function IXR_IntrospectionServer() { 1048 self::__construct(); 1049 } 960 1050 961 1051 function addCallback($method, $callback, $args, $help) … … 1087 1177 var $calls = array(); 1088 1178 1089 function IXR_ClientMulticall($server, $path = false, $port = 80) 1179 /** 1180 * PHP5 constructor. 1181 */ 1182 function __construct( $server, $path = false, $port = 80 ) 1090 1183 { 1091 1184 parent::IXR_Client($server, $path, $port); 1092 1185 $this->useragent = 'The Incutio XML-RPC PHP Library (multicall client)'; 1093 1186 } 1187 1188 /** 1189 * PHP4 constructor. 1190 */ 1191 public function IXR_ClientMulticall( $server, $path = false, $port = 80 ) { 1192 self::__construct( $server, $path, $port ); 1193 } 1094 1194 1095 1195 function addCall()
Note: See TracChangeset
for help on using the changeset viewer.