code: 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;
      }
docs: Retrieve the settings from view
  
  @return \Nkey\Caribu\Mvc\View\View