TranslateGettext::_initialize PHP Method

_initialize() private method

Parses the parameters if this filter is being used in "generic" mode.
private _initialize ( )
    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
    }