Merge branch '4.4' into master
[civicrm-core.git] / tools / CRM / Auction / Info.php
1 <?php
2 /*
3 +--------------------------------------------------------------------+
4 | CiviCRM version 4.5 |
5 +--------------------------------------------------------------------+
6 | Copyright CiviCRM LLC (c) 2004-2014 |
7 +--------------------------------------------------------------------+
8 | This file is a part of CiviCRM. |
9 | |
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. |
13 | |
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. |
18 | |
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 +--------------------------------------------------------------------+
26 */
27
28
29
30 require_once 'CRM/Core/Component/Info.php';
31
32 /**
33 * This class introduces component to the system and provides all the
34 * information about it. It needs to extend CRM_Core_Component_Info
35 * abstract class.
36 *
37 * @package CRM
38 * @copyright CiviCRM LLC (c) 2004-2014
39 * $Id$
40 * */
41 class CRM_Auction_Info extends CRM_Core_Component_Info {
42
43 // docs inherited from interface
44 protected $keyword = 'auction';
45
46 // docs inherited from interface
47 public function getInfo() {
48 return array('name' => 'CiviAuction',
49 'translatedName' => ts('CiviAuction'),
50 'title' => ts('CiviCRM Auctions'),
51 'search' => 0,
52 'showActivitiesInCore' => 0,
53 );
54 }
55
56
57 // docs inherited from interface
58 public function getPermissions() {
59 return array('access CiviAuction',
60 'add auction items',
61 'approve auction items',
62 'bid on auction items',
63 'delete in CiviAuction',
64 );
65 }
66
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'),
72 'weight' => 20,
73 );
74 }
75
76 // docs inherited from interface
77 public function registerTab() {
78 return array('title' => ts('Auctions'),
79 'id' => 'auction',
80 'url' => 'auction',
81 'weight' => 40,
82 );
83 }
84
85 // docs inherited from interface
86 public function registerAdvancedSearchPane() {
87 return array('title' => ts('Auctions'),
88 'weight' => 40,
89 );
90 }
91
92 // docs inherited from interface
93 public function getActivityTypes() {
94 $types = array();
95 return $types;
96 }
97
98 // add shortcut to Create New
99 public function creatNewShortcut(&$shortCuts) {}
100 }
101