Page MenuHomePhorge

AphrontBoolHTTPParameterType.php
No OneTemporary

AphrontBoolHTTPParameterType.php

<?php
final class AphrontBoolHTTPParameterType
extends AphrontHTTPParameterType {
protected function getParameterValue(AphrontRequest $request, $key) {
return $request->getBool($key);
}
protected function getParameterTypeName() {
return 'bool';
}
protected function getParameterFormatDescriptions() {
return array(
pht('A boolean value (true or false).'),
);
}
protected function getParameterExamples() {
return array(
'v=true',
'v=false',
'v=1',
'v=0',
);
}
}

File Metadata

Mime Type
text/x-php
Expires
Jan 19 2025, 20:58 (6 w, 1 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1128697
Default Alt Text
AphrontBoolHTTPParameterType.php (539 B)

Event Timeline