<?php class ItemTable extends Zend_Db_Table_Abstract{ protected $_name="tbl_item"; protected $_primary ="id"; // 行クラスを指定 protected $_rowClass ="ItemRow"; } class ItemRow extends Zend_Db_Table_Row_Abstract{ protected function _insert(){ $lm=new LogManager($this->_table->getAdapter()); $lm->doInsertLog(array("msg"=>"追加したよ!","date"=>(date("Y/m/d H:i:s"))); } protected function _update(){ $lm=new LogM