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/Currency.inc.php

    r411 r468  
    4141
    4242    // Configuration parameters for this object.
    43     var $_params = array(
     43    private $_params = array(
    4444        'cache_result' => true,
    4545        'cache_dir' => '',
     
    5252     * Cart constructor.
    5353     */
    54     function Currency($params=array())
     54    public function __construct($params=array())
    5555    {
    5656        $app =& App::getInstance();
     
    7979     * @param  array $params   Array of param keys and values to set.
    8080     */
    81     function setParam($params=null)
     81    public function setParam($params=null)
    8282    {
    8383        if (isset($params) && is_array($params)) {
     
    9494     * @return mixed               Configured parameter value.
    9595     */
    96     function getParam($param)
     96    public function getParam($param)
    9797    {
    9898        $app =& App::getInstance();
     
    118118    * @since    05 May 2008 23:50:59
    119119    */
    120     function getValue($amount, $base, $target)
     120    public function getValue($amount, $base, $target)
    121121    {
    122122        if (false !== $rate = $this->getRate($base, $target)) {
     
    138138    * @since    25 May 2011 01:26:24
    139139    */
    140     function getRate($base, $target)
     140    public function getRate($base, $target)
    141141    {
    142142        $app =& App::getInstance();
     
    180180     * @access private
    181181     */
    182     function _performAPICall($parameters=null)
     182    private function _performAPICall($parameters=null)
    183183    {
    184184        $app =& App::getInstance();
     
    251251
    252252
    253 ?>
Note: See TracChangeset for help on using the changeset viewer.