www.gusucode.com > 同城苏州黄页系统php源码程序 > lib/class.column/clm_file.class.php
<? if( !class_exists('column') ) include_once($root_path.'lib/column.class.php'); ############################## # file 字段类 --- --- class clm_file extends column { var $name = 'file'; var $type = 'string'; var $columnName = 'file'; var $group = '|'; # 构造函数 function clm_file ( &$webpage ) { isset($webpage->fields['file'])? $this->add_field( $webpage->fields['file'] ) : // 栏位已经创建实例 $this->add_field( $fld='file' ) ; // 尚未创建实例 # 调用父类的构造函数,初始化 父类中的成员 $my_parent_name=get_parent_class(__CLASS__); $this->$my_parent_name(); } } ?>