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


PHP Propel::configuration方法代碼示例

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


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

示例1: setConfiguration

 /**
  * Sets the configuration for Propel and all dependencies.
  *
  * @param      mixed The Configuration (array or PropelConfiguration)
  */
 public static function setConfiguration($c)
 {
     if (is_array($c)) {
         if (isset($c['propel']) && is_array($c['propel'])) {
             $c = $c['propel'];
         }
         $c = new PropelConfiguration($c);
     }
     self::$configuration = $c;
 }
開發者ID:pgodel,項目名稱:PageRoller,代碼行數:15,代碼來源:Propel.php

示例2: setConfiguration

 /**
  * Sets the configuration for Propel and all dependencies.
  *
  * @param      array $c the Configuration
  * @return     void
  */
 public static function setConfiguration($c)
 {
     self::$configuration = $c;
 }
開發者ID:bqevin,項目名稱:processmaker,代碼行數:10,代碼來源:Propel.php

示例3: setConfiguration

 /**
  * Sets the configuration for Propel and all dependencies.
  *
  * @param      mixed The Configuration (array or PropelConfiguration)
  */
 public static function setConfiguration($c)
 {
     if (is_array($c)) {
         /* For some reason the array generated from runtime-conf.xml has separate
          * 'log' section and 'propel' sections. To maintain backward compatibility
          * we need to remove 'propel' section BUT of course first save the 'log' section.
          *
          * So here goes...
          */
         $log = array();
         if (isset($c['propel']) && isset($c['log'])) {
             //looks like the original array from myproject-conf.php
             $log = $c['log'];
         }
         // Support having the configuration stored within a 'propel' sub-section or at the top-level
         if (isset($c['propel']) && is_array($c['propel'])) {
             $c = $c['propel'];
         }
         if ($log) {
             $c['log'] = $log;
         }
         $c = new PropelConfiguration($c);
     }
     self::$configuration = $c;
 }
開發者ID:Evolix,項目名稱:lilac,代碼行數:30,代碼來源:Propel.php


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