Plugin Directory

Changeset 198760


Ignore:
Timestamp:
01/27/2010 02:32:03 PM (16 years ago)
Author:
geraldyeo
Message:
 
Location:
url-shortener
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • url-shortener/tags/2.0/req/components/inc.FTShortenShared.php

    r198704 r198760  
    99if (!class_exists('FTShortenShared')){
    1010    class FTShortenShared {
    11         protected function openurl($url, $useragent = 'false', $posttype = 'GET', $postfield = '') {
     11        function openurl($url, $useragent = 'false', $posttype = 'GET', $postfield = '') {
    1212            if (function_exists('curl_init')) {
    1313                $ch = curl_init();
     
    3232        }//end fx open url 
    3333       
    34         protected function processjson($url){
     34        function processjson($url){
    3535            $json = new Services_JSON();
    3636            $result = $json->decode($url);
     
    3838        }//end json process
    3939       
    40         protected function processxml($url, $method='POST', $body=array()){
     40        function processxml($url, $method='POST', $body=array()){
    4141            $request = new WP_Http;
    4242            $result = $request->request( $url, array( 'method' => $method, 'body' => $body) );
  • url-shortener/trunk/req/components/inc.FTShortenShared.php

    r198746 r198760  
    99if (!class_exists('FTShortenShared')){
    1010    class FTShortenShared {
    11         protected function openurl($url, $useragent = 'false', $posttype = 'GET', $postfield = '') {
     11        function openurl($url, $useragent = 'false', $posttype = 'GET', $postfield = '') {
    1212            if (function_exists('curl_init')) {
    1313                $ch = curl_init();
     
    3232        }//end fx open url 
    3333       
    34         protected function processjson($url){
     34        function processjson($url){
    3535            $json = new Services_JSON();
    3636            $result = $json->decode($url);
     
    3838        }//end json process
    3939       
    40         protected function processxml($url, $method='POST', $body=array()){
     40        function processxml($url, $method='POST', $body=array()){
    4141            $request = new WP_Http;
    4242            $result = $request->request( $url, array( 'method' => $method, 'body' => $body) );
Note: See TracChangeset for help on using the changeset viewer.