當前位置: 首頁>>代碼示例>>PHP>>正文


PHP SugarBean::createRelationshipMeta方法代碼示例

本文整理匯總了PHP中SugarBean::createRelationshipMeta方法的典型用法代碼示例。如果您正苦於以下問題:PHP SugarBean::createRelationshipMeta方法的具體用法?PHP SugarBean::createRelationshipMeta怎麽用?PHP SugarBean::createRelationshipMeta使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在SugarBean的用法示例。


在下文中一共展示了SugarBean::createRelationshipMeta方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: create_relationship_meta

 /**
  * This method has been deprecated.
  * @see createRelationshipMeta()
  * @deprecated 4.5.1 - Nov 14, 2006
  * @static
  */
 function create_relationship_meta($key, &$db, &$log, $tablename, $dictionary, $module_dir)
 {
     SugarBean::createRelationshipMeta($key, $db, $tablename, $dictionary, $module_dir);
 }
開發者ID:rgauss,項目名稱:sugarcrm_dev,代碼行數:10,代碼來源:SugarBean.php

示例2: ksort

echo "<br>";
////    END TABLE STUFF
///////////////////////////////////////////////////////////////////////////////
////    START RELATIONSHIP CREATION
ksort($rel_dictionary);
foreach ($rel_dictionary as $rel_name => $rel_data) {
    $table = $rel_data['table'];
    if ($setup_db_drop_tables) {
        if ($db->tableExists($table)) {
            $db->dropTableName($table);
        }
    }
    if (!$db->tableExists($table)) {
        $db->createTableParams($table, $rel_data['fields'], $rel_data['indices']);
    }
    SugarBean::createRelationshipMeta($rel_name, $db, $table, $rel_dictionary, '');
}
///////////////////////////////////////////////////////////////////////////////
////    START CREATE DEFAULTS
echo "<br>";
echo "<b>{$mod_strings['LBL_PERFORM_CREATE_DEFAULT']}</b><br>";
echo "<br>";
installLog("Begin creating Defaults");
installerHook('pre_createDefaultSettings');
if ($new_config) {
    installLog("insert defaults into config table");
    insert_default_settings();
}
installerHook('post_createDefaultSettings');
installerHook('pre_createUsers');
if ($new_tables) {
開發者ID:thsonvt,項目名稱:sugarcrm_dev,代碼行數:31,代碼來源:performSetup.php

示例3: install_beans

 function install_beans($beans)
 {
     foreach ($beans as $bean) {
         // This forces new beans to refresh their vardefs because at this
         // point the global dictionary for this object may be set with just
         // relationship fields.
         $rv = isset($GLOBALS['reload_vardefs']) ? $GLOBALS['reload_vardefs'] : null;
         $dm = isset($_SESSION['developerMode']) ? $_SESSION['developerMode'] : null;
         $GLOBALS['reload_vardefs'] = true;
         $_SESSION['developerMode'] = true;
         $this->log(translate('LBL_MI_IN_BEAN') . " {$bean}");
         $mod = BeanFactory::getBean($bean);
         if (!empty($mod) && $mod instanceof SugarBean && empty($mod->disable_vardefs)) {
             //#30273
             $GLOBALS['log']->debug("Creating Tables Bean : {$bean}");
             $mod->create_tables();
             SugarBean::createRelationshipMeta($mod->getObjectName(), $mod->db, $mod->table_name, '', $mod->module_dir);
         }
         // Return state. Null values essentially unset what wasn't set before
         $GLOBALS['reload_vardefs'] = $rv;
         $_SESSION['developerMode'] = $dm;
     }
 }
開發者ID:jglaine,項目名稱:sugar761-ent,代碼行數:23,代碼來源:ModuleInstaller.php

示例4: install_beans

 function install_beans($beans)
 {
     include 'include/modules.php';
     foreach ($beans as $bean) {
         $this->log(translate('LBL_MI_IN_BEAN') . " {$bean}");
         if (isset($beanList[$bean])) {
             $class = $beanList[$bean];
             if (file_exists($beanFiles[$class])) {
                 require_once $beanFiles[$class];
                 $mod = new $class();
                 //#30273
                 if (is_subclass_of($mod, 'SugarBean') && $mod->disable_vardefs == false) {
                     $GLOBALS['log']->debug("Creating Tables Bean : {$bean}");
                     $mod->create_tables();
                     SugarBean::createRelationshipMeta($mod->getObjectName(), $mod->db, $mod->table_name, '', $mod->module_dir);
                 }
             } else {
                 $GLOBALS['log']->debug("File Does Not Exist:" . $beanFiles[$class]);
             }
         }
     }
 }
開發者ID:delkyd,項目名稱:sugarcrm_dev,代碼行數:22,代碼來源:ModuleInstaller.php

示例5: install_beans

 function install_beans($beans)
 {
     include 'include/modules.php';
     foreach ($beans as $bean) {
         $GLOBALS['log']->debug("Installing Bean : {$bean}");
         if (isset($beanList[$bean])) {
             $class = $beanList[$bean];
             if (file_exists($beanFiles[$class])) {
                 require_once $beanFiles[$class];
                 $mod = new $class();
                 if (is_subclass_of($mod, 'SugarBean')) {
                     $GLOBALS['log']->debug("Creating Tables Bean : {$bean}");
                     $mod->create_tables();
                     SugarBean::createRelationshipMeta($mod->getObjectName(), $mod->db, $mod->table_name, '', $mod->module_dir);
                 }
             } else {
                 $GLOBALS['log']->debug("File Does Not Exist:" . $beanFiles[$class]);
             }
         }
     }
 }
開發者ID:BackupTheBerlios,項目名稱:livealphaprint,代碼行數:21,代碼來源:ModuleInstaller.php


注:本文中的SugarBean::createRelationshipMeta方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。