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


PHP DataObject::populateDefaults方法代碼示例

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


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

示例1: populateDefaults

 public function populateDefaults()
 {
     parent::populateDefaults();
     if (!$this->Title) {
         $this->Title = _t('SecurityAdmin.NEWGROUP', "New Group");
     }
 }
開發者ID:spekulatius,項目名稱:silverstripe-framework,代碼行數:7,代碼來源:Group.php

示例2: populateDefaults

 public function populateDefaults()
 {
     $this->Title = _t('SiteConfig.SITENAMEDEFAULT', "Your Site Name");
     $this->Tagline = _t('SiteConfig.TAGLINEDEFAULT', "your tagline here");
     // Allow these defaults to be overridden
     parent::populateDefaults();
 }
開發者ID:8secs,項目名稱:cocina,代碼行數:7,代碼來源:SiteConfig.php

示例3: populateDefaults

 public function populateDefaults()
 {
     $this->Positions = 'asdfasdfasfd';
     //serialize( array('header','footer','sidebar') );
     // Allow these defaults to be overridden
     parent::populateDefaults();
 }
開發者ID:jaedb,項目名稱:modulemanager,代碼行數:7,代碼來源:ModuleManager.php

示例4: populateDefaults

 public function populateDefaults()
 {
     parent::populateDefaults();
     $this->animation = "slide";
     $this->easing = "linear";
     $this->direction = "horizontal";
     $this->reverse = 0;
     $this->animationLoop = 0;
     $this->slideshow = 0;
     $this->slideshowSpeed = 7000;
     $this->animationSpeed = 600;
     $this->randomize = 0;
     $this->showControlNav = 1;
 }
開發者ID:vinstah,項目名稱:body,代碼行數:14,代碼來源:FlexSlider.php

示例5: populateDefaults

 public function populateDefaults()
 {
     parent::populateDefaults();
 }
開發者ID:jelicanin,項目名稱:silverstripe-htmleditorfield-content-templates,代碼行數:4,代碼來源:HtmlEditorFieldContentTemplate.php

示例6: populateDefaults

 /**
  * standard SS method
  */
 function populateDefaults()
 {
     parent::populateDefaults();
     if (Security::database_is_ready()) {
         $this->AuthorID = Member::currentUserID();
     }
 }
開發者ID:helpfulrobot,項目名稱:sunnysideup-ecommerce,代碼行數:10,代碼來源:OrderStatusLog.php

示例7: populateDefaults

 /**
  * Standard SS Method
  * @var Array
  */
 public function populateDefaults()
 {
     parent::populateDefaults();
     $this->ReceiptEmail = Email::getAdminEmail();
 }
開發者ID:nieku,項目名稱:silverstripe-ecommerce,代碼行數:9,代碼來源:EcommerceDBConfig.php

示例8: populateDefaults

 /**
  * Standard SS Method
  * @var Array
  */
 public function populateDefaults()
 {
     parent::populateDefaults();
     $this->ReceiptEmail = Email::config()->admin_email;
 }
開發者ID:helpfulrobot,項目名稱:sunnysideup-ecommerce,代碼行數:9,代碼來源:EcommerceDBConfig.php

示例9: populateDefaults

 /**
  * standard SS method
  */
 function populateDefaults()
 {
     parent::populateDefaults();
     //can only run after first dev/build
     if (Security::database_is_ready()) {
         $controller = Controller::curr();
         if ($controller instanceof DatabaseAdmin) {
             //cant do this now.
         } else {
             if ($this->EcomConfig()->ShopPricesAreTaxExclusive) {
                 $this->InclusiveOrExclusive = "Exclusive";
             } else {
                 $this->InclusiveOrExclusive = "Inclusive";
             }
         }
     }
 }
開發者ID:helpfulrobot,項目名稱:sunnysideup-ecommerce-tax,代碼行數:20,代碼來源:GSTTaxModifierOptions.php

示例10: populateDefaults

 public function populateDefaults()
 {
     parent::populateDefaults();
     $this->MyFieldWithAltDefault = 'Default Value';
 }
開發者ID:nickspiel,項目名稱:silverstripe-framework,代碼行數:5,代碼來源:DataObjectTest.php

示例11: populateDefaults

 public function populateDefaults()
 {
     parent::populateDefaults();
     $this->updateWithLastInfo();
 }
開發者ID:NobrainerWeb,項目名稱:silverstripe-shop,代碼行數:5,代碼來源:OrderStatusLog.php

示例12: populateDefaults

 function populateDefaults()
 {
     parent::populateDefaults();
     $this->Amount->Currency = Payment::site_currency();
     $this->setClientIP();
 }
開發者ID:helpfulrobot,項目名稱:silverstripe-payment,代碼行數:6,代碼來源:RecurringPayment.php

示例13: populateDefaults

 public function populateDefaults()
 {
     $this->StartDate = date('Y-m-d H:i:s');
     parent::populateDefaults();
 }
開發者ID:tim-lar,項目名稱:silverstripe-eventmanagement,代碼行數:5,代碼來源:EventTicket.php

示例14: populateDefaults

 public function populateDefaults()
 {
     parent::populateDefaults();
     $this->setField('Title', $this->getTitle());
 }
開發者ID:steiha,項目名稱:silverstripe-widgets,代碼行數:5,代碼來源:Widget.php

示例15: populateDefaults

 public function populateDefaults()
 {
     parent::populateDefaults();
     $this->Date = date("Y-m-d H:i");
 }
開發者ID:helpfulrobot,項目名稱:arnhoe-silverstripe-simplenews,代碼行數:5,代碼來源:NewsArticle.php


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