• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP vtws_addActorTypeWebserviceEntityWithName函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中vtws_addActorTypeWebserviceEntityWithName函数的典型用法代码示例。如果您正苦于以下问题:PHP vtws_addActorTypeWebserviceEntityWithName函数的具体用法?PHP vtws_addActorTypeWebserviceEntityWithName怎么用?PHP vtws_addActorTypeWebserviceEntityWithName使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了vtws_addActorTypeWebserviceEntityWithName函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: vtws_addDefaultActorTypeEntity

function vtws_addDefaultActorTypeEntity($actorName, $actorNameDetails, $withName = true)
{
    $actorHandler = array('file' => 'include/Webservices/VtigerActorOperation.php', 'class' => 'VtigerActorOperation');
    if ($withName == true) {
        vtws_addActorTypeWebserviceEntityWithName($actorName, $actorHandler['file'], $actorHandler['class'], $actorNameDetails);
    } else {
        vtws_addActorTypeWebserviceEntityWithoutName($actorName, $actorHandler['file'], $actorHandler['class'], $actorNameDetails);
    }
}
开发者ID:kduqi,项目名称:corebos,代码行数:9,代码来源:Utils.php


示例2: ExecuteQuery

ExecuteQuery($sql);
$result = $adb->pquery('SELECT organizationname FROM vtiger_organizationdetails', array());
$noOfCompanies = $adb->num_rows($result);
if ($noOfCompanies > 0) {
    for ($i = 0; $i < $noOfCompanies; ++$i) {
        $id = $adb->getUniqueID('vtiger_organizationdetails');
        $organizationName = $adb->query_result($result, $i, 'organizationname');
        ExecuteQuery("UPDATE vtiger_organizationdetails SET organization_id={$id} WHERE organizationname='{$organizationName}'");
    }
} else {
    $id = $adb->getUniqueID('vtiger_organizationdetails');
}
$sql = 'UPDATE vtiger_organizationdetails_seq SET id = (SELECT max(organization_id) FROM vtiger_organizationdetails)';
ExecuteQuery($sql);
// Add Webservice support for Company Details type of entity.
vtws_addActorTypeWebserviceEntityWithName('CompanyDetails', 'include/Webservices/VtigerCompanyDetails.php', 'VtigerCompanyDetails', array('fieldNames' => 'organizationname', 'indexField' => 'groupid', 'tableName' => 'vtiger_organizationdetails'));
$sql = 'CREATE TABLE vtiger_ws_fieldinfo(id varchar(64) NOT NULL PRIMARY KEY,
										property_name VARCHAR(32),
										property_value VARCHAR(64)
										) ENGINE=Innodb DEFAULT CHARSET=utf8;';
ExecuteQuery($sql);
$id = $adb->getUniqueID('vtiger_ws_entity_fieldtype');
$sql = "INSERT INTO vtiger_ws_entity_fieldtype(fieldtypeid,table_name,field_name,fieldtype) VALUES ({$id},'vtiger_organizationdetails','logoname','file')";
ExecuteQuery($sql);
$id = $adb->getUniqueID('vtiger_ws_entity_fieldtype');
$sql = "INSERT INTO vtiger_ws_entity_fieldtype(fieldtypeid,table_name,field_name,fieldtype) VALUES ({$id},'vtiger_organizationdetails','phone','phone')";
ExecuteQuery($sql);
$id = $adb->getUniqueID('vtiger_ws_entity_fieldtype');
$sql = "INSERT INTO vtiger_ws_entity_fieldtype(fieldtypeid,table_name,field_name,fieldtype) VALUES ({$id},'vtiger_organizationdetails','fax','phone')";
ExecuteQuery($sql);
$id = $adb->getUniqueID('vtiger_ws_entity_fieldtype');
开发者ID:hbsman,项目名称:vtigercrm-5.3.0-ja,代码行数:31,代码来源:521_to_530rc.php


