當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。