services/Scanner.php
public function run()
    {
        $scanTimeLimit = Yii::$app->getModule('translatemanager')->scanTimeLimit;

        if (!is_null($scanTimeLimit)) {
            set_time_limit($scanTimeLimit);
        }

        $scanners = Yii::$app->getModule('translatemanager')->scanners;
        if (!empty($scanners)) {
            $this->scanners = $scanners; // override scanners from module configuration (custom scanners)
        }

        $this->_initLanguageArrays();

        $languageSource = new LanguageSource();

        return $languageSource->insertLanguageItems($this->_languageElements);
    }
public function run()
    {
        $scanTimeLimit = Yii::$app->getModule('translatemanager')->scanTimeLimit;

        if (!is_null($scanTimeLimit)) {
            set_time_limit($scanTimeLimit);
        }

        $scanners = Yii::$app->getModule('translatemanager')->scanners;
        if (!empty($scanners)) {
            $this->scanners = $scanners; // override scanners from module configuration (custom scanners)
        }

        $this->_initLanguageArrays();

        $languageSource = new LanguageSource();

        return $languageSource->insertLanguageItems($this->_languageElements);
    }
public function run ( ) { $ scanTimeLimit = Yii :: $ app -> getModule ( 'translatemanager' ) -> scanTimeLimit ; if ( ! is_null ( $ scanTimeLimit ) ) { set_time_limit ( $ scanTimeLimit ) ; } $ scanners = Yii :: $ app -> getModule ( 'translatemanager' ) -> scanners ; if ( ! empty ( $ scanners ) ) { $ this -> scanners = $ scanners ; // override scanners from module configuration (custom scanners) } $ this -> _initLanguageArrays ( ) ; $ languageSource = new LanguageSource ( ) ; return $ languageSource -> insertLanguageItems ( $ this -> _languageElements ) ; }
Scanning project for text not stored in database.

@return int The number of new language elements.
Scanning project for text not stored in database .