私はZend_Db_Rowset
そのパラメータを介してのみ受け取るクラスを構築しており、そこからメソッドZend_Db_Table
を使用して関連するものを抽出できます。$rowset->getTable()
order
ダンプを介して(プライベートプロパティとして)ステートメントを設定できるので、テーブルからステートメントを取り戻す方法があるかどうか疑問に思いました。
object(Application_Model_DbTable_View_Formation)#107 (18) {
...
["_rows":protected] => array(4) {
[0] => array(3) {
[0] => string(7) "0.04095"
[1] => string(20) "DESCRIBE `formation`"
[2] => NULL
}
[1] => array(3) {
[0] => string(7) "0.00047"
[1] => string(67) "SELECT `formation`.* FROM `formation` ORDER BY `date` desc LIMIT 30"
[2] => NULL
}
[2] => array(3) {
[0] => string(7) "0.02031"
[1] => string(22) "DESCRIBE `v_formation`"
[2] => NULL
}
[3] => array(3) {
[0] => string(7) "0.02285"
[1] => string(135) "SELECT `v_formation`.* FROM `v_formation` WHERE (date >= '2011-01-01 12:00:00') AND (date <= '2011-12-31 11:59:59') ORDER BY `date` ASC"
[2] => NULL
}
}
...
}