From 119015f3f0f30ff7aab464a47e6893f0a7d43bf4 Mon Sep 17 00:00:00 2001 From: "Michael Kaufmann (d00p)" Date: Fri, 5 Feb 2010 09:03:30 +0000 Subject: [PATCH] - make class.idna_convert_wrapper.php more php5-like --- lib/classes/idna/class.idna_convert_wrapper.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/classes/idna/class.idna_convert_wrapper.php b/lib/classes/idna/class.idna_convert_wrapper.php index e6ac87ca..fca7e7e2 100644 --- a/lib/classes/idna/class.idna_convert_wrapper.php +++ b/lib/classes/idna/class.idna_convert_wrapper.php @@ -29,13 +29,13 @@ class idna_convert_wrapper * @var object */ - var $idna_converter; + private $idna_converter; /** * Class constructor. Creates a new idna converter */ - function idna_convert_wrapper() + public function __construct() { $this->idna_converter = new idna_convert(); } @@ -50,7 +50,7 @@ class idna_convert_wrapper * both seperated by the same string as the input. */ - function encode($to_encode) + public function encode($to_encode) { return $this->_do_action('encode', $to_encode); } @@ -65,7 +65,7 @@ class idna_convert_wrapper * both seperated by the same string as the input. */ - function decode($to_decode) + public function decode($to_decode) { return $this->_do_action('decode', $to_decode); } @@ -80,7 +80,7 @@ class idna_convert_wrapper * @return string The input string after being processed. */ - function _do_action($action, $string) + private function _do_action($action, $string) { $string = trim($string);