本文整理匯總了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();
}