Ignore:
Timestamp:
Feb 20, 2014 3:03:59 AM (10 years ago)
Author:
anonymous
Message:

Completed integrating /branches/eli_branch into /trunk. Changes include:

  • Removed closing ?> from end of files
  • Upgrade old-style contructor methods to use construct() instead.
  • Class properties and methods defined as public, private, static or protected
  • Ensure code runs under E_ALL with only mysql_* deprecated warnings
  • Search for the '@' symbol anywhere it might be used to supress runtime errors, then replace with proper error recovery.
  • Run the php cli -l option to check files for syntax errors.
  • Bring tests up-to-date with latest version and methods of PHPUnit
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/lib/Google_API.inc.php

    r396 r468  
    5353     * @access private
    5454     */
    55     var $_licenseKey = '';
     55    private $_licenseKey = '';
    5656
    5757    /**
     
    5959     * @access private
    6060     */
    61     var $_soapClient = NULL;
     61    private $_soapClient = NULL;
    6262
    6363    /**
     
    6767     * @access public
    6868     */
    69     function Google_API($licenseKey)
     69    public function __construct($licenseKey)
    7070    {
    7171        $this->_licenseKey = $licenseKey;
     
    8282     * @access public
    8383     */
    84     function getCachedPage($url)
     84    public function getCachedPage($url)
    8585    {
    8686        $result = $this->_performAPICall(
     
    104104     * @access public
    105105     */
    106     function getSpellingSuggestion($phrase)
     106    public function getSpellingSuggestion($phrase)
    107107    {
    108108        return $this->_performAPICall(
     
    122122     * @access public
    123123     */
    124     function search($parameters = array())
     124    public function search($parameters = array())
    125125    {
    126126        if (!isset($parameters['query'])) {
     
    150150     * @access private
    151151     */
    152     function _performAPICall($apiCall, $parameters)
     152    private function _performAPICall($apiCall, $parameters)
    153153    {
    154154        $app =& App::getInstance();
     
    167167    }
    168168}
    169 ?>
    170 
    171 
Note: See TracChangeset for help on using the changeset viewer.