当前位置: 首页>>代码示例>>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;未经允许,请勿转载。