Chuyển đến nội dung
Tài liệu

Tra cứu lớp và hàm

Request

Danh sách các phương thức công khai của lớp Zittme\Framework\Request. Tài liệu này được tạo tự động từ mã nguồn lõi Zittme.

Nguồn: common/framework/Request.php

Phương thức công khai

  • function __construct(string $method = '', string $url = '', string $hostname = '', string $protocol = '')
  • Constructor.
  • function get(string $name, string $type = '')
  • Get a request argument, optionally coerced into a type.
  • function getAll()
  • Get all request arguments.
  • function getFullUrl()
  • Get the complete URL of this request.
  • function getMethod()
  • Get the HTTP method of this request.
  • function getCallbackFunction()
  • Get the JS callback function.
  • function getRouteStatus()
  • Get route status.
  • function set(string $name, $value)
  • Set a request argument.
  • function setAll(array $args)
  • Set all request arguments.
  • function setRouteStatus(int $status)
  • Set route status.
  • function getRouteOption(string $name)
  • Get route options.
  • function getRouteOptions()
  • Get all route options.
  • function setRouteOption(string $name, $value)
  • Set route option.