OSDN Git Service

remove unneccesary reference
authorSotaro KARASAWA <sotarok@users.sourceforge.jp>
Sat, 25 Dec 2010 11:14:57 +0000 (20:14 +0900)
committerSotaro KARASAWA <sotarok@users.sourceforge.jp>
Sat, 25 Dec 2010 11:15:11 +0000 (20:15 +0900)
47 files changed:
class/DB/Ethna_DB_PEAR.php
class/Ethna_ActionForm.php
class/Ethna_AppObject.php
class/Ethna_AppSQL.php
class/Ethna_AppSearchObject.php
class/Ethna_CacheManager.php
class/Ethna_Config.php
class/Ethna_Controller.php
class/Ethna_Filter.php
class/Ethna_Logger.php
class/Ethna_MailSender.php
class/Ethna_PearWrapper.php
class/Ethna_Renderer.php
class/Ethna_Session.php
class/Ethna_UnitTestCase.php
class/Ethna_UrlHandler.php
class/Ethna_Util.php
class/Plugin/Csrf.php
class/Plugin/Csrf/Session.php
class/Plugin/Filter.php
class/Plugin/Generator.php
class/Plugin/Handle/AddActionTest.php
class/Plugin/Handle/AddAppObject.php
class/Plugin/Handle/AddEntryPoint.php
class/Plugin/Handle/AddTest.php
class/Plugin/Handle/AddViewTest.php
class/Plugin/Handle/ClearCache.php
class/Plugin/Handle/CreatePlugin.php
class/Plugin/Handle/Help.php
class/Plugin/Handle/MakePluginPackage.php
class/Plugin/Logwriter.php
class/Plugin/Smarty/function.csrfid.php
class/Plugin/Smarty/function.form_name.php
class/Plugin/Smarty/function.message.php
class/Plugin/Smarty/function.url.php
class/Plugin/Urlhandler.php
class/Plugin/Validator.php
class/Renderer/Ethna_Renderer_Rhaco.php
class/Renderer/Ethna_Renderer_Smarty.php
class/SOAP/Ethna_SOAP_Gateway.php
class/SOAP/Ethna_SOAP_GatewayGenerator.php
class/SOAP/Ethna_SOAP_WsdlGenerator.php
class/View/Ethna_View_Info.php
class/View/Ethna_View_UnitTest.php
test/Plugin/Abstract/Ethna_Plugin_Abstract_Test.php
test/Plugin/Handle/Ethna_Plugin_Handle_AddTemplate_Test.php
test/Plugin/Handle/Ethna_Plugin_Handle_I18n_Test.php

index f48f7d9..daa9e46 100644 (file)
@@ -59,17 +59,17 @@ class Ethna_DB_PEAR extends Ethna_DB
      *  Ethna_DB_PEARクラスのコンストラクタ
      *
      *  @access public
-     *  @param  object  Ethna_Controller    &$controller    コントローラオブジェクト
+     *  @param  object  Ethna_Controller    $controller    コントローラオブジェクト
      *  @param  string  $dsn                                DSN
      *  @param  bool    $persistent                         持続接続設定
      */
