Development

Changeset 8555

You must first sign up to be able to contribute.

Changeset 8555

Show
Ignore:
Timestamp:
04/19/08 15:00:28 (4 months ago)
Author:
chrisk
Message:

[ckWebServicePlugin] changed README to have correct php syntax highlighting in examples

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/ckWebServicePlugin/trunk/README

    r8503 r8555  
    150150  {{{ 
    151151  #!php 
    152     class fooActions extends sfActions 
     152  <?php 
     153  class fooActions extends sfActions 
     154  { 
     155    /** 
     156     * Executes index action 
     157     * 
     158     * @ws-enable 
     159     * @param string $test A string parameter 
     160     * 
     161     * @return string      A string 
     162     */ 
     163    public function executeIndex() 
    153164    { 
    154       /** 
    155        * Executes index action 
    156        * 
    157        * @ws-enable 
    158        * @param string $test A string parameter 
    159        * 
    160        * @return string      A string 
    161        */ 
    162       public function executeIndex() 
    163       { 
    164         $this->result = 'Parameter $test='.$this->request->getParameter('test'); 
    165  
    166         //return what you want, the view rendering will be bypassed any way 
    167         return sfView::SUCCESS; 
    168       } 
    169  
    170       /** 
    171        * A method which will not be exposed in the wsdl. 
    172        * 
    173        * @param string $test A string parameter 
    174        * 
    175        * @return string      A string 
    176        */ 
    177       public function executeBar() 
    178       { 
    179         $this->something = "some text!"; 
    180       } 
     165      $this->result = 'Parameter $test='.$this->request->getParameter('test'); 
     166       
     167      //return what you want, the view rendering will be bypassed any way 
     168      return sfView::SUCCESS; 
    181169    } 
     170 
     171    /** 
     172     * A method which will not be exposed in the wsdl. 
     173     * 
     174     * @param string $test A string parameter 
     175     * 
     176     * @return string      A string 
     177     */ 
     178    public function executeBar() 
     179    { 
     180      $this->something = "some text!"; 
     181    } 
     182  } 
    182183  }}} 
    183184   
     
    229230  {{{ 
    230231  #!php 
    231     class mySoapHandler 
     232  <?php 
     233  class mySoapHandler 
     234  { 
     235    public function descriptiveFooMethod($foo, $bar) 
    232236    { 
    233       public function descriptiveFooMethod($foo, $bar) 
    234       { 
    235         return sfContext::getInstance()->getController()->invokeSoapEnabledAction('fooModule', 'index', array($foo, $bar)); 
    236       } 
     237      return sfContext::getInstance()->getController()->invokeSoapEnabledAction('fooModule', 'index', array($foo, $bar)); 
    237238    } 
     239  } 
    238240  }}} 
    239241