protected function insertTypeNameData($typeId, $typeStatus, array $languages)
    {
        $tmpLanguages = $languages;
        if (isset($tmpLanguages['always-available'])) {
            unset($tmpLanguages['always-available']);
        }

        foreach ($tmpLanguages as $language => $name) {
            $query = $this->dbHandler->createInsertQuery();
            $query
                ->insertInto($this->dbHandler->quoteTable('ezcontentclass_name'))
                ->set('contentclass_id', $query->bindValue($typeId, null, \PDO::PARAM_INT))
                ->set('contentclass_version', $query->bindValue($typeStatus, null, \PDO::PARAM_INT))
                ->set(
                    'language_id',
                    $query->bindValue(
                        $this->languageMaskGenerator->generateLanguageIndicator(
                            $language,
                            $this->languageMaskGenerator->isLanguageAlwaysAvailable(
                                $language,
                                $languages
                            )
                        ),
                        null,
                        \PDO::PARAM_INT
                    )
                )
                ->set('language_locale', $query->bindValue($language))
                ->set('name', $query->bindValue($name));
            $query->prepare()->execute();
        }
    }
protected function insertTypeNameData($typeId, $typeStatus, array $languages)
    {
        $tmpLanguages = $languages;
        if (isset($tmpLanguages['always-available'])) {
            unset($tmpLanguages['always-available']);
        }

        foreach ($tmpLanguages as $language => $name) {
            $query = $this->dbHandler->createInsertQuery();
            $query
                ->insertInto($this->dbHandler->quoteTable('ezcontentclass_name'))
                ->set('contentclass_id', $query->bindValue($typeId, null, \PDO::PARAM_INT))
                ->set('contentclass_version', $query->bindValue($typeStatus, null, \PDO::PARAM_INT))
                ->set(
                    'language_id',
                    $query->bindValue(
                        $this->languageMaskGenerator->generateLanguageIndicator(
                            $language,
                            $this->languageMaskGenerator->isLanguageAlwaysAvailable(
                                $language,
                                $languages
                            )
                        ),
                        null,
                        \PDO::PARAM_INT
                    )
                )
                ->set('language_locale', $query->bindValue($language))
                ->set('name', $query->bindValue($name));
            $query->prepare()->execute();
        }
    }
protected function insertTypeNameData ( $ typeId , $ typeStatus , array $ languages ) { $ tmpLanguages = $ languages ; if ( isset ( $ tmpLanguages [ 'always-available' ] ) ) { unset ( $ tmpLanguages [ 'always-available' ] ) ; } foreach ( $ tmpLanguages as $ language => $ name ) { $ query = $ this -> dbHandler -> createInsertQuery ( ) ; $ query -> insertInto ( $ this -> dbHandler -> quoteTable ( 'ezcontentclass_name' ) ) -> set ( 'contentclass_id' , $ query -> bindValue ( $ typeId , null , \ PDO :: PARAM_INT ) ) -> set ( 'contentclass_version' , $ query -> bindValue ( $ typeStatus , null , \ PDO :: PARAM_INT ) ) -> set ( 'language_id' , $ query -> bindValue ( $ this -> languageMaskGenerator -> generateLanguageIndicator ( $ language , $ this -> languageMaskGenerator -> isLanguageAlwaysAvailable ( $ language , $ languages ) ) , null , \ PDO :: PARAM_INT ) ) -> set ( 'language_locale' , $ query -> bindValue ( $ language ) ) -> set ( 'name' , $ query -> bindValue ( $ name ) ) ; $ query -> prepare ( ) -> execute ( ) ; } }
Inserts data into contentclass_name.

@param int $typeId
@param int $typeStatus
@param string[] $languages
Inserts data into contentclass_name .