Class: Teeple_Container

Source Location: /Container.php

Class Overview [line 23]


DIコンテナ

Author(s):

Version:

Copyright:

Variables

Constants

Methods


Inherited Variables

Inherited Constants

Inherited Methods



Class Details

DIコンテナ

[ Top ]


Class Variables

$log

[line 49]

Tags:

  • access - protected

Type: Logger

Overrides:

[ Top ]

$_components = array()

[line 38]

Containerとして管理するインスタンスを格納

Tags:

  • access - protected

Type: array

Overrides:

[ Top ]

$_dicon = array()

[line 44]

設定内容を保持する配列

Tags:

  • access - protected

Type: array

Overrides:

[ Top ]


Class Methods

static getInstance

static Teeple_Container getInstance( )

[line 56]

ContainerのSingletonインスタンスを取得します。

Tags:

  • access - public

Parameters:

[ Top ]

__construct

Teeple_Container __construct( )

[line 68]

コンストラクタ

Tags:

  • access - public

Parameters:

[ Top ]

getComponent

Object getComponent( string $name)

[line 118]

Componentのインスタンスを取得します。 (RequestスコープのComponent)

Tags:

  • return - Componentのインスタンス
  • access - public

Parameters:

  • string $name - Component名

[ Top ]

getEntity

Teeple_ActiveRecord getEntity( string $name)

[line 170]

Teeple_ActiveRecordのエンティティを取得します。 DefaultTxから取得されます。

Tags:

  • access - public

Parameters:

  • string $name -

[ Top ]

getPrototype

Object getPrototype( string $name)

[line 159]

prototypeのComponentを取得します。

Tags:

  • access - public

Parameters:

  • string $name -

[ Top ]

getSessionComponent

Object getSessionComponent( string $name)

[line 136]

SessionスコープのComponentを取得します。

Tags:

  • access - public

Parameters:

  • string $name -

[ Top ]

register

void register( string $name, Object $component)

[line 102]

ContainerにComponentのインスタンスをセット

Tags:

  • access - public

Parameters:

  • string $name - Component名
  • Object $component - Componentのインスタンス

[ Top ]

setup

void setup( string $configfile)

[line 79]

コンテナをセットアップします。

Tags:

  • access - public

Parameters:

  • string $configfile -

[ Top ]


Class Constants

SESSION_KEY =  '__SESSION_COMPONENTS'

[line 26]

[ Top ]


Documentation generated on Mon, 26 Apr 2010 08:59:37 +0900 by phpDocumentor 1.4.3