BaseReport::getView PHP Method

getView() public method

public getView ( )
    public function getView()
    {
        if ($this->view) {
            return $this->view;
        }
        $model = CHtml::modelName($this);
        if (strstr($model, '_')) {
            $segments = explode('_', $model);
            $explode = explode('_', $model);
            $model = array_pop($explode);
        }
        return '_' . strtolower(preg_replace('/^Report/', '', $model));
    }