예제 #1
0
 /**
  * Retrieve flag value
  *
  * @param   string $action
  * @param   string $flag
  * @return  bool
  *
  * @SuppressWarnings(PHPMD.BooleanGetMethodName)
  */
 public function get($action, $flag = '')
 {
     if ('' === $action) {
         $action = $this->_request->getActionName();
     }
     if ('' === $flag) {
         return isset($this->_flags[$this->_getControllerKey()]) ? $this->_flags[$this->_getControllerKey()] : [];
     } elseif (isset($this->_flags[$this->_getControllerKey()][$action][$flag])) {
         return $this->_flags[$this->_getControllerKey()][$action][$flag];
     } else {
         return false;
     }
 }