src/Mvc/View/AbstractView.php
final public function getViewSettings()
    {
        $rf = new \ReflectionClass($this);
        
        $this->viewName = str_replace('View', '', $rf->getShortName());
        
        $matches = array();
        if (preg_match("#@applyTo\((.*)\)#", $rf->getDocComment(), $matches)) {
            $params = array();
            parse_str(str_replace(',', '&', $matches[1]), $params);
            
            if (is_array($params)) {
                foreach ($params as $param => $value) {
                    if ($param == 'controller') {
                        $this->controllers = explode('|', $value);
                    }
                    
                    if ($param == 'action') {
                        $this->actions = explode('|', $value);
                    }
                }
            }
        }
        
        return $this;
    }
final public function getViewSettings()
    {
        $rf = new \ReflectionClass($this);
        
        $this->viewName = str_replace('View', '', $rf->getShortName());
        
        $matches = array();
        if (preg_match("#@applyTo\((.*)\)#", $rf->getDocComment(), $matches)) {
            $params = array();
            parse_str(str_replace(',', '&', $matches[1]), $params);
            
            if (is_array($params)) {
                foreach ($params as $param => $value) {
                    if ($param == 'controller') {
                        $this->controllers = explode('|', $value);
                    }
                    
                    if ($param == 'action') {
                        $this->actions = explode('|', $value);
                    }
                }
            }
        }
        
        return $this;
    }
Retrieve the settings from view

@return \Nkey\Caribu\Mvc\View\View