OData SDK for PHP

授权协议 Apache
开发语言 PHP
所属分类 Web应用开发、 OData开发包
软件类型 开源软件
地区 不详
投 递 者 慕学海
操作系统 跨平台
开源组织
适用人群 未知
 软件概览

OData 的 PHP 开发包,示例代码:

/* connect to the OData service  */
   $svc = new NorthwindEntities(NORTHWIND_SERVICE_URL);
     
/* get the list of Customers in the USA, for each customer get the list of Orders */
    $query = $svc->Customers()
                 ->filter("Country eq 'USA'")
                 ->Expand('Orders');
    $customerResponse = $query->Execute();

/* get only CustomerID and CustomerName */
    $query = $svc->Customers()
                 ->filter("Country eq 'USA'")
                 ->Select('CustomerID, CustomerName');
    $customerResponse = $query->Execute();

/* create a new customer */
    $customer = Customers::CreateCustomers('channel9', 'CHAN9');
    $proxy->AddToCustomers($customer); 

/* commit the change on the server */        
    $proxy->SaveChanges();
  • 授权协议: Apache 开发语言: PHP 操作系统: 跨平台 软件介绍 OData 的 PHP 开发包,示例代码: /* connect to the OData service */ $svc = new NorthwindEntities(NORTHWIND_SERVICE_URL); /* get the list of Customers in the USA, for each cu

  • 请自行到百度地图官网申请您的ak <!--前端获取手机经纬度的代码--> <!--<!DOCTYPE html>--> <!--<html lang="en">--> <!----> <!--<head>--> <!-- <meta charset="UTF-8">--> <!-- <title>text</title>--> <!-- <script>--> <!-- function getL