예제 #1
0
파일: Brand.php 프로젝트: xxjuan/php-coffee
 /**
  * 构造函数
  */
 public function __construct()
 {
     parent::__construct();
     $this->name = '品牌(Brand)';
     // 字段名称
     $this->fieldtype = array('smallint' => 5);
     $this->defaulttype = 'smallint';
     // 当用户没有选择字段类型时的缺省值
 }
예제 #2
0
파일: Group.php 프로젝트: surgeon-xie/jxseo
 /**
  * 构造函数
  */
 public function __construct()
 {
     parent::__construct();
     $this->name = IS_ADMIN ? lang('293') : '';
     // 字段名称
     $this->fieldtype = '';
     // TRUE表全部可用字段类型,自定义格式为 array('可用字段类型名称' => '默认长度', ... )
     $this->defaulttype = '';
     // 当用户没有选择字段类型时的缺省值
 }
예제 #3
0
 /**
  * 构造函数
  */
 public function __construct()
 {
     parent::__construct();
     $this->name = lang('176');
     // 字段名称
     $this->fieldtype = array('TEXT' => '');
     // TRUE表全部可用字段类型,自定义格式为 array('可用字段类型名称' => '默认长度', ... )
     $this->defaulttype = 'TEXT';
     // 当用户没有选择字段类型时的缺省值
 }
예제 #4
0
 /**
  * 构造函数
  */
 public function __construct()
 {
     parent::__construct();
     $this->name = lang('m-111');
     // 字段名称
     $this->fieldtype = array('VARCHAR' => '255');
     // TRUE表全部可用字段类型,自定义格式为 array('可用字段类型名称' => '默认长度', ... )
     $this->defaulttype = 'VARCHAR';
     // 当用户没有选择字段类型时的缺省值
 }