示例3: vtws_addEntityInfo

 function vtws_addEntityInfo()
 {
     require_once 'include/Webservices/Utils.php';
     $names = vtws_getModuleNameList();
     $moduleHandler = array('file' => 'include/Webservices/VtigerModuleOperation.php', 'class' => 'VtigerModuleOperation');
     foreach ($names as $tab) {
         if (in_array($tab, array('Rss', 'Webmails', 'Recyclebin'))) {
             continue;
         }
         $entityId = $this->db->getUniqueID("vtiger_ws_entity");
         $this->db->pquery('insert into vtiger_ws_entity(id,name,handler_path,handler_class,ismodule) values (?,?,?,?,?)', array($entityId, $tab, $moduleHandler['file'], $moduleHandler['class'], 1));
     }
     $entityId = $this->db->getUniqueID("vtiger_ws_entity");
     $this->db->pquery('insert into vtiger_ws_entity(id,name,handler_path,handler_class,ismodule) values (?,?,?,?,?)', array($entityId, 'Events', $moduleHandler['file'], $moduleHandler['class'], 1));
     $entityId = $this->db->getUniqueID("vtiger_ws_entity");
     $this->db->pquery('insert into vtiger_ws_entity(id,name,handler_path,handler_class,ismodule) values (?,?,?,?,?)', array($entityId, 'Users', $moduleHandler['file'], $moduleHandler['class'], 1));
     vtws_addDefaultActorTypeEntity('Groups', array('fieldNames' => 'groupname', 'indexField' => 'groupid', 'tableName' => 'vtiger_groups'));
     require_once "include/Webservices/WebServiceError.php";
     require_once 'include/Webservices/VtigerWebserviceObject.php';
     $webserviceObject = VtigerWebserviceObject::fromName($this->db, 'Groups');
     $this->db->pquery("insert into vtiger_ws_entity_tables(webservice_entity_id,table_name) values\n\t\t\t(?,?)", array($webserviceObject->getEntityId(), 'vtiger_groups'));
     vtws_addDefaultActorTypeEntity('Currency', array('fieldNames' => 'currency_name', 'indexField' => 'id', 'tableName' => 'vtiger_currency_info'));
     $webserviceObject = VtigerWebserviceObject::fromName($this->db, 'Currency');
     $this->db->pquery("insert into vtiger_ws_entity_tables(webservice_entity_id,table_name) values (?,?)", array($webserviceObject->getEntityId(), 'vtiger_currency_info'));
     vtws_addDefaultActorTypeEntity('DocumentFolders', array('fieldNames' => 'foldername', 'indexField' => 'folderid', 'tableName' => 'vtiger_attachmentsfolder'));
     $webserviceObject = VtigerWebserviceObject::fromName($this->db, 'DocumentFolders');
     $this->db->pquery("insert into vtiger_ws_entity_tables(webservice_entity_id,table_name) values (?,?)", array($webserviceObject->getEntityId(), 'vtiger_attachmentsfolder'));
     vtws_addActorTypeWebserviceEntityWithName('CompanyDetails', 'include/Webservices/VtigerCompanyDetails.php', 'VtigerCompanyDetails', array('fieldNames' => 'organizationname', 'indexField' => 'groupid', 'tableName' => 'vtiger_organizationdetails'));
     $webserviceObject = VtigerWebserviceObject::fromName($this->db, 'CompanyDetails');
     $this->db->pquery('INSERT INTO vtiger_ws_entity_tables(webservice_entity_id,table_name) VALUES (?,?)', array($webserviceObject->getEntityId(), 'vtiger_organizationdetails'));
 }
开发者ID:nouphet,项目名称:vtigercrm-6.0.0-ja,代码行数:31,代码来源:DefaultDataPopulator.php


示例4: vtiger_ws_entity_fieldtype

