Importer/PKP/JournalImporter.php
private function createPublisher($name, $url, $locale)
    {
        $publisher = new Publisher();
        $publisher
            ->setCurrentLocale(mb_substr($locale, 0, 2, 'UTF-8'))
            ->setName($name)
            ->setEmail('publisher@example.com')
            ->setAddress('-')
            ->setPhone('-')
            ->setUrl($url);
        $this->em->persist($publisher);
        return $publisher;
    }
private function createPublisher($name, $url, $locale)
    {
        $publisher = new Publisher();
        $publisher
            ->setCurrentLocale(mb_substr($locale, 0, 2, 'UTF-8'))
            ->setName($name)
            ->setEmail('publisher@example.com')
            ->setAddress('-')
            ->setPhone('-')
            ->setUrl($url);
        $this->em->persist($publisher);
        return $publisher;
    }
private function createPublisher ( $ name , $ url , $ locale ) { $ publisher = new Publisher ( ) ; $ publisher -> setCurrentLocale ( mb_substr ( $ locale , 0 , 2 , 'UTF-8' ) ) -> setName ( $ name ) -> setEmail ( 'publisher@example.com' ) -> setAddress ( '-' ) -> setPhone ( '-' ) -> setUrl ( $ url ) ; $ this -> em -> persist ( $ publisher ) ; return $ publisher ; }
Creates a publisher with given properties.
@param  string $name
@param  string $url
@param  string $locale
@return Publisher Created publisher
Creates a publisher with given properties .