当前位置: 首页>>代码示例>>PHP>>正文


PHP Vtiger_Field::getAllForBlock方法代码示例

本文整理汇总了PHP中Vtiger_Field::getAllForBlock方法的典型用法代码示例。如果您正苦于以下问题:PHP Vtiger_Field::getAllForBlock方法的具体用法?PHP Vtiger_Field::getAllForBlock怎么用?PHP Vtiger_Field::getAllForBlock使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Vtiger_Field的用法示例。


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

示例1: getFields

 /**
  * Get all the fields of the module or block
  * @param Vtiger_Block Instance of block to use to get fields, false to get all the block fields
  */
 function getFields($blockInstance = false)
 {
     $fields = false;
     if ($blockInstance) {
         $fields = Vtiger_Field::getAllForBlock($blockInstance, $this);
     } else {
         $fields = Vtiger_Field::getAllForModule($this);
     }
     return $fields;
 }
开发者ID:cin-system,项目名称:cinrepo,代码行数:14,代码来源:ModuleBasic.php

示例2: delete

 /**
  * Delete block instance
  * @param Boolean True to delete associated fields, False to avoid it
  */
 function delete($recursive = true)
 {
     if ($recursive) {
         $fields = Vtiger_Field::getAllForBlock($this);
         foreach ($fields as $fieldInstance) {
             $fieldInstance->delete($recursive);
         }
     }
     $this->__delete();
 }
开发者ID:gitter-badger,项目名称:openshift-salesplatform,代码行数:14,代码来源:Block.php

