classes/phing/filters/TranslateGettext.php
private function _initialize()
    {
        $params = $this->getParameters();
        if ($params !== null) {
            foreach ($params as $param) {
                switch ($param->getType()) {
                    case self::DOMAIN_KEY:
                        $this->setDomain($param->getValue());
                        break;
                    case self::DIR_KEY:
                        $this->setDir($this->project->resolveFile($param->getValue()));
                        break;

                    case self::LOCALE_KEY:
                        $this->setLocale($param->getValue());
                        break;
                } // switch
            }
        } // if params !== null
    }
private function _initialize()
    {
        $params = $this->getParameters();
        if ($params !== null) {
            foreach ($params as $param) {
                switch ($param->getType()) {
                    case self::DOMAIN_KEY:
                        $this->setDomain($param->getValue());
                        break;
                    case self::DIR_KEY:
                        $this->setDir($this->project->resolveFile($param->getValue()));
                        break;

                    case self::LOCALE_KEY:
                        $this->setLocale($param->getValue());
                        break;
                } // switch
            }
        } // if params !== null
    }
private function _initialize ( ) { $ params = $ this -> getParameters ( ) ; if ( $ params !== null ) { foreach ( $ params as $ param ) { switch ( $ param -> getType ( ) ) { case self :: DOMAIN_KEY : $ this -> setDomain ( $ param -> getValue ( ) ) ; break ; case self :: DIR_KEY : $ this -> setDir ( $ this -> project -> resolveFile ( $ param -> getValue ( ) ) ) ; break ; case self :: LOCALE_KEY : $ this -> setLocale ( $ param -> getValue ( ) ) ; break ; } // switch } } // if params !== null }
Parses the parameters if this filter is being used in "generic" mode.
Parses the parameters if this filter is being used in generic mode .