Ignore:
Timestamp:
Nov 30, 2013 7:30:44 PM (11 years ago)
Author:
anonymous
Message:

added public and private keywords to all properties and methods, changed old classname constructor function to construct, removed more ?> closing tags

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eli_branch/lib/Currency.inc.php

    r438 r439  
    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();
Note: See TracChangeset for help on using the changeset viewer.