Migration_Index_View::ExecuteQuery("INSERT INTO vtiger_ws_entity_fieldtype(fieldtypeid,table_name, field_name,fieldtype) VALUES (?,?,?,?);", array($fieldTypeId, 'vtiger_inventoryproductrel', 'id', "reference"));
Migration_Index_View::ExecuteQuery("INSERT INTO vtiger_ws_entity_referencetype(fieldtypeid,type) VALUES (?,?)", array($fieldTypeId, 'Invoice'));
Migration_Index_View::ExecuteQuery("INSERT INTO vtiger_ws_entity_referencetype(fieldtypeid,type) VALUES (?,?)", array($fieldTypeId, 'SalesOrder'));
Migration_Index_View::ExecuteQuery("INSERT INTO vtiger_ws_entity_referencetype(fieldtypeid,type) VALUES (?,?)", array($fieldTypeId, 'PurchaseOrder'));
Migration_Index_View::ExecuteQuery("INSERT INTO vtiger_ws_entity_referencetype(fieldtypeid,type) VALUES (?,?)", array($fieldTypeId, 'Quotes'));
$fieldTypeId = $adb->getUniqueID("vtiger_ws_entity_fieldtype");
Migration_Index_View::ExecuteQuery("INSERT INTO vtiger_ws_entity_fieldtype(fieldtypeid,table_name,field_name,fieldtype) VALUES (?,?,?,?);", array($fieldTypeId, 'vtiger_inventoryproductrel', 'incrementondel', "autogenerated"));
$adb->getUniqueID("vtiger_inventoryproductrel");
Migration_Index_View::ExecuteQuery("UPDATE vtiger_inventoryproductrel_seq SET id=(select max(lineitem_id) from vtiger_inventoryproductrel);", array());
Migration_Index_View::ExecuteQuery("UPDATE vtiger_ws_entity SET handler_path='include/Webservices/LineItem/VtigerInventoryOperation.php',handler_class='VtigerInventoryOperation' where name in ('Invoice','Quotes','PurchaseOrder','SalesOrder');", array());
$purchaseOrderTabId = getTabid("PurchaseOrder");
$purchaseOrderAddressInformationBlockId = getBlockId($purchaseOrderTabId, "LBL_ADDRESS_INFORMATION");
$invoiceTabId = getTabid("Invoice");
$invoiceTabIdAddressInformationBlockId = getBlockId($invoiceTabId, "LBL_ADDRESS_INFORMATION");
Migration_Index_View::ExecuteQuery('UPDATE vtiger_field SET block=? where tabid=? and block=?;', array($invoiceTabIdAddressInformationBlockId, $invoiceTabId, $purchaseOrderAddressInformationBlockId));
vtws_addActorTypeWebserviceEntityWithName('Tax', 'include/Webservices/LineItem/VtigerTaxOperation.php', 'VtigerTaxOperation', array('fieldNames' => 'taxlabel', 'indexField' => 'taxid', 'tableName' => 'vtiger_inventorytaxinfo'), true);
$webserviceObject = VtigerWebserviceObject::fromName($adb, 'Tax');
Migration_Index_View::ExecuteQuery("INSERT INTO vtiger_ws_entity_tables(webservice_entity_id,table_name) VALUES (?,?)", array($webserviceObject->getEntityId(), 'vtiger_inventorytaxinfo'));
vtws_addActorTypeWebserviceEntityWithoutName('ProductTaxes', 'include/Webservices/LineItem/VtigerProductTaxesOperation.php', 'VtigerProductTaxesOperation', array());
$webserviceObject = VtigerWebserviceObject::fromName($adb, 'ProductTaxes');
Migration_Index_View::ExecuteQuery("INSERT INTO vtiger_ws_entity_tables(webservice_entity_id,table_name) VALUES (?,?)", array($webserviceObject->getEntityId(), 'vtiger_producttaxrel'));
$fieldTypeId = $adb->getUniqueID("vtiger_ws_entity_fieldtype");
Migration_Index_View::ExecuteQuery("INSERT INTO vtiger_ws_entity_fieldtype(fieldtypeid,table_name,field_name,fieldtype) VALUES (?,?,?,?);", array($fieldTypeId, 'vtiger_producttaxrel', 'productid', "reference"));
Migration_Index_View::ExecuteQuery("INSERT INTO vtiger_ws_entity_referencetype(fieldtypeid,type) VALUES (?,?)", array($fieldTypeId, 'Products'));
$fieldTypeId = $adb->getUniqueID("vtiger_ws_entity_fieldtype");
Migration_Index_View::ExecuteQuery("INSERT INTO vtiger_ws_entity_fieldtype(fieldtypeid,table_name,field_name,fieldtype) VALUES (?,?,?,?);", array($fieldTypeId, 'vtiger_producttaxrel', 'taxid', "reference"));
Migration_Index_View::ExecuteQuery("INSERT INTO vtiger_ws_entity_referencetype(fieldtypeid,type) VALUES (?,?)", array($fieldTypeId, 'Tax'));
//--
//Changed Columns Display in List view of Leads
$leadsFirstName = 'vtiger_leaddetails:firstname:firstname:Leads_First_Name:V';
$leadsLastName = 'vtiger_leaddetails:lastname:lastname:Leads_Last_Name:V';
开发者ID:gitter-badger,项目名称:openshift-salesplatform,代码行数:31,代码来源:540_to_600RC.php



注:本文中的vtws_addActorTypeWebserviceEntityWithName函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP vtws_addWebserviceOperation函数代码示例发布时间:2022-05-23
下一篇:
PHP vtranslate函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap