/** * 本体実行前にクラスを初期化する */ static function init() { $ins = self::getinstance(); Page::attach($ins); Attach::attach($ins); AttachedFile::attach($ins); }