Overview

Namespaces

  • None
  • PHP

Classes

  • RESTian
  • RESTian_Application_Json_Parser
  • RESTian_Application_Serialized_Php_Parser
  • RESTian_Application_Xml_Parser
  • RESTian_Auth_Provider_Base
  • RESTian_Base
  • RESTian_Basic_Http_Auth_Provider
  • RESTian_Client
  • RESTian_Http_Agent_Base
  • RESTian_Not_Applicable_Provider
  • RESTian_Parser_Base
  • RESTian_Php_Curl_Http_Agent
  • RESTian_Request
  • RESTian_Response
  • RESTian_Service
  • RESTian_Settings
  • RESTian_Text_Csv_Parser
  • RESTian_Text_Html_Parser
  • RESTian_Text_Plain_Parser
  • RESTian_Var
  • RESTian_WordPress_Http_Agent
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo
  • Download
 1: <?php
 2: 
 3: /**
 4:  * TODO: Decide exactly what a CSV parser should do.  What format of PHP objects/arrays?
 5:  */
 6: class RESTian_Text_Csv_Parser extends RESTian_Parser_Base {
 7:   /**
 8:    * Returns an object or array of stdClass objects from a string containing HTML
 9:    *
10:    * @param string $body
11:    * @return array|object|void A(n array of) stdClass object(s) with structure dictated by the passed HTML string.
12:    * @throws Exception
13:    */
14:   function parse( $body ) {
15:     if (1)  // This logic here only to get PhpStorm to stop highlighting the return as an error.
16:       throw new Exception( 'The ' . __CLASS__ . ' class has not yet been implemented.' );
17:     return $body;
18:   }
19: }
20: 
API documentation generated by ApiGen 2.8.0