本文整理汇总了PHP中request::initRequest方法的典型用法代码示例。如果您正苦于以下问题:PHP request::initRequest方法的具体用法?PHP request::initRequest怎么用?PHP request::initRequest使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类request
的用法示例。
在下文中一共展示了request::initRequest方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: get
public static function get()
{
$services = request::initRequest('services.get');
return $services['services'];
}
示例2: login
public static function login($email, $password)
{
return request::initRequest('auth', array('email' => $email, 'password' => $password));
}
示例3: estimate
public function estimate()
{
$data = utils::prepareBookingData('estimate', $this->data);
if (isset($this->data['login'])) {
$user = $this->data['login'];
} else {
$user = null;
$data['user'] = $this->data['user'];
}
$response = request::initRequest('booking.estimate', $data, $user);
return $response['estimate'];
}
示例4: get
public static function get()
{
$cf = request::initRequest('custom_fields.get');
return $cf['custom_fields'];
}
示例5: get
public static function get()
{
$frequencies = request::initRequest('frequencies.get');
return $frequencies['frequencies'];
}
示例6: get
public static function get($date)
{
$spots = request::initRequest('spots.get', $date);
return $spots['spots'];
}