当前位置: 首页>>代码示例>>PHP>>正文


PHP SugarFeed::pushFeed2方法代码示例

本文整理汇总了PHP中SugarFeed::pushFeed2方法的典型用法代码示例。如果您正苦于以下问题:PHP SugarFeed::pushFeed2方法的具体用法?PHP SugarFeed::pushFeed2怎么用?PHP SugarFeed::pushFeed2使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在SugarFeed的用法示例。


在下文中一共展示了SugarFeed::pushFeed2方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: pushFeed

 public function pushFeed($bean, $event, $arguments)
 {
     $text = '';
     if (empty($bean->fetched_row)) {
         $text = 'New Application Uploaded [' . $bean->module_dir . ':' . $bean->id . ':' . $bean->name . ']';
     }
     if (!empty($text)) {
         SugarFeed::pushFeed2($text, $bean);
     }
 }
开发者ID:anmoldeep,项目名称:erp,代码行数:10,代码来源:AppFeed.php

示例2: pushFeed

 function pushFeed($bean, $event, $arguments)
 {
     $text = '';
     if (empty($bean->fetched_row)) {
         $text = '{SugarFeed.CREATED_CONTACT} [' . $bean->module_dir . ':' . $bean->id . ':' . $bean->first_name . ' ' . $bean->last_name . ']';
     }
     if (!empty($text)) {
         SugarFeed::pushFeed2($text, $bean);
     }
 }
开发者ID:klr2003,项目名称:sourceread,代码行数:10,代码来源:ContactFeed.php

示例3: pushFeed

 function pushFeed($bean, $event, $arguments)
 {
     global $locale;
     $text = '';
     if (empty($bean->fetched_row)) {
         $text = '{SugarFeed.CREATED_ACCOUNT} [' . $bean->module_dir . ':' . $bean->id . ':' . $bean->name . ']';
     }
     if (!empty($text)) {
         SugarFeed::pushFeed2($text, $bean);
     }
 }
开发者ID:aldridged,项目名称:gtg-sugar,代码行数:11,代码来源:AccountFeed.php

示例4: pushFeed

 function pushFeed($bean, $event, $arguments)
 {
     $text = '';
     if (empty($bean->fetched_row)) {
         $text = '{SugarFeed.CREATED_CASE} [' . $bean->module_dir . ':' . $bean->id . ':' . $bean->name . '] {SugarFeed.FOR} [Accounts:' . $bean->account_id . ':' . $bean->account_name . ']<br>' . $bean->description;
     } else {
         if (!empty($bean->fetched_row['status']) && $bean->fetched_row['status'] != $bean->status && $bean->status == 'Closed') {
             $text = '{SugarFeed.CLOSED_CASE} [' . $bean->module_dir . ':' . $bean->id . ':' . $bean->name . '] {SugarFeed.FOR} [Accounts:' . $bean->account_id . ':' . $bean->account_name . ']';
         }
     }
     if (!empty($text)) {
         SugarFeed::pushFeed2($text, $bean);
     }
 }
开发者ID:klr2003,项目名称:sourceread,代码行数:14,代码来源:CaseFeed.php

示例5: testpushFeed2

 public function testpushFeed2()
 {
     $lead = new Lead();
     $lead->id = 1;
     $lead->assigned_user_id = 1;
     SugarFeed::pushFeed2('some text 2', $lead, 'Link', 'some url');
     //retrieve newly created bean
     $sugarFeed = new SugarFeed();
     $result = $sugarFeed->retrieve_by_string_fields(array('related_id' => '1', 'related_module' => 'Leads'));
     //test for record ID to verify that record is saved
     $this->assertTrue(isset($sugarFeed->id));
     $this->assertEquals(36, strlen($sugarFeed->id));
     //mark the record as deleted
     $sugarFeed->mark_deleted($sugarFeed->id);
 }
开发者ID:sacredwebsite,项目名称:SuiteCRM,代码行数:15,代码来源:SugarFeedTest.php

