protected function getParameterValue(array $request, $key)
 {
     $value = parent::getParameterValue($request, $key);
     if (!is_string($value)) {
         $this->raiseValidationException($request, $key, pht('Expected PHID, got something else.'));
     }
     return $value;
 }
 protected function getParameterValue(array $request, $key, $strict)
 {
     $list = parent::getParameterValue($request, $key, $strict);
     foreach ($list as $idx => $item) {
         $list[$idx] = $this->parseIntValue($request, $key . '[' . $idx . ']', $item, $strict);
     }
     return $list;
 }
 protected function getParameterValue(array $request, $key)
 {
     $value = parent::getParameterValue($request, $key);
     if (!is_bool($value)) {
         $this->raiseValidationException($request, $key, pht('Expected boolean (true or false), got something else.'));
     }
     return $value;
 }
 protected function getParameterValue(array $request, $key)
 {
     $list = parent::getParameterValue($request, $key);
     foreach ($list as $idx => $item) {
         if (!is_int($item)) {
             $this->raiseValidationException($request, $key, pht('Expected a list of integers, but item with index "%s" is ' . 'not an integer.', $idx));
         }
     }
     return $list;
 }
 protected function getParameterValue(array $request, $key)
 {
     $value = parent::getParameterValue($request, $key);
     if (!is_int($value)) {
         $this->raiseValidationException($request, $key, pht('Expected epoch timestamp as integer, got something else.'));
     }
     if ($value <= 0) {
         $this->raiseValidationException($request, $key, pht('Epoch timestamp must be larger than 0, got %d.', $value));
     }
     return $value;
 }
 protected function getParameterValue(array $request, $key, $strict)
 {
     $list = parent::getParameterValue($request, $key, $strict);
     return $this->parseStringList($request, $key, $list, $strict);
 }
 protected function getParameterValue(array $request, $key)
 {
     $list = parent::getParameterValue($request, $key);
     return $this->validateStringList($request, $key, $list);
 }
 protected function getParameterValue(array $request, $key, $strict)
 {
     $list = parent::getParameterValue($request, $key, $strict);
     $list = $this->parseStringList($request, $key, $list, $strict);
     return id(new PhabricatorProjectPHIDResolver())->setViewer($this->getViewer())->resolvePHIDs($list);
 }