'CiviAuction', 'translatedName' => ts('CiviAuction'), 'title' => ts('CiviCRM Auctions'), 'search' => 0, 'showActivitiesInCore' => 0, ); } // docs inherited from interface /** * @return array */ public function getPermissions() { return array('access CiviAuction', 'add auction items', 'approve auction items', 'bid on auction items', 'delete in CiviAuction', ); } // docs inherited from interface /** * Provides information about user dashboard element * offered by this component. * * @return array|null collection of required dashboard settings, * null if no element offered * @access public * */ public function getUserDashboardElement() { return array('name' => ts('Auctions'), 'title' => ts('Your Winning Auction Item(s)'), 'perm' => array('bid on auction items'), 'weight' => 20, ); } // docs inherited from interface /** * Provides information about user dashboard element * offered by this component. * * @return array|null collection of required dashboard settings, * null if no element offered * @access public * */ public function registerTab() { return array('title' => ts('Auctions'), 'id' => 'auction', 'url' => 'auction', 'weight' => 40, ); } // docs inherited from interface /** * Provides information about advanced search pane * offered by this component. * * @return array|null collection of required pane settings, * null if no element offered * @access public * */ public function registerAdvancedSearchPane() { return array('title' => ts('Auctions'), 'weight' => 40, ); } // docs inherited from interface /** * Provides potential activity types that this * component might want to register in activity history. * Needs to be implemented in component's information * class. * * @return array|null collection of activity types * @access public * */ public function getActivityTypes() { $types = array(); return $types; } // add shortcut to Create New /** * @param $shortCuts */ public function creatNewShortcut(&$shortCuts) {} }