本文整理汇总了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");
}
}
示例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();
}
示例3: populateDefaults
public function populateDefaults()
{
$this->Positions = 'asdfasdfasfd';
//serialize( array('header','footer','sidebar') );
// Allow these defaults to be overridden
parent::populateDefaults();
}
示例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;
}
示例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();
}
}
示例7: populateDefaults
/**
* Standard SS Method
* @var Array
*/
public function populateDefaults()
{
parent::populateDefaults();
$this->ReceiptEmail = Email::getAdminEmail();
}
示例8: populateDefaults
/**
* Standard SS Method
* @var Array
*/
public function populateDefaults()
{
parent::populateDefaults();
$this->ReceiptEmail = Email::config()->admin_email;
}
示例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";
}
}
}
}
示例10: populateDefaults
public function populateDefaults()
{
parent::populateDefaults();
$this->MyFieldWithAltDefault = 'Default Value';
}
示例11: populateDefaults
public function populateDefaults()
{
parent::populateDefaults();
$this->updateWithLastInfo();
}
示例12: populateDefaults
function populateDefaults()
{
parent::populateDefaults();
$this->Amount->Currency = Payment::site_currency();
$this->setClientIP();
}
示例13: populateDefaults
public function populateDefaults()
{
$this->StartDate = date('Y-m-d H:i:s');
parent::populateDefaults();
}
示例14: populateDefaults
public function populateDefaults()
{
parent::populateDefaults();
$this->setField('Title', $this->getTitle());
}
示例15: populateDefaults
public function populateDefaults()
{
parent::populateDefaults();
$this->Date = date("Y-m-d H:i");
}