protected function __construct($sKind, $sSplitField, $sKeyField, $sUoName) { KO_DEBUG >= 6 && Ko_Tool_Debug::VAddTmpLog('data/UObjectMysql', '__construct:' . $sKind . ':' . $sSplitField . ':' . $sKeyField . ':' . $sUoName); $this->_sKind = $sKind; $this->_sSplitField = $sSplitField; $this->_sKeyField = $sKeyField; $this->_oSqlAgent = Ko_Data_SqlAgent::OInstance($sUoName); }
private function _oGetSqlAgent() { if (is_null($this->_oSqlAgent)) { if ($this->_bIsMongoDB) { $this->_oSqlAgent = Ko_Data_MongoDB::OInstance($this->_sDBAgentName); } else { $this->_oSqlAgent = Ko_Data_SqlAgent::OInstance($this->_sDBAgentName); } } return $this->_oSqlAgent; }