本文整理汇总了PHP中Campaign::getStatusDropDownArray方法的典型用法代码示例。如果您正苦于以下问题:PHP Campaign::getStatusDropDownArray方法的具体用法?PHP Campaign::getStatusDropDownArray怎么用?PHP Campaign::getStatusDropDownArray使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Campaign
的用法示例。
在下文中一共展示了Campaign::getStatusDropDownArray方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: testGetStatusDropDownArray
public function testGetStatusDropDownArray()
{
$statusDropDownArray = Campaign::getStatusDropDownArray();
$this->assertNotEmpty($statusDropDownArray);
$this->assertEquals('Paused', $statusDropDownArray[1]);
$this->assertEquals('Active', $statusDropDownArray[2]);
$this->assertEquals('Processing', $statusDropDownArray[3]);
$this->assertEquals('Completed', $statusDropDownArray[4]);
}
示例2: populateModel
public function populateModel(&$model)
{
assert('$model instanceof Campaign');
parent::populateModel($model);
if (empty($this->seedData)) {
$this->seedData = ZurmoRandomDataUtil::getRandomDataByModuleAndModelClassNames('CampaignsModule', 'Campaign');
}
$statusKeys = array_keys(Campaign::getStatusDropDownArray());
$timestamp = time();
$model->name = $this->seedData['name'][$this->index];
$model->subject = $this->seedData['subject'][$this->index];
$model->status = RandomDataUtil::getRandomValueFromArray($statusKeys);
if (!(rand() % 2)) {
$timestamp += rand(500, 5000);
}
$model->sendOnDateTime = DateTimeUtil::convertTimestampToDbFormatDateTime($timestamp);
$model->supportsRichText = rand() % 2;
$model->htmlContent = $this->seedData['htmlContent'][$this->index];
$model->textContent = $this->seedData['textContent'][$this->index];
$model->fromName = $this->seedData['fromName'][$this->index];
$model->fromAddress = $this->seedData['fromAddress'][$this->index];
$model->enableTracking = rand() % 2;
$this->populateMarketingModelWithFiles($model);
}
示例3: getDropDownArray
protected function getDropDownArray()
{
return Campaign::getStatusDropDownArray();
}
示例4: getDropDownArray
public function getDropDownArray()
{
return Campaign::getStatusDropDownArray();
}
开发者ID:maruthisivaprasad,项目名称:zurmo,代码行数:4,代码来源:CampaignStatusStaticDropDownForWizardModelElement.php