/** * * @param integer $uid * @return array */ public static function getLangRecord($uid) { $uid = (int) $uid; if (empty(static::$sysLanguageRecords[$uid])) { tx_rnbase::load('tx_rnbase_util_DB'); static::$sysLanguageRecords[$uid] = tx_rnbase_util_DB::getRecord('sys_language', $uid); } return static::$sysLanguageRecords[$uid]; }
/** * Reload this records from database * * @return tx_rnbase_model_base */ function reset() { $this->record = tx_rnbase_util_DB::getRecord($this->getTableName(), $this->getUid()); // set the modified state to clean $this->resetCleanState(); return $this; }