EventTypeModuleCode::handleViewChanges PHP Method

handleViewChanges() public method

public handleViewChanges ( )
    public function handleViewChanges()
    {
        foreach ($this->getElementsFromPost() as $num => $element) {
            $model = "modules/{$this->moduleID}/models/{$element['class_name']}.php";
            if ($this->shouldUpdateFile($model)) {
                $this->updateModel(Yii::app()->basePath . '/' . $model, $element);
            }
            $form = "modules/{$this->moduleID}/views/default/form_{$element['class_name']}.php";
            if ($this->shouldUpdateFile($form)) {
                $this->updateFormView(Yii::app()->basePath . '/' . $form, $element, 'form');
            }
            $view = "modules/{$this->moduleID}/views/default/view_{$element['class_name']}.php";
            if ($this->shouldUpdateFile($update)) {
                $this->updateViewView(Yii::app()->basePath . '/' . $view, $element, 'view');
            }
        }
    }