示例6: pushFeed

 function pushFeed($bean, $event, $arguments)
 {
     global $locale;
     $text = '';
     if (empty($bean->fetched_row)) {
         $full_name = $locale->getLocaleFormattedName($bean->first_name, $bean->last_name, '');
         $text = '{SugarFeed.CREATED_LEAD} [' . $bean->module_dir . ':' . $bean->id . ':' . $full_name . ']';
     } else {
         if (!empty($bean->fetched_row['status']) && $bean->fetched_row['status'] != $bean->status && $bean->status == 'Converted') {
             // Repeated here so we don't format the name on "uninteresting" events
             $full_name = $locale->getLocaleFormattedName($bean->first_name, $bean->last_name, '');
             $text = '{SugarFeed.CONVERTED_LEAD} [' . $bean->module_dir . ':' . $bean->id . ':' . $full_name . ']';
         }
     }
     if (!empty($text)) {
         SugarFeed::pushFeed2($text, $bean);
     }
 }
开发者ID:sysraj86,项目名称:carnivalcrm,代码行数:18,代码来源:LeadFeed.php

示例7: pushFeed

 function pushFeed($bean, $event, $arguments)
 {
     $text = '';
     if (empty($bean->fetched_row)) {
         $currency = new Currency();
         $currency->retrieve($bean->currency_id);
         $text = '{SugarFeed.CREATED_OPPORTUNITY} [' . $bean->module_dir . ':' . $bean->id . ':' . $bean->name . '] {SugarFeed.WITH} [Accounts:' . $bean->account_id . ':' . $bean->account_name . '] {SugarFeed.FOR} ' . $currency->symbol . format_number($bean->amount);
     } else {
         if (!empty($bean->fetched_row['sales_stage']) && $bean->fetched_row['sales_stage'] != $bean->sales_stage && $bean->sales_stage == 'Closed Won') {
             $currency = new Currency();
             $currency->retrieve($bean->currency_id);
             $text = '{SugarFeed.WON_OPPORTUNITY} [' . $bean->module_dir . ':' . $bean->id . ':' . $bean->name . '] {SugarFeed.WITH} [Accounts:' . $bean->account_id . ':' . $bean->account_name . '] {SugarFeed.FOR} ' . $currency->symbol . format_number($bean->amount);
         }
     }
     if (!empty($text)) {
         SugarFeed::pushFeed2($text, $bean);
     }
 }
开发者ID:MexinaD,项目名称:SuiteCRM,代码行数:18,代码来源:OppFeed.php

示例8: pushFeed

 function pushFeed($bean, $event, $arguments)
 {
     $text = '';
     if (empty($bean->fetched_row) && $bean->in_save) {
         $accountName = $bean->account_name;
         if (empty($accountName) && $bean->account_id) {
             $acc = BeanFactory::getBean('Accounts', $bean->account_id);
             $accountName = $acc->name;
         }
         $text = '{SugarFeed.CREATED_CASE} [' . $bean->module_dir . ':' . $bean->id . ':' . $bean->name . '] {SugarFeed.FOR} [Accounts:' . $bean->account_id . ':' . $accountName . ']: ' . $bean->description;
     } else {
         if (!empty($bean->fetched_row['status']) && $bean->fetched_row['status'] != $bean->status && strpos($bean->status, 'Closed') !== false) {
             $text = '{SugarFeed.CLOSED_CASE} [' . $bean->module_dir . ':' . $bean->id . ':' . $bean->name . '] {SugarFeed.FOR} [Accounts:' . $bean->account_id . ':' . $bean->account_name . ']';
         }
     }
     if (!empty($text)) {
         SugarFeed::pushFeed2($text, $bean);
     }
 }
开发者ID:sacredwebsite,项目名称:SuiteCRM,代码行数:19,代码来源:CaseFeed.php

示例9: pushFeed

 function pushFeed($bean, $event, $arguments)
 {
     global $locale;
     $text = '';
     if (empty($bean->fetched_row)) {
         $text = '{SugarFeed.CREATED_ACTIVITY} [' . $bean->module_dir . ':' . $bean->id . ':' . $locale->getLocaleFormattedName($bean->first_name, $bean->last_name) . ']';
     }
     if (!empty($text)) {
         SugarFeed::pushFeed2($text, $bean);
     }
 }
开发者ID:aldridged,项目名称:gtg-sugar,代码行数:11,代码来源:ActivitiesFeed.php


注:本文中的SugarFeed::pushFeed2方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。