    public static function parseModelName($model) {
         


        $customModule = Modules::model()->findByAttributes(array(
            'custom' => 1,
            'name' => $model,
        ));
        if ($customModule) {
            //$model = $customModule->title;
            $model = Modules::itemDisplayName($customModule->name);
            $model = strtolower($model);
        } else {
            switch ($model) {
                case 'Product':
                    $model .= 's'; break;
                case 'Quote':
                    $model .= 's'; break;
                case 'Opportunity':
                    $model = str_replace('y', 'ies', $model); break;
            }
            $requestedModel = $model;
            $model = Modules::displayName(false, ucfirst($model));
            $model = strtolower($model);
            if (empty($model)) {
                // If the model type couldn't be resolved, check for special cases
                // of models without a dedicated module
                if ($requestedModel === 'AnonContact')
                    $model = 'anonymous contact';
                else if ($requestedModel === 'Campaign')
                    $model = 'campaign';
            }
        }
        return Yii::t('app', $model);
    }
The product receives input or data, but it does
        not validate or incorrectly validates that the input has the
        properties that are required to process the data safely and
        correctly.