Пример #1
0
 /**
  * Return the name of the requested page
  *
  * @param   array   $requestData    The request's data
  *
  * @return  null|string             The name of the requested page or null in case no page has been requested
  */
 protected function getRequestedPage(array $requestData)
 {
     if ($this->parent) {
         return $this->parent->getRequestedPage($requestData);
     }
     if (isset($requestData[static::BTN_NEXT])) {
         return $requestData[static::BTN_NEXT];
     } elseif (isset($requestData[static::BTN_PREV])) {
         return $requestData[static::BTN_PREV];
     }
 }