Changeset 925


Ignore:
Timestamp:
01/08/08 03:26:01 (12 years ago)
Author:
gogo
Message:

Allow return of PHP array from xinha_pass_to_php_backend

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/contrib/php-xinha.php

    r677 r925  
    2424   */ 
    2525       
    26   function xinha_pass_to_php_backend($Data, $KeyLocation = 'Xinha:BackendKey') 
     26  function xinha_pass_to_php_backend($Data, $KeyLocation = 'Xinha:BackendKey', $ReturnPHP = FALSE) 
    2727  { 
    2828    
     
    5858    $backend_data[session_name()] = session_id(); 
    5959     
    60     echo 'backend_data = ' . xinha_to_js($backend_data) . "; \n"; 
    61      
     60    if($ReturnPHP) 
     61    {       
     62      return array('backend_data' => $backend_data);       
     63    } 
     64    else 
     65    {       
     66      echo 'backend_data = ' . xinha_to_js($backend_data) . "; \n";   
     67    }                 
    6268  }   
    6369    
Note: See TracChangeset for help on using the changeset viewer.