本文整理汇总了PHP中Meeting::get_list_view_data方法的典型用法代码示例。如果您正苦于以下问题:PHP Meeting::get_list_view_data方法的具体用法?PHP Meeting::get_list_view_data怎么用?PHP Meeting::get_list_view_data使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Meeting
的用法示例。
在下文中一共展示了Meeting::get_list_view_data方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: testget_list_view_data
public function testget_list_view_data()
{
$meeting = new Meeting();
$current_theme = SugarThemeRegistry::current();
//preset required attribute values
$meeting->status == 'Planned';
$meeting->parent_type = 'Accounts';
$meeting->contact_id = 1;
$meeting->contact_name = 'test';
$meeting->parent_name = 'Account';
$expected = array('DELETED' => 0, 'PARENT_TYPE' => 'Accounts', 'STATUS' => 'Planned', 'TYPE' => 'Sugar', 'REMINDER_TIME' => '-1', 'EMAIL_REMINDER_TIME' => '-1', 'EMAIL_REMINDER_SENT' => '0', 'SEQUENCE' => '0', 'CONTACT_NAME' => 'test', 'PARENT_NAME' => '', 'CONTACT_ID' => 1, 'REPEAT_INTERVAL' => '1', 'PARENT_MODULE' => 'Accounts', 'SET_COMPLETE' => '<a id=\'\' onclick=\'SUGAR.util.closeActivityPanel.show("Meetings","","Held","listview","1");\'><img src="themes/' . $current_theme . '/images/close_inline.png?v=fqXdFZ_r6FC1K7P_Fy3mVw" border=\'0\' alt="Close" /></a>', 'DATE_START' => '<font class=\'overdueTask\'></font>', 'REMINDER_CHECKED' => false, 'EMAIL_REMINDER_CHECKED' => false);
$actual = $meeting->get_list_view_data();
//$this->assertSame($expected, $actual);
$this->assertEquals($expected['PARENT_TYPE'], $actual['PARENT_TYPE']);
$this->assertEquals($expected['STATUS'], $actual['STATUS']);
$this->assertEquals($expected['TYPE'], $actual['TYPE']);
$this->assertEquals($expected['REMINDER_TIME'], $actual['REMINDER_TIME']);
$this->assertEquals($expected['EMAIL_REMINDER_TIME'], $actual['EMAIL_REMINDER_TIME']);
$this->assertEquals($expected['EMAIL_REMINDER_SENT'], $actual['EMAIL_REMINDER_SENT']);
$this->assertEquals($expected['CONTACT_NAME'], $actual['CONTACT_NAME']);
$this->assertEquals($expected['CONTACT_ID'], $actual['CONTACT_ID']);
$this->assertEquals($expected['REPEAT_INTERVAL'], $actual['REPEAT_INTERVAL']);
$this->assertEquals($expected['PARENT_MODULE'], $actual['PARENT_MODULE']);
}