示例3: getFieldsWithBlocksForModule

 public static function getFieldsWithBlocksForModule($module_name, $references = false, $refTemplate = "([source]: ([module]) [destination])")
 {
     $wmdpupqmkw = "modLang";
     global $current_language, $adb, $app_strings;
     $jyoclduhijw = "instance";
     if (empty(${${"GLOBALS"}["dtigqiycyl"]}) && ${${"GLOBALS"}["uoikifoisc"]} == true) {
         $hepidzbf = "refTemplate";
         ${$hepidzbf} = "([source]: ([module]) [destination])";
     }
     ${"GLOBALS"}["qdchdj"] = "module";
     ${"GLOBALS"}["dlxjxqbp"] = "current_language";
     $kquvbsysfcu = "moduleFields";
     include_once "vtlib/Vtiger/Module.php";
     ${${"GLOBALS"}["qdchdj"]} = ${${"GLOBALS"}["kgrlqorxi"]};
     ${${"GLOBALS"}["visvlqiwmar"]} = Vtiger_Module::getInstance(${${"GLOBALS"}["fmewvndt"]});
     ${"GLOBALS"}["gkjcbzii"] = "blocks";
     ${${"GLOBALS"}["tuyqii"]} = Vtiger_Block::getAllForModule(${$jyoclduhijw});
     ${"GLOBALS"}["otfgztbcykam"] = "module";
     ${"GLOBALS"}["dwkjhu"] = "addReferences";
     if (${${"GLOBALS"}["otfgztbcykam"]} != "Events") {
         ${"GLOBALS"}["isokwmqve"] = "langModule";
         ${${"GLOBALS"}["isokwmqve"]} = ${${"GLOBALS"}["fmewvndt"]};
     } else {
         $oivtxenk = "langModule";
         ${$oivtxenk} = "Calendar";
     }
     ${$wmdpupqmkw} = return_module_language(${${"GLOBALS"}["dlxjxqbp"]}, ${${"GLOBALS"}["pdnqbcq"]});
     ${$kquvbsysfcu} = array();
     ${${"GLOBALS"}["sereklx"]} = array();
     ${"GLOBALS"}["qpvmpezinov"] = "moduleFields";
     if (is_array(${${"GLOBALS"}["gkjcbzii"]})) {
         ${"GLOBALS"}["twqgybnkx"] = "block";
         $wmhyxeckigh = "blocks";
         foreach (${$wmhyxeckigh} as ${${"GLOBALS"}["twqgybnkx"]}) {
             $vsrjrtsyjwuy = "block";
             $jtvjnrg = "fields";
             ${"GLOBALS"}["fybcdi"] = "fields";
             $jiroosdtbga = "instance";
             ${"GLOBALS"}["wzbaaqfp"] = "fields";
             ${${"GLOBALS"}["wzbaaqfp"]} = Vtiger_Field::getAllForBlock(${$vsrjrtsyjwuy}, ${$jiroosdtbga});
             ${"GLOBALS"}["qindbfrv"] = "fields";
             if (empty(${${"GLOBALS"}["fybcdi"]}) || !is_array(${${"GLOBALS"}["qindbfrv"]})) {
                 continue;
             }
             foreach (${$jtvjnrg} as ${${"GLOBALS"}["iswxctbj"]}) {
                 ${"GLOBALS"}["gpvotsermfo"] = "module";
                 ${"GLOBALS"}["ltyuthgs"] = "references";
                 $field->label = getTranslatedString($field->label, ${${"GLOBALS"}["gpvotsermfo"]});
                 if (${${"GLOBALS"}["ltyuthgs"]} !== false) {
                     ${"GLOBALS"}["txxkntyfk"] = "addReferences";
                     $dcbsrjwyigh = "addReferences";
                     $qqmucyy = "field";
                     $svmyfptxpk = "field";
                     $msdeydhan = "addReferences";
                     ${"GLOBALS"}["kwkccfh"] = "field";
                     $amiqkcrlotrq = "result";
                     ${"GLOBALS"}["duvygkbpexkh"] = "addReferences";
                     $kxrugplfiqo = "result";
                     $bjhinyeqy = "addReferences";
                     $yiujkrbxum = "field";
                     ${"GLOBALS"}["ltyirzpnpba"] = "field";
                     $qynnew = "field";
                     $jrfetwc = "field";
                     ${"GLOBALS"}["roilmn"] = "addReferences";
                     switch ($field->uitype) {
                         case "51":
                             ${${"GLOBALS"}["sereklx"]}[] = array(${${"GLOBALS"}["iswxctbj"]}, "Accounts");
                             break;
                         case "52":
                             ${${"GLOBALS"}["txxkntyfk"]}[] = array(${${"GLOBALS"}["iswxctbj"]}, "Users");
                             break;
                         case "53":
                             ${${"GLOBALS"}["roilmn"]}[] = array(${${"GLOBALS"}["iswxctbj"]}, "Users");
                             break;
                         case "57":
                             ${${"GLOBALS"}["duvygkbpexkh"]}[] = array(${${"GLOBALS"}["iswxctbj"]}, "Contacts");
                             break;
                         case "58":
                             ${${"GLOBALS"}["sereklx"]}[] = array(${${"GLOBALS"}["kwkccfh"]}, "Campaigns");
                             break;
                         case "59":
                             ${${"GLOBALS"}["sereklx"]}[] = array(${${"GLOBALS"}["ltyirzpnpba"]}, "Products");
                             break;
                         case "73":
                             ${$bjhinyeqy}[] = array(${${"GLOBALS"}["iswxctbj"]}, "Accounts");
                             break;
                         case "75":
                             ${${"GLOBALS"}["sereklx"]}[] = array(${$svmyfptxpk}, "Vendors");
                             break;
                         case "81":
                             ${$dcbsrjwyigh}[] = array(${$qynnew}, "Vendors");
                             break;
                         case "76":
                             ${${"GLOBALS"}["sereklx"]}[] = array(${${"GLOBALS"}["iswxctbj"]}, "Potentials");
                             break;
                         case "78":
                             ${${"GLOBALS"}["sereklx"]}[] = array(${$qqmucyy}, "Quotes");
                             break;
                         case "80":
                             ${${"GLOBALS"}["sereklx"]}[] = array(${$yiujkrbxum}, "SalesOrder");
//.........这里部分代码省略.........
开发者ID:Wasage,项目名称:werpa,代码行数:101,代码来源:VtUtils.php


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