2012-02-02から1日間の記事一覧

beginProfiling(); try { $result = $da->$func($this->_db, $sc, $sql); $this->endProfiling(); return $result; } catch (Exception $e) { $this->_logger->log_debug…

関数へのポインタとかの手もあるかなぁと思ったけど、別のクラス内部の関数へのポインタを別の関数に渡すのはオブジェクト指向言語で可能なのか??というアレで、全く、呼び出すメソッド名を文字列の引数で渡せれば楽なのに、ってそんなこと出来るかいな H…

え〜と、10行の例外処理と定型処理に囲まれた1行のメソッドがあるのですよ。 まぁこんな感じ? beginProfiling(); try { $result = $da->selectRowset($this->_db, $sc, $sql); $this->endProfiling(); return $result; } catch (Exception $…