gusucode.com > 同城苏州黄页系统php源码程序 > lib/class.column/clm_author.class.php

    <?
if( !class_exists('column') )
	include_once($root_path.'lib/column.class.php');

##############################
# author 字段类 --- ---

class clm_author extends column
{
	var $name			= 'author';
	var $type			= 'string';
	var $columnName		= 'author';
	var $group			= '|';
	
	# 构造函数
	function clm_author ( &$webpage )
	{
		isset($webpage->fields['author'])?			
			$this->add_field( $webpage->fields['author'] )	:	// 栏位已经创建实例
			$this->add_field( $fld='author' )					;	// 尚未创建实例

		# 调用父类的构造函数,初始化 父类中的成员
		$my_parent_name=get_parent_class(__CLASS__);
		$this->$my_parent_name();
	}
}
?>