3 +--------------------------------------------------------------------+
4 | CiviCRM version 4.5 |
5 +--------------------------------------------------------------------+
6 | Copyright CiviCRM LLC (c) 2004-2014 |
7 +--------------------------------------------------------------------+
8 | This file is a part of CiviCRM. |
10 | CiviCRM is free software; you can copy, modify, and distribute it |
11 | under the terms of the GNU Affero General Public License |
12 | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
14 | CiviCRM is distributed in the hope that it will be useful, but |
15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
17 | See the GNU Affero General Public License for more details. |
19 | You should have received a copy of the GNU Affero General Public |
20 | License and the CiviCRM Licensing Exception along |
21 | with this program; if not, contact CiviCRM LLC |
22 | at info[AT]civicrm[DOT]org. If you have questions about the |
23 | GNU Affero General Public License or the licensing of CiviCRM, |
24 | see the CiviCRM license FAQ at http://civicrm.org/licensing |
25 +--------------------------------------------------------------------+
30 require_once 'CRM/Core/Component/Info.php';
33 * This class introduces component to the system and provides all the
34 * information about it. It needs to extend CRM_Core_Component_Info
38 * @copyright CiviCRM LLC (c) 2004-2014
41 class CRM_Auction_Info
extends CRM_Core_Component_Info
{
43 // docs inherited from interface
44 protected $keyword = 'auction';
46 // docs inherited from interface
47 public function getInfo() {
48 return array('name' => 'CiviAuction',
49 'translatedName' => ts('CiviAuction'),
50 'title' => ts('CiviCRM Auctions'),
52 'showActivitiesInCore' => 0,
57 // docs inherited from interface
58 public function getPermissions() {
59 return array('access CiviAuction',
61 'approve auction items',
62 'bid on auction items',
63 'delete in CiviAuction',
67 // docs inherited from interface
68 public function getUserDashboardElement() {
69 return array('name' => ts('Auctions'),
70 'title' => ts('Your Winning Auction Item(s)'),
71 'perm' => array('bid on auction items'),
76 // docs inherited from interface
77 public function registerTab() {
78 return array('title' => ts('Auctions'),
85 // docs inherited from interface
86 public function registerAdvancedSearchPane() {
87 return array('title' => ts('Auctions'),
92 // docs inherited from interface
93 public function getActivityTypes() {
98 // add shortcut to Create New
99 public function creatNewShortcut(&$shortCuts) {}