Class Ethna_AppManager

Description

アプリケーションマネージャのベースクラス

Located in /class/Ethna_AppManager.php (line 39)


	
			
Direct descendents
Class Description
 class Ethna_UnitTestManager Ethnaユニットテストマネージャクラス
 class Ethna_Logger ログ管理クラス
 class Ethna_InfoManager Ethnaマネージャクラス
Method Summary
 Ethna_AppManager Ethna_AppManager (object Ethna_Backend &$backend)
 array getAttrList (string $attr_name)
 string getAttrLongName (string $attr_name, mixed $id)
 string getAttrName (string $attr_name, mixed $id)
 mixed getObjectList (string $class, [array $filter = null], [array $order = null], [int $offset = null], [int $count = null])
 mixed getObjectProp (string $class, [array $keys = null], [array $filter = null])
 mixed getObjectPropList (string $class, [array $keys = null], [array $filter = null], [array $order = null], [int $offset = null], [int $count = null])
Methods
Constructor Ethna_AppManager (line 74)

Ethna_AppManagerのコンストラクタ

  • access: public
Ethna_AppManager Ethna_AppManager (object Ethna_Backend &$backend)
getAttrList (line 100)

属性の一覧を返す

  • return: 属性値一覧
  • access: public
array getAttrList (string $attr_name)
  • string $attr_name: 属性の名前(変数名)
getAttrLongName (line 135)

属性の表示名(詳細)を返す

  • return: 属性の詳細表示名
  • access: public
string getAttrLongName (string $attr_name, mixed $id)
  • string $attr_name: 属性の名前(変数名)
  • mixed $id: 属性ID
getAttrName (line 114)

属性の表示名を返す

  • return: 属性の表示名
  • access: public
string getAttrName (string $attr_name, mixed $id)
  • string $attr_name: 属性の名前(変数名)
  • mixed $id: 属性ID
getObjectList (line 161)

オブジェクトの一覧を返す

  • return: array(0 => 検索条件にマッチした件数, 1 => $offset, $countにより指定された件数のオブジェクトID一覧) Ethna_Error:エラー
  • todo: パフォーマンス対策(1オブジェクトの占有メモリが多い場合)
  • access: public
mixed getObjectList (string $class, [array $filter = null], [array $order = null], [int $offset = null], [int $count = null])
  • string $class: Ethna_AppObjectの継承クラス名
  • array $filter: 検索条件
  • array $order: 検索結果ソート条件
  • int $offset: 検索結果取得オフセット
  • int $count: 検索結果取得数
getObjectProp (line 253)

オブジェクトプロパティを返す

getObjectPropList()メソッドの簡易版で、$filterにより結果が1エントリに 制限される場合(プライマリキーでの検索等)に利用する

  • return: array:プロパティ一覧 null:エントリなし Ethna_Error:エラー
  • access: public
mixed getObjectProp (string $class, [array $keys = null], [array $filter = null])
  • string $class: Ethna_AppObjectの継承クラス名
  • array $keys: 取得するプロパティ一覧
  • array $filter: 検索条件
getObjectPropList (line 214)

オブジェクトプロパティの一覧を返す

getObjectList()メソッドは条件にマッチするIDを元にEthna_AppObjectを生成する ためコストがかかる。こちらはプロパティのみをSELECTするので低コストでデータ を取得することが可能。

  • return: array(0 => 検索条件にマッチした件数,
    1. => $offset, $countにより指定された件数のプロパティ一覧)
    Ethna_Error:エラー
  • access: public
mixed getObjectPropList (string $class, [array $keys = null], [array $filter = null], [array $order = null], [int $offset = null], [int $count = null])
  • string $class: Ethna_AppObjectの継承クラス名
  • array $keys: 取得するプロパティ一覧(nullなら全て)
  • array $filter: 検索条件
  • array $order: 検索結果ソート条件
  • int $offset: 検索結果取得オフセット
  • int $count: 検索結果取得数

Documentation generated on Fri, 11 Nov 2011 03:59:09 +0900 by phpDocumentor 1.4.3