DtmCUserKankyo.php

このソースはUseKankyoCommonDataModuleクラスが存在しないときのみ実行されます。
DtmCBase.phpをrequireしているので、BaseCommonDataModuleクラスが定義されます。
そして、BaseCommonDataModuleクラスのサブクラスとして、UserKankyoCommonDataModuleクラスを定義します。
requireされるソースは以上です。
固定値として、MAX_LINKという値を"14"に設定しています。
次に、CommonBaseViewクラスのサブクラスとしてmenuクラスを定義します。
その後、

	$obj_html = new menu($cust_id, $user_name, $user_id);

としてmenuクラスのコンストラクタを呼び出します。

<?php
function menu($cust_id, $user_name, $user_id) {
	CommonBaseView::CommonBaseView();
	$this->cust_id = $cust_id;
	$this->user_name = $user_name;
	$this->kigyo_joho();
	$this->nendo_joho($user_id);
}
?>

ここで、$cust_id, $user_name,$user_idの値は定義時のままなので、空の文字列になります。
CommonBaseViewクラスのCommonBaseView関数では、以下のような処理をしています。

<?php
function CommonBaseView() {
	$this->loop_mode_start = "/<!--\ {<=(\w+)}\ -->/";
	$this->loop_mode_end   = "/<!--\ {=>(\w+)}\ -->/";
	$this->tag_mode_start = "/<!--\ {<-(\w+)}\ -->/";
	$this->tag_mode_end   = "/<!--\ {->(\w+)}\ -->/";
	$this->reg_item   = "/(.*?){@(\w+)}([^{]*)/";
	$this->output_byte = 0;
	$this->obj_count = 8;
	$this->encode = "EUC";
	$this->output_type = "html";
}

何かいろいろ設定しています・・・。正規表現っぽい??
次にkigyo_joho関数を呼び出すと、以下の処理がおこなわれます。

<?php
function kigyo_joho() {
	$obj = new KigyoCommonDataModule($this->cust_id, $this->user_name);
	if($obj->open() and $obj->get_data(0)) {
		$this->kaisha_mei = $obj->kaisha_mei();
		$this->busho_mei = $obj->busho_mei();
	}
}

ここで、KigyoCommonDataModuleクラスのコンストラクタを呼び出します。
とりあえず今回はここまで。