OSDN Git Service

- [breaking B.C.] Ethna_ClassFactoryのリファクタリング
authorfujimoto <fujimoto@2ef88817-412d-0410-a32c-8029a115e976>
Thu, 20 Jul 2006 08:10:36 +0000 (08:10 +0000)
committerfujimoto <fujimoto@2ef88817-412d-0410-a32c-8029a115e976>
Thu, 20 Jul 2006 08:10:36 +0000 (08:10 +0000)
commit28f73f05698187247a7a4e43159bcb6fd36cc371
tree4fae156d3287113171bb265cb0bb804c74a72692
parentac3051e3f4ef12294a3bcdf266bd7b7cae73e2aa
- [breaking B.C.] Ethna_ClassFactoryのリファクタリング
-- Ethna_Backend::getObject()メソッドを追加しました
-- これにより、Ethna_Controllerの$classメンバに
 $class = array(
   // ...
   'user' => 'Some_Foo_Bar',
 ),
と記述することで
 $user =& $this->backend->getObject('user');
としてSome_Foo_Barクラスのオブジェクトを取得することが出来ます
-- クラス定義が見つからない場合は下記の順でファイルを探しに行きます(include_path)
+++ Some_Foo_Bar.php
+++ Some/Foo/Bar.php
+++ Some/Foo/Some_Foo_Bar.php
-- アプリケーションマネージャの生成もEthna_ClassFactoryで行われます(Ethna_ClassFactory::getManager()が追加されています)
-- これに伴い、〜2.1.xではコントローラクラスに
 $manager = array(
   'um' => 'User',
 );
のように記述されていると、Ethna_ActionClass、Ethna_ViewClass、Ethna_AppObject、Ethna_*Managerで
 $this->um
としてマネージャオブジェクトにアクセスできていたのですが、この機能が廃止されています(不評なら戻します@preview2)

- Ethna_Renderer関連微調整
CHANGES
class/Ethna_ActionClass.php
class/Ethna_AppObject.php
class/Ethna_Backend.php
class/Ethna_ClassFactory.php
class/Ethna_Controller.php
class/Ethna_ViewClass.php