-    public function __construct(&$controller, $dsn, $persistent)
+    public function __construct($controller, $dsn, $persistent)
     {
         parent::__construct($controller, $dsn, $persistent);
 
         $this->db = null;
-        $this->logger =& $controller->getLogger();
-        $this->sql =& $controller->getSQL();
+        $this->logger = $controller->getLogger();
+        $this->sql = $controller->getSQL();
 
         $this->dsninfo = DB::parseDSN($dsn);
         $this->dsninfo['new_link'] = true;
@@ -86,7 +86,7 @@ class Ethna_DB_PEAR extends Ethna_DB
      */
     function connect()
     {
-        $this->db =& DB::connect($this->dsninfo, $this->persistent);
+        $this->db = DB::connect($this->dsninfo, $this->persistent);
         if (DB::isError($this->db)) {
             $error = Ethna::raiseError('DB Connection Error: %s',
                 E_DB_CONNECT,
@@ -215,9 +215,9 @@ class Ethna_DB_PEAR extends Ethna_DB
      *  @param  string  $table  テーブル名
      *  @return mixed   array: PEAR::DBに準じたメタデータ Ethna_Error::エラー
      */
-    function &getMetaData($table)
+    function getMetaData($table)
     {
-        $def =& $this->db->tableInfo($table);
+        $def = $this->db->tableInfo($table);
         if (is_array($def) === false) {
             return $def;
         }
@@ -301,7 +301,7 @@ class Ethna_DB_PEAR extends Ethna_DB
      *  @param  string  $query  SQL文
      *  @return mixed   DB_Result:結果オブジェクト Ethna_Error:エラー
      */
-    function &query($query)
+    function query($query)
     {
         return $this->_query($query);
     }
@@ -358,9 +358,9 @@ class Ethna_DB_PEAR extends Ethna_DB
      *  @access public
      *  @return int     更新行数
      */
-    function &fetchRow(&$res, $fetchmode = DB_FETCHMODE_DEFAULT, $rownum = null)
+    function fetchRow(&$res, $fetchmode = DB_FETCHMODE_DEFAULT, $rownum = null)
     {
-        $row =& $res->fetchRow($fetchmode, $rownum);
+        $row = $res->fetchRow($fetchmode, $rownum);
         if (is_array($row) === false) {
             return $row;
         }
@@ -437,7 +437,7 @@ class Ethna_DB_PEAR extends Ethna_DB
      *  @param  string  $sqlid      SQL-ID(+引数)
      *  @return mixed   DB_Result:結果オブジェクト Ethna_Error:エラー
      */
-    function &sqlquery($sqlid)
+    function sqlquery($sqlid)
     {
         $args = func_get_args();
         array_shift($args);
@@ -511,10 +511,10 @@ class Ethna_DB_PEAR extends Ethna_DB
      *  @param  string  $query  SQL文
      *  @return mixed   DB_Result:結果オブジェクト Ethna_Error:エラー
      */
-    function &_query($query)
+    function _query($query)
     {
         $this->logger->log(LOG_DEBUG, "$query");
-        $r =& $this->db->query($query);
+        $r = $this->db->query($query);
         if (DB::isError($r)) {
             if ($r->getCode() == DB_ERROR_ALREADY_EXISTS) {
                 $error = Ethna::raiseNotice('Unique Constraint Error SQL[%s]',
index 5f56448..4eb5e6b 100644 (file)
@@ -306,9 +306,9 @@ class Ethna_ActionForm
         if (isset($_SERVER['REQUEST_METHOD']) == false) {
             return;
         } else if (strcasecmp($_SERVER['REQUEST_METHOD'], 'post') == 0) {
-            $http_vars =& $_POST;
+            $http_vars = $_POST;
         } else {
-            $http_vars =& $_GET;
+            $http_vars = $_GET;
         }
 
         //
index 03917aa..2ff6ada 100644 (file)
@@ -77,21 +77,21 @@ class Ethna_AppObject
      *  Ethna_AppObjectクラスのコンストラクタ
      *
      *  @access public
-     *  @param  object  Ethna_Backend   &$backend   Ethna_Backendオブジェクト
+     *  @param  object  Ethna_Backend   $backend   Ethna_Backendオブジェクト
      *  @param  mixed   $key_type   レコードを特定するためのカラム名
      *                              (通常はプライマリーキーのフィールド)
      *  @param  mixed   $key        レコードを特定するためのカラム値
      *  @param  array   $prop       プロパティ(レコードの値)一覧
      *  @return mixed   0:正常終了 -1:キー/プロパティ未指定 Ethna_Error:エラー
      */
-    public function __construct(&$backend, $key_type = null, $key = null, $prop = null)
+    public function __construct($backend, $key_type = null, $key = null, $prop = null)
     {
-        $this->backend =& $backend;
-        $this->config =& $backend->getConfig();
-        $this->action_form =& $backend->getActionForm();
-        $this->af =& $this->action_form;
-        $this->session =& $backend->getSession();
-        $ctl =& $backend->getController();
+        $this->backend = $backend;
+        $this->config = $backend->getConfig();
+        $this->action_form = $backend->getActionForm();
+        $this->af = $this->action_form;
+        $this->session = $backend->getSession();
+        $ctl = $backend->getController();
 
         // DBオブジェクトの設定
         $db_list = $this->_getDBList();
@@ -102,8 +102,8 @@ class Ethna_AppObject
                 "Ethna_AppObjectを利用するにはデータベース設定が必要です",
                 E_DB_NODSN);
         }
-        $this->my_db_rw =& $db_list['rw'];
-        $this->my_db_ro =& $db_list['ro'];
+        $this->my_db_rw = $db_list['rw'];
+        $this->my_db_ro = $db_list['ro'];
         // XXX: app objはdb typeを知らなくても動くべき
         $this->my_db_type = $this->my_db_rw->getType();
 
@@ -431,7 +431,7 @@ class Ethna_AppObject
         //    INSERT 文を取得し、実行
         $sql = $this->_getSQL_Add();
         for ($i = 0; $i < 4; $i++) {
-            $r =& $this->my_db_rw->query($sql);
+            $r = $this->my_db_rw->query($sql);
             //   エラーの場合 -> 重複キーエラーの場合はリトライ
             if (Ethna::isError($r)) {
                 if ($r->getCode() == E_DB_DUPENT) {
@@ -505,7 +505,7 @@ class Ethna_AppObject
         $sql = $this->_getSQL_Update();
         //   エラーの場合 -> 重複キーエラーの場合はリトライ(4回)
         for ($i = 0; $i < 4; $i++) {  //  magic number
-            $r =& $this->my_db_rw->query($sql);
+            $r = $this->my_db_rw->query($sql);
             if (Ethna::isError($r)) {
                 if ($r->getCode() == E_DB_DUPENT) {
                     // 重複エラーキーの判別
@@ -596,7 +596,7 @@ class Ethna_AppObject
     function remove()
     {
         $sql = $this->_getSQL_Remove();
-        $r =& $this->my_db_rw->query($sql);
+        $r = $this->my_db_rw->query($sql);
         if (Ethna::isError($r)) {
             return $r;
         }
@@ -629,7 +629,7 @@ class Ethna_AppObject
        //   プライマリーキー件数検索
        if (is_null($offset) == false || is_null($count) == false) {
             $sql = $this->_getSQL_SearchLength($filter);
-            $r =& $this->my_db_ro->query($sql);
+            $r = $this->my_db_ro->query($sql);
             if (Ethna::isError($r)) {
                 return $r;
             }
@@ -641,7 +641,7 @@ class Ethna_AppObject
 
         $id_list = array();
         $sql = $this->_getSQL_SearchId($filter, $order, $offset, $count);
-        $r =& $this->my_db_ro->query($sql);
+        $r = $this->my_db_ro->query($sql);
         if (Ethna::isError($r)) {
             return $r;
         }
@@ -685,7 +685,7 @@ class Ethna_AppObject
         //   プライマリーキー件数検索
         if (is_null($offset) == false || is_null($count) == false) {
             $sql = $this->_getSQL_SearchLength($filter);
-            $r =& $this->my_db_ro->query($sql);
+            $r = $this->my_db_ro->query($sql);
             if (Ethna::isError($r)) {
                 return $r;
             }
@@ -697,7 +697,7 @@ class Ethna_AppObject
 
         $prop_list = array();
         $sql = $this->_getSQL_SearchProp($keys, $filter, $order, $offset, $count);
-        $r =& $this->my_db_ro->query($sql);
+        $r = $this->my_db_ro->query($sql);
         if (Ethna::isError($r)) {
             return $r;
         }
@@ -775,7 +775,7 @@ class Ethna_AppObject
         $sql = $this->_getSQL_Select($key_type, $key);
 
         // プロパティ取得
-        $r =& $this->my_db_ro->query($sql);
+        $r = $this->my_db_ro->query($sql);
         if (Ethna::isError($r)) {
             return;
         }
@@ -857,7 +857,7 @@ class Ethna_AppObject
         // プライマリキーはmulti columnsになり得るので別扱い
         if ($check_pkey) {
             $sql = $this->_getSQL_Duplicate($this->id_def);
-            $r =& $this->my_db_rw->query($sql);
+            $r = $this->my_db_rw->query($sql);
             if (Ethna::isError($r)) {
                 return $r;
             } else if ($r->numRows() > 0) {
@@ -872,7 +872,7 @@ class Ethna_AppObject
                 continue;
             }
             $sql = $this->_getSQL_Duplicate($k);
-            $r =& $this->my_db_rw->query($sql);
+            $r = $this->my_db_rw->query($sql);
             if (Ethna::isError($r)) {
                 return $r;
             } else if ($r->NumRows() > 0) {
@@ -1521,16 +1521,16 @@ class Ethna_AppObject
             $varname = $elt['varname'];
 
             // for B.C.
-            $this->$varname =& $elt['db'];
+            $this->$varname = $elt['db'];
 
             if ($elt['type'] == DB_TYPE_RW) {
-                $r['rw'] =& $elt['db'];
+                $r['rw'] = $elt['db'];
             } else if ($elt['type'] == DB_TYPE_RO) {
-                $r['ro'] =& $elt['db'];
+                $r['ro'] = $elt['db'];
             }
         }
         if ($r['ro'] == null && $r['rw'] != null) {
-            $r['ro'] =& $r['rw'];
+            $r['ro'] = $r['rw'];
         }
 
         return $r;
@@ -1583,7 +1583,7 @@ class Ethna_AppObject
             break;
         }
 
-        $cache_manager =& Ethna_CacheManager::getInstance('localfile');
+        $cache_manager = Ethna_CacheManager::getInstance('localfile');
         $cache_manager->setNamespace('ethna_app_object');
         $cache_key = md5($this->my_db_ro->getDSN() . '-' . $table_name);
 
index 6d9ef67..aa692c1 100644 (file)
@@ -34,9 +34,9 @@ class Ethna_AppSQL
      *  @access public
      *  @param  object  Ethna_Controller    &$controller    controllerオブジェクト
      */
-    public function __construct(&$controller)
+    public function __construct($controller)
     {
-        $this->controller =& $controller;
+        $this->controller = $controller;
     }
 
     /**
@@ -61,7 +61,7 @@ class Ethna_AppSQL
      *  @param  mixed   &$var   エスケープする値
      *  @static
      */
-    function escapeSQL(&$var, $type = null)
+    public static function escapeSQL(&$var, $type = null)
     {
         if (!is_array($var)) {
             if (is_null($var)) {
@@ -87,7 +87,7 @@ class Ethna_AppSQL
      *  @param  mixed   &$var   エスケープを復帰する値
      *  @static
      */
-    function unescapeSQL(&$var, $type = null)
+    public static function unescapeSQL(&$var, $type = null)
     {
         if (!is_array($var)) {
             if ($var == 'NULL') {
index 4a76331..3eaeb1f 100644 (file)
@@ -91,7 +91,7 @@ class Ethna_AppSearchObject
     {
         $tmp = array();
         $tmp['name'] = $name;
-        $tmp['object'] =& $search_object;
+        $tmp['object'] = $search_object;
         $tmp['condition'] = $condition;
         $this->object_list[] = $tmp;
     }
index 14b63fb..57f79b8 100644 (file)
@@ -27,10 +27,10 @@ class Ethna_CacheManager
      */
     function &getInstance($type)
     {
-        $controller =& Ethna_Controller::getInstance();
-        $plugin =& $controller->getPlugin();
+        $controller = Ethna_Controller::getInstance();
+        $plugin = $controller->getPlugin();
 
-        $cache_manager =& $plugin->getPlugin('Cachemanager', ucfirst($type));
+        $cache_manager = $plugin->getPlugin('Cachemanager', ucfirst($type));
 
         return $cache_manager;
     }
index 8dcf399..6fe27ae 100644 (file)
@@ -40,7 +40,7 @@ class Ethna_Config
      */
     public function __construct(&$controller)
     {
-        $this->controller =& $controller;
+        $this->controller = $controller;
 
         // 設定ファイルの読み込み
         $r = $this->_getConfig();
index eb5ee39..d9b4518 100644 (file)
@@ -1249,9 +1249,9 @@ class Ethna_Controller
         }
 
         if (strcasecmp($_SERVER['REQUEST_METHOD'], 'post') == 0) {
-            $http_vars =& $_POST;
+            $http_vars = $_POST;
         } else {
-            $http_vars =& $_GET;
+            $http_vars = $_GET;
         }
 
         // フォーム値からリクエストされたアクション名を取得する
@@ -1757,7 +1757,7 @@ class Ethna_Controller
      *  @param  object  Ethna_Renderer  レンダラオブジェクト
      *  @obsolete
      */
-    function _setDefaultTemplateEngine(&$renderer)
+    function _setDefaultTemplateEngine($renderer)
     {
     }
 
index f5c13de..99f208c 100644 (file)
@@ -51,11 +51,11 @@ class Ethna_Filter
     public function __construct(&$controller)
     {
         // オブジェクトの設定
-        $this->controller =& $controller;
-        $this->ctl =& $this->controller;
+        $this->controller = $controller;
+        $this->ctl = $this->controller;
 
-        $this->config =& $controller->getConfig();
-        $this->logger =& $this->controller->getLogger();
+        $this->config = $controller->getConfig();
+        $this->logger = $this->controller->getLogger();
     }
 
     /**
index 13f5858..23f4c57 100644 (file)
@@ -222,7 +222,7 @@ class Ethna_Logger extends Ethna_AppManager
      *  @return array   ログレベル(LOG_NOTICE,...), エラーレベル表示名("E_NOTICE"...)
      *  @static
      */
-    function errorLevelToLogLevel($errno)
+    public static function errorLevelToLogLevel($errno)
     {
         switch ($errno) {
         case E_ERROR:           $code = "E_ERROR"; $level = LOG_ERR; break;
index 3b11c1a..ae5b60a 100644 (file)
@@ -56,8 +56,8 @@ class Ethna_MailSender
      */
     public function __construct(&$backend)
     {
-        $this->backend =& $backend;
-        $this->config =& $this->backend->getConfig();
+        $this->backend = $backend;
+        $this->config = $this->backend->getConfig();
     }
 
     /**
@@ -98,7 +98,7 @@ class Ethna_MailSender
         if ($template === MAILSENDER_TYPE_DIRECT) {
             $mail = $macro;
         } else {
-            $renderer =& $this->getTemplateEngine();
+            $renderer = $this->getTemplateEngine();
 
             // 基本情報設定
             $env_datetime = _et('%Y/%m/%d %H:%M:%S');
@@ -272,7 +272,7 @@ class Ethna_MailSender
      */
     function &getRenderer()
     {
-        $_ret_object =& $this->getTemplateEngine();
+        $_ret_object = $this->getTemplateEngine();
         return $_ret_object;
     }
 
@@ -284,8 +284,8 @@ class Ethna_MailSender
      */
     function &getTemplateEngine()
     {
-        $c =& $this->backend->getController();
-        $renderer =& $c->getRenderer();
+        $c = $this->backend->getController();
+        $renderer = $c->getRenderer();
         return $renderer;
     }
 }
index b1bc183..8ee9590 100644 (file)
@@ -90,7 +90,7 @@ class Ethna_PearWrapper
 
         // setup PEAR_Frontend
         PEAR_Command::setFrontendType('CLI');
-        $this->ui =& PEAR_Command::getFrontendObject();
+        $this->ui = PEAR_Command::getFrontendObject();
 
         // set PEAR's error handling
         // TODO: if PEAR/Command/Install.php is newer than 1.117, displayError goes well.
@@ -108,9 +108,9 @@ class Ethna_PearWrapper
 
         // set target controller
         if ($target == 'master') {
-            $this->target_ctl =& Ethna_Handle::getEthnaController();
+            $this->target_ctl = Ethna_Handle::getEthnaController();
         } else {
-            $this->target_ctl =& Ethna_Handle::getAppController($app_dir);
+            $this->target_ctl = Ethna_Handle::getAppController($app_dir);
         }
         if (Ethna::isError($this->target_ctl)) {
             return $this->target_ctl;
@@ -118,9 +118,9 @@ class Ethna_PearWrapper
 
         // setup PEAR_Config
         if ($target == 'master') {
-            $ret =& $this->_setMasterConfig();
+            $ret = $this->_setMasterConfig();
         } else {
-            $ret =& $this->_setLocalConfig();
+            $ret = $this->_setLocalConfig();
         }
         if (Ethna::isError($ret)) {
             return $ret;
@@ -128,7 +128,7 @@ class Ethna_PearWrapper
         $this->ui->setConfig($this->config);
 
         // setup PEAR_Registry
-        $this->registry =& $this->config->getRegistry();
+        $this->registry = $this->config->getRegistry();
 
         return $true;
     }
@@ -144,12 +144,12 @@ class Ethna_PearWrapper
         $true = true;
 
         // setup config
-        $this->config =& PEAR_Config::singleton();
+        $this->config = PEAR_Config::singleton();
 
         // setup channel
-        $reg =& $this->config->getRegistry();
+        $reg = $this->config->getRegistry();
         if ($reg->channelExists($this->channel) == false) {
-            $ret =& $this->doChannelDiscover();
+            $ret = $this->doChannelDiscover();
             if (Ethna::isError($ret)) {
                 return $ret;
             }
@@ -192,7 +192,7 @@ class Ethna_PearWrapper
         }
 
         $pearrc = "{$base}/skel/.pearrc";
-        $this->config =& PEAR_Config::singleton($pearrc);
+        $this->config = PEAR_Config::singleton($pearrc);
 
         // read local .pearrc if exists.
         if (is_file($pearrc) && is_readable($pearrc)) {
@@ -205,9 +205,9 @@ class Ethna_PearWrapper
         }
 
         // setup channel
-        $reg =& $this->config->getRegistry();
+        $reg = $this->config->getRegistry();
         if ($reg->channelExists($this->channel) == false) {
-            $ret =& $this->doChannelDiscover();
+            $ret = $this->doChannelDiscover();
             if (Ethna::isError($ret)) {
                 return $ret;
             }
@@ -230,7 +230,7 @@ class Ethna_PearWrapper
     function &doClearCache()
     {
         $true = true;
-        $r =& $this->_run('clear-cache', array(), array());
+        $r = $this->_run('clear-cache', array(), array());
         if (PEAR::isError($r)) {
             return $r;
         }
@@ -247,7 +247,7 @@ class Ethna_PearWrapper
     function &doChannelDiscover()
     {
         $true = true;
-        $r =& $this->_run('channel-discover', array(), array($this->channel));
+        $r = $this->_run('channel-discover', array(), array($this->channel));
         if (PEAR::isError($r)) {
             return $r;
         }
@@ -277,12 +277,12 @@ class Ethna_PearWrapper
     {
         $true = true;
         if ($this->isChannelExists() == false) {
-            $r =& $this->doChannelDiscover();
+            $r = $this->doChannelDiscover();
             if (PEAR::isError($r)) {
                 return $r;
             }
         }
-        $r =& $this->_run('channel-update', array(), array($this->channel));
+        $r = $this->_run('channel-update', array(), array($this->channel));
         if (PEAR::isError($r)) {
             return $r;
         }
@@ -302,7 +302,7 @@ class Ethna_PearWrapper
     function &_doInstallOrUpgrade($command, $package)
     {
         $true = true;
-        $r =& $this->_run($command, array(), array($package));
+        $r = $this->_run($command, array(), array($package));
         if (PEAR::isError($r)) {
             return $r;
         }
@@ -324,7 +324,7 @@ class Ethna_PearWrapper
         if ($state !== null) {
             $pkg = "{$pkg}-{$state}";
         }
-        $r =& $this->_doInstallOrUpgrade('install', $pkg); 
+        $r = $this->_doInstallOrUpgrade('install', $pkg); 
         return $r;
     }
     // }}}
@@ -338,7 +338,7 @@ class Ethna_PearWrapper
      */
     function &doInstallFromTgz($pkg_file)
     {
-        $r =& $this->_doInstallOrUpgrade('install', $pkg_file); 
+        $r = $this->_doInstallOrUpgrade('install', $pkg_file); 
         return $r;
     }
     // }}}
@@ -357,7 +357,7 @@ class Ethna_PearWrapper
         if ($state !== null) {
             $pkg = "{$pkg}-{$state}";
         }
-        $r =& $this->_doInstallOrUpgrade('upgrade', $pkg);
+        $r = $this->_doInstallOrUpgrade('upgrade', $pkg);
         return $r;
     }
     // }}}
@@ -371,7 +371,7 @@ class Ethna_PearWrapper
      */
     function &doUpgradeFromTgz($pkg_file)
     {
-        $r =& $this->_doInstallOrUpgrade('upgrade', $pkg_file); 
+        $r = $this->_doInstallOrUpgrade('upgrade', $pkg_file); 
         return $r;
     }
     // }}}
@@ -398,7 +398,7 @@ class Ethna_PearWrapper
      */
     function getVersion($package)
     {
-        $pobj =& $this->registry->getPackage($package, $this->channel);
+        $pobj = $this->registry->getPackage($package, $this->channel);
         return $pobj->getVersion();
     }
     // }}}
@@ -412,7 +412,7 @@ class Ethna_PearWrapper
      */
     function getState($package)
     {
-        $pobj =& $this->registry->getPackage($package, $this->channel);
+        $pobj = $this->registry->getPackage($package, $this->channel);
         return $pobj->getState();
     }
     // }}}
@@ -429,7 +429,7 @@ class Ethna_PearWrapper
         if ($this->isInstalled($package) == false) {
             return Ethna::raiseNotice("{$this->channel}/{$package} is not installed.");
         }
-        $r =& $this->_run('uninstall', array(), array("{$this->channel}/{$package}"));
+        $r = $this->_run('uninstall', array(), array("{$this->channel}/{$package}"));
         if (PEAR::isError($r)) {
             return $r;
         }
@@ -451,9 +451,9 @@ class Ethna_PearWrapper
      */
     function &getPackageNameFromTgz($filename)
     {
-        $config =& PEAR_Config::singleton();
+        $config = PEAR_Config::singleton();
         $packagefile = new PEAR_PackageFile($config);
-        $info =& $packagefile->fromTgzFile($filename, PEAR_VALIDATE_NORMAL);
+        $info = $packagefile->fromTgzFile($filename, PEAR_VALIDATE_NORMAL);
         if (PEAR::isError($info)) {
             return $info;
         }
@@ -475,7 +475,7 @@ class Ethna_PearWrapper
         if ($this->isInstalled($package) == false) {
             return Ethna::raiseNotice("{$this->channel}/{$package} is not installed.");
         }
-        $pobj =& $this->registry->getPackage($package, $this->channel);
+        $pobj = $this->registry->getPackage($package, $this->channel);
         $cname = $pobj->getName();
         return $cname;
     }
@@ -579,7 +579,7 @@ class Ethna_PearWrapper
 
         $true = true;
 
-        $cmd =& PEAR_Command::factory($command, $this->config);
+        $cmd = PEAR_Command::factory($command, $this->config);
         if (PEAR::isError($cmd)) {
             return $cmd;
         }
index d1cc725..fdfe71a 100644 (file)
@@ -52,10 +52,10 @@ class Ethna_Renderer
      *
      *  @access public
      */
-    public function __construct(&$controller)
+    public function __construct($controller)
     {
-        $this->controller =& $controller;
-        $this->ctl =& $this->controller;
+        $this->controller = $controller;
+        $this->ctl = $this->controller;
         $this->template_dir = null;
         $this->engine = null;
         $this->template = null;
@@ -107,7 +107,7 @@ class Ethna_Renderer
      * 
      *  @access public
      */
-    function &getEngine()
+    function getEngine()
     {
         return $this->engine;
     }
@@ -133,7 +133,7 @@ class Ethna_Renderer
      * 
      *  @access public
      */
-    function &getProp($name)
+    function getProp($name)
     {
         if (isset($this->prop[$name])) {
             return $this->prop[$name];
@@ -181,7 +181,7 @@ class Ethna_Renderer
         $count = sizeof($keys);
 
         for ($i = 0; $i < $count; $i++) {
-            $this->prop[$keys[$i]] =& $array[$keys[$i]];
+            $this->prop[$keys[$i]] = $array[$keys[$i]];
         }
     }
 
@@ -208,7 +208,7 @@ class Ethna_Renderer
      */
     function setPropByRef($name, &$value)
     {
-        $this->prop[$name] =& $value;
+        $this->prop[$name] = $value;
     }
 
     /**
index 655d53a..d77eb21 100644 (file)
@@ -86,9 +86,9 @@ class Ethna_Session
         }
 
         if (strcasecmp($_SERVER['REQUEST_METHOD'], 'post') == 0) {
-            $http_vars =& $_POST;
+            $http_vars = $_POST;
         } else {
-            $http_vars =& $_GET;
+            $http_vars = $_GET;
         }
         if (array_key_exists($this->session_name, $http_vars)
             && $http_vars[$this->session_name] != null) {
index 5d2b731..905b56f 100644 (file)
@@ -57,17 +57,17 @@ class Ethna_UnitTestCase extends UnitTestCase
      *  Ethna_UnitTestCaseのコンストラクタ
      *
      *  @access public
-     *  @param  object  Ethna_Controller    &$controller    コントローラオブジェクト
+     *  @param  object  Ethna_Controller    $controller    コントローラオブジェクト
      */
-    public function __construct(&$controller)
+    public function __construct($controller)
     {
         parent::__construct();
 
         // オブジェクトの設定
-        $this->controller =& $controller;
-        $this->ctl =& $this->controller;
-        $this->backend =& $this->ctl->getBackend();
-        $this->session =& $this->backend->getSession();
+        $this->controller = $controller;
+        $this->ctl = $this->controller;
+        $this->backend = $this->ctl->getBackend();
+        $this->session = $this->backend->getSession();
 
         // 変数の初期化
         $this->action_form = $this->af = null;
@@ -83,18 +83,18 @@ class Ethna_UnitTestCase extends UnitTestCase
     function _createActionForm($form_name)
     {
         $this->action_form = new $form_name($this->ctl);
-        $this->af =& $this->action_form;
+        $this->af = $this->action_form;
 
         // controler&backendにafを関連付け
         $this->ctl->action_name = $this->action_name;
-        $this->ctl->action_form =& $this->af;
-        $this->backend->action_form =& $this->af;
-        $this->backend->af =& $this->af;
+        $this->ctl->action_form = $this->af;
+        $this->backend->action_form = $this->af;
+        $this->backend->af = $this->af;
 
         // action_error, validator の初期化
         // これにより、直前のテスト結果をひきずらない
         // ようにする
-        $ae =& $this->ctl->getActionError();
+        $ae = $this->ctl->getActionError();
         $ae->clear();
         unset($ae->action_form);
         unset($this->ctl->class_factory->object['plugin']->obj_registry["Validator"]);
@@ -154,11 +154,11 @@ class Ethna_UnitTestCase extends UnitTestCase
         // オブジェクト生成
         $action_class_name = $this->ctl->getActionClassName($this->action_name);
         $this->action_class = new $action_class_name($this->backend);
-        $this->ac =& $this->action_class;
+        $this->ac = $this->action_class;
 
         // backendにacを関連付け
-        $this->backend->action_class =& $this->ac;
-        $this->backend->ac =& $this->ac;
+        $this->backend->action_class = $this->ac;
+        $this->backend->ac = $this->ac;
     }
 
     /**
@@ -175,6 +175,6 @@ class Ethna_UnitTestCase extends UnitTestCase
         // オブジェクト生成
         $view_class_name = $this->ctl->getViewClassName($this->forward_name);
         $this->view_class = new $view_class_name($this->backend, $this->forward_name, $this->ctl->_getForwardPath($this->forward_name));
-        $this->vc =& $this->view_class;
+        $this->vc = $this->view_class;
     }
 }
index 3388bfb..ea7c146 100644 (file)
@@ -59,7 +59,7 @@ class Ethna_UrlHandler
         }
 
         if (strpos($name, '_') !== false) {
-            $instance[$name] = &new $name();
+            $instance[$name] = new $name();
         } else {
             // get instance with plugin
             $ctl = Ethna_Controller::getInstance();
index 825ff5e..4168f02 100644 (file)
@@ -35,8 +35,8 @@ function to_array($v)
  */
 function is_error($name = null)
 {
-    $c =& Ethna_Controller::getInstance();
-    $action_error =& $c->getActionError();
+    $c = Ethna_Controller::getInstance();
+    $action_error = $c->getActionError();
     if ($name !== null) {
         return $action_error->isError($name);
     } else {
@@ -794,7 +794,7 @@ class Ethna_Util
      */
     public static function purgeTmp($prefix, $timeout)
     {
-        $c =& Ethna_Controller::getInstance();
+        $c = Ethna_Controller::getInstance();
 
         $dh = opendir($c->getDirectory('tmp'));
         if ($dh) {
index 4b69da6..b7bfe74 100644 (file)
@@ -48,18 +48,6 @@ class Ethna_Plugin_Csrf extends Ethna_Plugin_Abstract
      *  @access public
      *  @param  object  Ethna_Controller    &$controller    コントローラオブジェクト
      */
-    /*
-    function Ethna_Plugin_Csrf(&$controller)
-    {
-        // オブジェクトの設定
-        $this->controller =& $controller;
-        $this->ctl =& $this->controller;
-
-        $this->config =& $controller->getConfig();
-        $this->logger =& $this->controller->getLogger();
-    }
-    */
-    
     /**
      *  トークンをViewとローカルファイルにセットする
      *
index d02bc35..3e42124 100644 (file)
  */
 class Ethna_Plugin_Csrf_Session extends Ethna_Plugin_Csrf
 {
-    /**#@+
-     *  @access private
-     */
-
-    /** @var    object  Ethna_Session    セッションオブジェクト */
-    //var $session;
-    
-    /**#@-*/
-
-
-    /**
-     *  Ethna_Plugin_Csrfのコンストラクタ
-     *
-     *  @access public
-     *  @param  object  Ethna_Controller    &$controller    コントローラオブジェクト
-     */
-    //function __construct($controller)
-    //{
-    //    parent::__construct($controller);
-
-    //    // オブジェクトの設定
-    //    $this->session =& $this->controller->getSession();
-    //}
-
     /**
      *  トークンをViewとローカルファイルにセットする
      *
index 27e60f2..996ffab 100644 (file)
  */
 class Ethna_Plugin_Filter extends Ethna_Plugin_Abstract
 {
-    /**#@+
-     *  @access private
-     */
-
-    /** @var    object  Ethna_Controller    controllerオブジェクト */
-    //var $controller;
-
-    /** @var    object  Ethna_Controller    controllerオブジェクト($controllerの省略形) */
-    //var $ctl;
-
-    /** @var    object  Ethna_Config        設定オブジェクト */
-    //var $config;
-
-    /** @var    object  Ethna_Logger        ログオブジェクト */
-    //var $logger;
-
-    /**#@-*/
-
-
-    /**
-     *  Filterのコンストラクタ
-     *
-     *  @access public
-     *  @param  object  Ethna_Controller    &$controller    コントローラオブジェクト
-     */
-    /*
-    function Ethna_Plugin_Filter(&$controller)
-    {
-        // オブジェクトの設定
-        $this->controller =& $controller;
-        $this->ctl =& $this->controller;
-
-        $this->config =& $controller->getConfig();
-        $this->logger =& $this->controller->getLogger();
-    }
-    */
-
     /**
      *  実行前フィルタ
      *
index c9f00b9..d776f27 100644 (file)
  */
 class Ethna_Plugin_Generator extends Ethna_Plugin_Abstract
 {
-    /** @var    object  Ethna_Controller    スケルトン生成に使うコントローラ */
-    //var $ctl;
-
-    /**
-     *  コンストラクタ
-     *
-     *  @access public
-     */
-    /*
-    function Ethna_Plugin_Generator(&$controller, $type, $name)
-    {
-        // Ethna_Generatorでpluginを取得するときに使ったコントローラ
-        // ex, add-projectではEthna_Controller, add-actionではApp_Controller
-        $this->ctl =& $controller;
-    }
-    */
-
     /**
      *  スケルトンファイルの絶対パスを解決する
      *
index 0a5a727..2092c9f 100644 (file)
@@ -27,7 +27,7 @@ class Ethna_Plugin_Handle_AddActionTest extends Ethna_Plugin_Handle_AddAction
      */
     function perform()
     {
-        $r =& $this->_getopt(array('basedir=', 'skelfile='));
+        $r = $this->_getopt(array('basedir=', 'skelfile='));
         if (Ethna::isError($r)) {
             return $r;
         }
@@ -38,12 +38,12 @@ class Ethna_Plugin_Handle_AddActionTest extends Ethna_Plugin_Handle_AddAction
         if ($action_name == null) {
             return Ethna::raiseError('action name isn\'t set.', 'usage');
         }
-        $r =& Ethna_Controller::checkActionName($action_name);
+        $r = Ethna_Controller::checkActionName($action_name);
         if (Ethna::isError($r)) {
             return $r;
         }
 
-        $ret =& $this->_perform('ActionTest', $action_name, $opt_list);
+        $ret = $this->_perform('ActionTest', $action_name, $opt_list);
         return $ret;
     }
 
index 20de393..dd5a7a8 100644 (file)
@@ -34,7 +34,7 @@ class Ethna_Plugin_Handle_AddAppObject extends Ethna_Plugin_Handle
      */
     function _perform($target)
     {
-        $r =& $this->_getopt(array('basedir='));
+        $r = $this->_getopt(array('basedir='));
         if (Ethna::isError($r)) {
             return $r;
         }
@@ -53,7 +53,7 @@ class Ethna_Plugin_Handle_AddAppObject extends Ethna_Plugin_Handle
             $basedir = getcwd();
         }
 
-        $r =& Ethna_Generator::generate($target, $basedir, $table_name);
+        $r = Ethna_Generator::generate($target, $basedir, $table_name);
         if (Ethna::isError($r)) {
             printf("error occurred while generating skelton. please see also following error message(s)\n\n");
             return $r;
index 344457c..7a47005 100644 (file)
@@ -28,7 +28,7 @@ class Ethna_Plugin_Handle_AddEntryPoint extends Ethna_Plugin_Handle_AddAction
      */
     function perform()
     {
-        $r =& $this->_getopt(array('basedir=', 'skelfile=', 'gateway='));
+        $r = $this->_getopt(array('basedir=', 'skelfile=', 'gateway='));
         if (Ethna::isError($r)) {
             return $r;
         }
@@ -39,19 +39,19 @@ class Ethna_Plugin_Handle_AddEntryPoint extends Ethna_Plugin_Handle_AddAction
         if ($action_name == null) {
             return Ethna::raiseError('action name isn\'t set.', 'usage');
         }
-        $r =& Ethna_Controller::checkActionName($action_name);
+        $r = Ethna_Controller::checkActionName($action_name);
         if (Ethna::isError($r)) {
             return $r;
         }
 
         // add entry point
-        $ret =& $this->_perform('EntryPoint', $action_name, $opt_list);
+        $ret = $this->_perform('EntryPoint', $action_name, $opt_list);
         if (Ethna::isError($ret) || $ret === false) { 
             return $ret;
         }
 
         // add action (no effects if already exists.)
-        $ret =& $this->_perform('Action', $action_name, $opt_list);
+        $ret = $this->_perform('Action', $action_name, $opt_list);
         if (Ethna::isError($ret) || $ret === false) { 
             return $ret;
         }
index 962914e..e46d848 100644 (file)
@@ -80,7 +80,7 @@ EOS;
         $baseDir = isset($optlist['basedir']) ? $optlist['basedir'] : getcwd();
         $name = $arglist[0];
         
-        $r =& Ethna_Generator::generate(
+        $r = Ethna_Generator::generate(
             'Test', $baseDir, $skelfile, $name
         );
         if (Ethna::isError($r)) {
index dcb96eb..c679586 100644 (file)
@@ -27,7 +27,7 @@ class Ethna_Plugin_Handle_AddViewTest extends Ethna_Plugin_Handle_AddView
      */
     function perform()
     {
-        $r =& $this->_getopt(array('basedir=', 'skelfile='));
+        $r = $this->_getopt(array('basedir=', 'skelfile='));
         if (Ethna::isError($r)) {
             return $r;
         }
@@ -38,12 +38,12 @@ class Ethna_Plugin_Handle_AddViewTest extends Ethna_Plugin_Handle_AddView
         if ($view_name == null) {
             return Ethna::raiseError('view name isn\'t set.', 'usage');
         }
-        $r =& Ethna_Controller::checkViewName($view_name);
+        $r = Ethna_Controller::checkViewName($view_name);
         if (Ethna::isError($r)) {
             return $r;
         }
 
-        $ret =& $this->_perform('ViewTest', $view_name, $opt_list);
+        $ret = $this->_perform('ViewTest', $view_name, $opt_list);
         return $ret;
     }
 
index e2b9eb4..319d6a0 100644 (file)
@@ -31,7 +31,7 @@ class Ethna_Plugin_Handle_ClearCache extends Ethna_Plugin_Handle
      */
     function perform()
     {
-        $r =& $this->_getopt(array('basedir=', 
+        $r = $this->_getopt(array('basedir=', 
                                    'any-tmp-files', 'smarty', 'pear', 'cachemanager'));
         if (Ethna::isError($r)) {
             return $r;
@@ -39,7 +39,7 @@ class Ethna_Plugin_Handle_ClearCache extends Ethna_Plugin_Handle
         list($args,) = $r;
 
         $basedir = isset($args['basedir']) ? realpath(end($args['basedir'])) : getcwd();
-        $controller =& Ethna_Handle::getAppController($basedir);
+        $controller = Ethna_Handle::getAppController($basedir);
         if (Ethna::isError($controller)) {
             return $controller;
         }
@@ -47,7 +47,7 @@ class Ethna_Plugin_Handle_ClearCache extends Ethna_Plugin_Handle
 
         if (isset($args['smarty']) || isset($args['any-tmp-files'])) {
             echo "cleaning smarty caches, compiled templates...";
-            $renderer =& $controller->getRenderer();
+            $renderer = $controller->getRenderer();
             if (strtolower(get_class($renderer)) == "ethna_renderer_smarty") {
                 $renderer->engine->clear_all_cache();
                 $renderer->engine->clear_compiled_tpl();
index c99b80f..c3b3b8c 100644 (file)
@@ -28,7 +28,7 @@ class Ethna_Plugin_Handle_CreatePlugin extends Ethna_Plugin_Handle
      */
     function perform()
     {
-        $r =& $this->_getopt(
+        $r = $this->_getopt(
             array(
                 'basedir=',
                 'type=',
index f355b2a..3a70c9e 100644 (file)
@@ -26,7 +26,7 @@ class Ethna_Plugin_Handle_Help extends Ethna_Plugin_Handle
      */
     function perform()
     {
-        $r =& $this->_getopt();
+        $r = $this->_getopt();
         if (Ethna::isError($r)) {
             return $r;
         }
@@ -47,7 +47,7 @@ class Ethna_Plugin_Handle_Help extends Ethna_Plugin_Handle
         }
 
         // getHandler
-        $handler =& $this->eh->getHandler($handle_name);
+        $handler = $this->eh->getHandler($handle_name);
         if (Ethna::isError($handler) || $handler === false) { 
             // command not found
             return Ethna::raiseError('command not found.', 'usage');
index 0c917f6..cdeaa9f 100644 (file)
@@ -30,7 +30,7 @@ class Ethna_Plugin_Handle_MakePluginPackage extends Ethna_Plugin_Handle
      */
     function &_parseArgList()
     {
-        $r =& $this->_getopt(
+        $r = $this->_getopt(
             array(
                 'basedir=',
                 'workdir=',
@@ -108,7 +108,7 @@ class Ethna_Plugin_Handle_MakePluginPackage extends Ethna_Plugin_Handle
         require_once 'PEAR/PackageFileManager/File.php';
 
         // 引数の評価
-        $args =& $this->_parseArgList();
+        $args = $this->_parseArgList();
         if (Ethna::isError($args)) {
             return $args;
         }
@@ -229,11 +229,11 @@ class Ethna_Plugin_Handle_MakePluginPackage extends Ethna_Plugin_Handle
 
         //  finally make package
         PEAR_Command::setFrontendType('CLI');
-        $ui =& PEAR_Command::getFrontendObject();
-        $config =& PEAR_Config::singleton();
+        $ui = PEAR_Command::getFrontendObject();
+        $config = PEAR_Config::singleton();
         $ui->setConfig($config);
         PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, array(&$ui, 'displayFatalError'));
-        $cmd =& PEAR_Command::factory('package', $config);
+        $cmd = PEAR_Command::factory('package', $config);
         if (PEAR::isError($cmd)) {
             return Ethna::raiseError($cmd->getMessage, $cmd->getCode());
         }
index d95eb43..182b240 100644 (file)
@@ -196,7 +196,7 @@ class Ethna_Plugin_Logwriter extends Ethna_Plugin_Abstract
             }
         }
 
-        $c =& Ethna_Controller::getInstance();
+        $c = Ethna_Controller::getInstance();
         $basedir = $c->getBasedir();
 
         $function = sprintf("%s.%s", isset($bt[$i]['class']) ? $bt[$i]['class'] : 'global', $bt[$i]['function']);
index 3c94dff..2d51d9d 100644 (file)
  */
 function smarty_function_csrfid($params, &$smarty)
 {
-    $c =& Ethna_Controller::getInstance();
+    $c = Ethna_Controller::getInstance();
     $name = $c->config->get('csrf');
     if (is_null($name)) {
         $name = 'Session';
     }
-    $plugin =& $c->getPlugin();
+    $plugin = $c->getPlugin();
     $csrf = $plugin->getPlugin('Csrf', $name);
     $csrfid = $csrf->get();
     $token_name = $csrf->getName();
index 019acad..6ec0f13 100644 (file)
@@ -15,8 +15,8 @@ function smarty_function_form_name($params, &$smarty)
     }
 
     // view object
-    $c =& Ethna_Controller::getInstance();
-    $view =& $c->getView();
+    $c = Ethna_Controller::getInstance();
+    $view = $c->getView();
     if ($view === null) {
         return null;
     }
index d8cb70c..f395268 100644 (file)
@@ -18,8 +18,8 @@ function smarty_function_message($params, &$smarty)
         return '';
     }
 
-    $c =& Ethna_Controller::getInstance();
-    $action_error =& $c->getActionError();
+    $c = Ethna_Controller::getInstance();
+    $action_error = $c->getActionError();
 
     $message = $action_error->getMessage($params['name']);
     if ($message === null) {
index c1d2799..ef8aa76 100644 (file)
@@ -16,9 +16,9 @@ function smarty_function_url($params, &$smarty)
         unset($query[$key]);
     }
 
-    $c =& Ethna_Controller::getInstance();
-    $config =& $c->getConfig();
-    $url_handler =& $c->getUrlHandler();
+    $c = Ethna_Controller::getInstance();
+    $config = $c->getConfig();
+    $url_handler = $c->getUrlHandler();
     list($path, $path_key) = $url_handler->actionToRequest($action, $query);
 
     if ($path != "") {
index dd0d020..d004162 100644 (file)
@@ -32,20 +32,6 @@ class Ethna_Plugin_Urlhandler extends Ethna_Plugin_Abstract
     /**#@-*/
 
     /**
-     *  Urlhandlerクラスのコンストラクタ
-     *
-     *  @access public
-     *  @param  object  Ethna_Controller    $controller コントローラオブジェクト
-     */
-    /*
-    function Ethna_Plugin_Urlhandler(&$controller)
-    {
-        $this->backend =& $controller->getBackend();
-        $this->logger =& $controller->getLogger();
-    }
-    */
-
-    /**
      *  アクションをユーザリクエストに変換する
      *
      *  @param string $action
index c386fd1..532901e 100644 (file)
@@ -54,10 +54,10 @@ class Ethna_Plugin_Validator extends Ethna_Plugin_Abstract
     /*
     function Ethna_Plugin_Validator(&$controller)
     {
-        $this->backend =& $controller->getBackend();
-        $this->logger =& $controller->getLogger();
-        $this->action_form =& $controller->getActionForm();
-        $this->af =& $this->action_form;
+        $this->backend = $controller->getBackend();
+        $this->logger = $controller->getLogger();
+        $this->action_form = $controller->getActionForm();
+        $this->af = $this->action_form;
     }
     */
 
index 1406b83..7a5be56 100644 (file)
@@ -112,9 +112,9 @@ class Ethna_Renderer_Rhaco extends Ethna_Renderer
      *  @param string $name  変数名
      *  @return mixed 変数
      */
-    function &getProp($name = null)
+    function getProp($name = null)
     {
-        $property =& $this->engine->variables[$name];
+        $property = $this->engine->variables[$name];
 
         if ($property !== null) {
             return $property;
index fa4f4c9..f809d8e 100644 (file)
@@ -107,9 +107,9 @@ class Ethna_Renderer_Smarty extends Ethna_Renderer
      *
      *  @access public
      */
-    function &getProp($name = null)
+    function getProp($name = null)
     {
-        $property =& $this->engine->get_template_vars($name);
+        $property = $this->engine->get_template_vars($name);
 
         if ($property !== null) {
             return $property;
index 0b27ae8..67a3d3d 100644 (file)
@@ -35,7 +35,7 @@ class Ethna_SOAP_Gateway
      */
     public function __construct()
     {
-        $this->controller =& Ethna_Controller::getInstance();
+        $this->controller = Ethna_Controller::getInstance();
     }
 
     /**
@@ -56,7 +56,7 @@ class Ethna_SOAP_Gateway
      */
     function &getApp()
     {
-        $action_form =& $this->controller->getActionForm();
+        $action_form = $this->controller->getActionForm();
         return $action_form->app_vars;
     }
 
@@ -68,14 +68,14 @@ class Ethna_SOAP_Gateway
      */
     function getErrorCode()
     {
-        $action_error =& $this->controller->getActionError();
+        $action_error = $this->controller->getActionError();
         if ($action_error->count() == 0) {
             return null;
         }
         
         // 最初の1つを返す
         $error_list = $action_error->getErrorList();
-        $error =& $error_list[0];
+        $error = $error_list[0];
 
         return $error->getCode();
     }
@@ -88,7 +88,7 @@ class Ethna_SOAP_Gateway
      */
     function getErrorMessage()
     {
-        $action_error =& $this->controller->getActionError();
+        $action_error = $this->controller->getActionError();
         if ($action_error->count() == 0) {
             return null;
         }
index eedae74..6cdf631 100644 (file)
@@ -53,10 +53,10 @@ class Ethna_SOAP_GatewayGenerator
      */
     public function __construct()
     {
-        $this->controller =& Ethna_Controller::getInstance();
-        $this->config =& $this->controller->getConfig();
+        $this->controller = Ethna_Controller::getInstance();
+        $this->config = $this->controller->getConfig();
         $this->action_error = null;
-        $this->ae =& $this->action_error;
+        $this->ae = $this->action_error;
         $this->gateway = "";
         $this->name = $this->controller->getAppId();
         $this->namespace = $this->_getNameSpace();
@@ -137,7 +137,7 @@ class Ethna_SOAP_GatewayGenerator
             
             $entry .= "    \$this->dispatch();\n";
 
-            $entry .= "    \$app =& \$this->getApp();\n";
+            $entry .= "    \$app = \$this->getApp();\n";
             $entry .= "    \$errorcode = \$this->getErrorCode();\n";
             $entry .= "    \$errormessage = \$this->getErrorMessage();\n";
             $entry .= "    \$retval = array();\n";
index f66453f..9d9630c 100644 (file)
@@ -54,10 +54,10 @@ class Ethna_SOAP_WsdlGenerator
      */
     public function __construct($gateway)
     {
-        $this->controller =& Ethna_Controller::getInstance();
-        $this->config =& $this->controller->getConfig();
+        $this->controller = Ethna_Controller::getInstance();
+        $this->config = $this->controller->getConfig();
         $this->action_error = null;
-        $this->ae =& $this->action_error;
+        $this->ae = $this->action_error;
         $this->wsdl = "";
         $this->name = $this->controller->getAppId();
         $this->namespace = $this->_getNameSpace();
@@ -372,7 +372,7 @@ EOD;
             $keys = array_keys($form->form);
         }
         foreach ($keys as $key) {
-            $type_id =& $form->form[$key]['type'];
+            $type_id = $form->form[$key]['type'];
             if (is_array($type_id)) {
                 $type_keys = array_keys($type_id);
                 $type = "tns:" . Ethna_SOAP_Util::getArrayTypeName($type_id[$type_keys[0]]);
index eb759a8..ab3bb70 100644 (file)
@@ -35,7 +35,7 @@ class Ethna_View_Info extends Ethna_ViewClass
      */
     function preforward()
     {
-        $ctl =& Ethna_Controller::getInstance();
+        $ctl = Ethna_Controller::getInstance();
         $em = new Ethna_InfoManager($this->backend);
 
         // cores
index 1ffd74e..b2f1407 100644 (file)
@@ -48,7 +48,7 @@ class Ethna_View_UnitTest extends Ethna_ViewClass
             header("Pragma: no-cache");
         }
 
-        $ctl =& Ethna_Controller::getInstance();
+        $ctl = Ethna_Controller::getInstance();
 
         // cores
         $this->af->setApp('app_id', $ctl->getAppId());
index 3333983..20db8f9 100644 (file)
@@ -16,7 +16,7 @@ class Ethna_Plugin_Abstract_Test extends Ethna_UnitTestBase
 
     function setUp()
     {
-        $this->plugin =& $this->ctl->getPlugin();
+        $this->plugin = $this->ctl->getPlugin();
 
         // for PHP 5, it's not enable to create instance of abstract class,
         // now this is temporary process.
index d4008d4..36819d5 100644 (file)
@@ -35,7 +35,7 @@ class Ethna_Plugin_Handle_AddTemplate_Test extends Ethna_UnitTestBase
 
     function test_template_dir_exists()
     {
-        $ctl =& $this->proj->getController(); 
+        $ctl = $this->proj->getController(); 
 
         //    default locale 
         $r = $this->proj->runCmd('add-template', array('test'));
index ed9d01c..721db4e 100644 (file)
@@ -29,7 +29,7 @@ class Ethna_Plugin_Handle_I18n_Test extends Ethna_UnitTestBase
         if (Ethna::isError($r)) {
             $this->fail($r->getMessage());    
         }
-        $this->mock_ctl =& $this->proj->getController();
+        $this->mock_ctl = $this->proj->getController();
         $locale_dir = $this->mock_ctl->getDirectory('locale');
         $locale = $this->mock_ctl->getLocale();
         $this->msg_file = $locale_dir . '/'