Inits list table name and object name.

@param string $sObjectName List item object type
@param string $sCoreTable  Db table name this list s selected from
962705
public function init($sObjectName, $sCoreTable = null)
    {
        $this->_sObjectsInListName = $sObjectName;
        if ($sCoreTable) {
            $this->_sCoreTable = $sCoreTable;
        }
    }
1221757
protected function setupObject()
    {
        parent::setupObject();
        $this->name = $this->getAttribute("name");
        $this->baseClass = $this->getAttribute("baseClass");
        $this->basePeer = $this->getAttribute("basePeer");
        $this->defaultIdMethod = $this->getAttribute("defaultIdMethod", IDMethod::NATIVE);
        $this->defaultPhpNamingMethod = $this->getAttribute("defaultPhpNamingMethod", NameGenerator::CONV_METHOD_UNDERSCORE);
        $this->defaultTranslateMethod = $this->getAttribute("defaultTranslateMethod", Validator::TRANSLATE_NONE);
        $this->heavyIndexing = $this->booleanValue($this->getAttribute("heavyIndexing"));
        $this->tablePrefix = $this->getAttribute('tablePrefix', $this->getBuildProperty('tablePrefix'));
        $this->defaultStringFormat = $this->getAttribute('defaultStringFormat', 'YAML');
    }
439901
public function initializeObject()
    {
        if ($this->cache->has('fractions')) {
            $this->fractions = $this->cache->get('fractions');
        } else {
            $this->generateFractions();
            $this->cache->set('fractions', $this->fractions);
        }
    }
132295
public static function Init(?string $host = null, ?int $port = null, ?string $dbname = null, ?string $user = null, ?string $pass = null, ?string $encoding = 'UTF8', ?bool $useCache = null) :void
        {
            if (!self::IsSupported()) {
                throw new \Exception('PostgreSQL is not supported!');
            }

            if (self::$inited) {
                return;
            }

            self::$inited = true;

            self::$host     = is_null($host) ? Cfg::Get('Vxn.storage.postgres.host', '127.0.0.1') : $host;
            self::$port     = is_null($port) ? Cfg::Get('Vxn.storage.postgres.port', '5432') : $port;
            self::$dbname   = is_null($dbname) ? Cfg::Get('Vxn.storage.postgres.dbname', '') : $dbname;
            self::$user     = is_null($user) ? Cfg::Get('Vxn.storage.postgres.user', '') : $user;
            self::$pass     = is_null($pass) ? Cfg::Get('Vxn.storage.postgres.pass', '') : $pass;
            self::$encoding = is_null($encoding) ? Cfg::Get('Vxn.storage.postgres.encoding', 'UTF8') : $encoding;
            self::$useCache = is_null($useCache) ? Cfg::Get('Vxn.storage.postgres.useCache', false) : $useCache;

            Engine::RegisterFinalShutdown(function () {
                self::CloseConnection();
            });
        }
751371
@Override
    public void setObject(String parameterName, Object x) throws SQLException
    {
        checkClosed();
        throw SQLError.noSupport();
    }
492804
public void init(RemoteTable tableRemote)
    {
        m_tableRemote = tableRemote;
        m_objCurrentPhysicalRecord = NONE;
        m_objCurrentLockedRecord = NONE;
        m_objCurrentCacheRecord = NONE;
        m_iCurrentLogicalPosition = -1;
        m_iPhysicalLastRecordPlusOne = -1;
    }
506851
public function startList($name)
    {
        $this->checkStartList($name);

        $array = new Json\ArrayObject($this->json);

        $this->json->$name = $array;
        $this->json = $array;
    }
794635
private function initSQLs($listName)
    {
        $this->create = 'CREATE TABLE IF NOT EXISTS '.$listName.' (name VARCHAR(32) PRIMARY KEY, status INT)';
        $this->select = 'SELECT * FROM '.$listName;
        $this->insert = 'INSERT INTO '.$listName.' VALUES (?,?)';
        $this->update = 'UPDATE '.$listName.' SET status = ? WHERE name = ?';
        $this->delete = 'DELETE FROM '.$listName.' WHERE name = ?';
    }
1330453
private void initializeMappingTable() {
        for (TaskBase taskClassObject : taskClassObjects) {
            Class<? extends TaskBase> claz = taskClassObject.getClass();
            for (Method method : claz.getDeclaredMethods()) {
                for (Annotation annotation : method.getAnnotations()) {
                    if (annotation instanceof Task) {
                        String methodName = ((Task) annotation).name();
                        String methodVersion = ((Task) annotation).version();
                        String key = getKey(methodName, methodVersion);
                        if (!methodMap.containsKey(key)) {
                            methodMap.put(key, method);
                            objectMap.put(key, taskClassObject);
                        } else {
                            // duplicate name--version pair
                            throw new DuplicateTaskAnnotationException(methodName, methodVersion);
                        }
                    }
                }
            }
        }
    }
736029
public function setTableName(string $tableName): void
    {
        $tableName = trim($tableName);

        if (empty($tableName)) {
            throw new InvalidArgumentException('tableName cannot be empty');
        }

        $this->tableName = $tableName;
    }
1126484
protected function prepareShopTableViewNames($tableName)
    {
        $this->_aValidShopViews[] = 'oxv_' . $tableName;

        if (in_array($tableName, $this->getMultiLangTables())) {
            foreach ($this->getAllShopLanguages() as $sLang) {
                $this->_aValidShopViews[] = 'oxv_' . $tableName . '_' . $sLang;
            }
        }
    }
291081
public void setServerName(String serverName) {
    if (serverName == null || serverName.equals("")) {
      this.serverName = "localhost";
    } else {
      this.serverName = serverName;
    }
  }
36241
public function verifyListIsEmpty(string $tabName): void
    {
        $this->navLinkTabs->goToTab($tabName);
        if ($this->adminLists[$tabName]->table->getItemCount() > 0) {
            throw new \Exception(sprintf('"%s" list is not empty.', $tabName));
        }
    }
365002
public function initializeObject()
    {
        parent::initializeObject();

        $this->setPathsFromOptions();
        $this->setFormat('html');

        // Doesn't work without setting rendering context.
        // Even if StandaloneView works and we just extend it.
        $renderingContent = new RenderingContext;
        $renderingContent->setControllerContext($this->controllerContext);
        $this->setRenderingContext($renderingContent);
    }
697844
public function initialize($instance, ServiceLocatorInterface $serviceLocator)
    {
        if ($instance instanceof ApplicationDbAware) {
            $instance->setApplicationDb($serviceLocator->get('prooph.link.app.db'));
        }
    }
893977
public function init(Criteria $criteria)
    {
        // init $this->db
        try {
            $db = Propel::getDB($criteria->getDbName());
            $this->setDB($db);
        } catch (Exception $e) {
            // we are only doing this to allow easier debugging, so
            // no need to throw up the exception, just make note of it.
            Propel::log("Could not get a DBAdapter, sql may be wrong", Propel::LOG_ERR);
        }

        // init $this->realtable
        $realtable = $criteria->getTableForAlias($this->table);
        $this->realtable = $realtable ? $realtable : $this->table;
    }
516384
public function addTableObject(TableMap $table)
    {
        $table->setDatabaseMap($this);
        $this->tables[$table->getName()] = $table;
        $phpName = $table->getClassName();
        if ('\\' !== $phpName[0]) {
            $phpName = '\\' . $phpName;
        }
        $this->tablesByPhpName[$phpName] = $table;
    }