Lines Matching refs:request
67 * @param FacebookRequest|array $request
75 public function add($request, $options = null) argument
77 if (is_array($request)) {
78 foreach ($request as $key => $req) {
85 if (!$request instanceof FacebookRequest) {
95 $this->addFallbackDefaults($request);
98 $attachedFiles = $this->extractFileAttachments($request);
106 'request' => $request,
119 * @param FacebookRequest $request
123 public function addFallbackDefaults(FacebookRequest $request) argument
125 if (!$request->getApp()) {
130 $request->setApp($app);
133 if (!$request->getAccessToken()) {
138 $request->setAccessToken($accessToken);
145 * @param FacebookRequest $request
151 public function extractFileAttachments(FacebookRequest $request) argument
153 if (!$request->containsFileUploads()) {
157 $files = $request->getFiles();
165 $request->resetFiles();
203 foreach ($this->requests as $request) {
206 if (null !== $request['name']) {
207 $options['name'] = $request['name'];
210 $options += $request['options'];
212 …$requests[] = $this->requestEntityToBatchArray($request['request'], $options, $request['attached_f…
237 * @param FacebookRequest $request The request entity to convert.
244 …public function requestEntityToBatchArray(FacebookRequest $request, $options = null, $attachedFile… argument
254 $headers = $request->getHeaders();
261 'method' => $request->getMethod(),
262 'relative_url' => $request->getUrl(),
267 $body = $request->getUrlEncodedBody()->getBody();