Import from SVN (r45945, r596)
[civicrm-core.git] / tools / CRM / Touchstone / Info.php
CommitLineData
6a488035
TO
1<?php
2/*
3 +--------------------------------------------------------------------+
4 | CiviCRM version 4.1 |
5 +--------------------------------------------------------------------+
6 | Copyright CiviCRM LLC (c) 2004-2011 |
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
30require_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-2011
39 * $Id$
40 *
41 */
42class CRM_Touchstone_Info extends CRM_Core_Component_Info {
43
44 // docs inherited from interface
45 protected $keyword = 'touchstone';
46
47 // docs inherited from interface
48 public function getInfo() {
49 return array('name' => 'CiviTouchstone',
50 'translatedName' => ts('CiviTouchstone'),
51 'title' => ts('CiviCRM Touchstone Component'),
52 'search' => 1,
53 );
54 }
55
56 // docs inherited from interface
57 public function getPermissions() {
58 return array('access CiviTouchstone');
59 }
60
61 // docs inherited from interface
62 public function getUserDashboardElement() {
63 return array('name' => ts('Touchstone'),
64 'title' => ts('Your Touchstone'),
65 'perm' => array('access CiviTouchstone'),
66 'weight' => 85,
67 );
68 }
69
70 // docs inherited from interface
71 public function registerTab() {
72 return array('title' => ts('Touchstone'),
73 'url' => 'touchstone',
74 'weight' => 25,
75 );
76 }
77
78 // docs inherited from interface
79 public function registerAdvancedSearchPane() {
80 return array('title' => ts('Touchstone'),
81 'weight' => 25,
82 );
83 }
84
85 // docs inherited from interface
86 public function getActivityTypes() {
87 return NULL;
88 }
89
90 // add shortcut to Create New
91 public function creatNewShortcut(&$shortCuts) {}
92}
93