X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FEvent%2FInfo.php;h=1d6d2d0f05beb6cd139b990a7f3748d71efd9660;hb=c927c1517145aca30a94534fd014233281c8f837;hp=ac38639c02ffccd30003c72a2615ad435cf351f8;hpb=d5f6077993b1df66a934933af0bc9327cff13e78;p=civicrm-core.git diff --git a/CRM/Event/Info.php b/CRM/Event/Info.php index ac38639c02..1d6d2d0f05 100644 --- a/CRM/Event/Info.php +++ b/CRM/Event/Info.php @@ -41,6 +41,9 @@ class CRM_Event_Info extends CRM_Core_Component_Info { protected $keyword = 'event'; // docs inherited from interface + /** + * @return array + */ public function getInfo() { return array( 'name' => 'CiviEvent', @@ -52,6 +55,11 @@ class CRM_Event_Info extends CRM_Core_Component_Info { } // docs inherited from interface + /** + * @param bool $getAllUnconditionally + * + * @return array + */ public function getPermissions($getAllUnconditionally = FALSE) { return array( 'access CiviEvent', @@ -64,6 +72,9 @@ class CRM_Event_Info extends CRM_Core_Component_Info { ); } + /** + * @return array + */ public function getAnonymousPermissionWarnings() { return array( 'access CiviEvent', @@ -71,6 +82,9 @@ class CRM_Event_Info extends CRM_Core_Component_Info { } // docs inherited from interface + /** + * @return array + */ public function getUserDashboardElement() { return array('name' => ts('Events'), 'title' => ts('Your Event(s)'), @@ -80,6 +94,9 @@ class CRM_Event_Info extends CRM_Core_Component_Info { } // docs inherited from interface + /** + * @return array + */ public function registerTab() { return array('title' => ts('Events'), 'id' => 'participant', @@ -89,6 +106,9 @@ class CRM_Event_Info extends CRM_Core_Component_Info { } // docs inherited from interface + /** + * @return array + */ public function registerAdvancedSearchPane() { return array('title' => ts('Events'), 'weight' => 40, @@ -96,6 +116,9 @@ class CRM_Event_Info extends CRM_Core_Component_Info { } // docs inherited from interface + /** + * @return array + */ public function getActivityTypes() { $types = array(); $types['Event'] = array('title' => ts('Event'), @@ -105,6 +128,10 @@ class CRM_Event_Info extends CRM_Core_Component_Info { } // add shortcut to Create New + /** + * @param $shortCuts + * @param $newCredit + */ public function creatNewShortcut(&$shortCuts, $newCredit) { if (CRM_Core_Permission::check('access CiviEvent') && CRM_Core_Permission::check('edit event participants')