function __construct($tableName) { if (empty($tableName)) { $tableName = "Content"; } $this->name = $this->tableName = $tableName; parent::__construct(); $this->_link = array($tableName . "_data" => array("mapping_type" => HAS_ONE, "class_name" => $tableName . "_data", "foreign_key" => "id")); }
public function __construct() { parent::__construct(); /** 加载函数库 **/ load("@.Admin.model"); /** 初始化提示语言数据 **/ $this->_iniData(); /** 过滤自动验证数组 **/ $this->_filterValidate(); /** 自动完成处理 **/ $this->_disposeAuto(); }
public function __construct() { $this->_link['AuthGroup']["relation_table"] = C("DB_PREFIX") . $this->_link['AuthGroup']["relation_table"]; parent::__construct(); }
public function __construct() { parent::__construct(); /** 加载函数库 **/ load("@.Home.model"); }