本文整理汇总了PHP中DataExtension::populateDefaults方法的典型用法代码示例。如果您正苦于以下问题:PHP DataExtension::populateDefaults方法的具体用法?PHP DataExtension::populateDefaults怎么用?PHP DataExtension::populateDefaults使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DataExtension
的用法示例。
在下文中一共展示了DataExtension::populateDefaults方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: populateDefaults
public function populateDefaults()
{
$defaults = $this->owner->config()->get('defaults');
if (isset($defaults['ShowInSiteMap']) && $defaults['ShowInSiteMap'] == 0) {
$this->owner->ShowInSiteMap = 0;
} else {
if ($this->owner->ClassName != 'ErrorPage' && $this->owner->ClassName != 'BlogEntry') {
$this->owner->ShowInSiteMap = 1;
}
}
parent::populateDefaults();
}
示例2: populateDefaults
public function populateDefaults()
{
parent::populateDefaults();
$this->Loop = 1;
$this->Animate = 1;
}
示例3: populateDefaults
/**
* Sets the Date field to the current date.
*/
public function populateDefaults()
{
$this->owner->ExpiryDate = date('Y-m-d', strtotime('+1 year'));
$this->owner->Notified = 0;
parent::populateDefaults();
}
示例4: populateDefaults
public function populateDefaults()
{
$this->owner->URLSegment = "new-" . strtolower($this->owner->ClassName);
$this->owner->Title = "New " . strtolower($this->owner->ClassName);
parent::populateDefaults();
}
示例5: populateDefaults
public function populateDefaults()
{
parent::populateDefaults();
$this->owner->MobileDomain = 'm.' . $_SERVER['HTTP_HOST'];
$this->owner->FullSiteDomain = $_SERVER['HTTP_HOST'];
}
示例6: populateDefaults
public function populateDefaults()
{
$this->HTMLTagLine = _t('SiteConfig.TAGLINEDEFAULT', '<p>your tagline here</p>');
// Allow these defaults to be overridden
parent::populateDefaults();
}