2009-12-08から1日間の記事一覧
二つのクラスがお互いを循環参照すると、当然エラーなんだけれども、なんとなく確認したくなったので書いてみる。 _child = new ChildClass($this); } public function __call($name,$args) { return call_user_func(array($this->_child,$name),$args); } }…
二つのクラスがお互いを循環参照すると、当然エラーなんだけれども、なんとなく確認したくなったので書いてみる。 _child = new ChildClass($this); } public function __call($name,$args) { return call_user_func(array($this->_child,$name),$args); } }…