*/
class CRM_Grant_Info extends CRM_Core_Component_Info {
- // docs inherited from interface
+ /**
+ * @inheritDoc
+ */
protected $keyword = 'grant';
- // docs inherited from interface
/**
+ * @inheritDoc
* @return array
*/
public function getInfo() {
}
- // docs inherited from interface
/**
+ * @inheritDoc
* @param bool $getAllUnconditionally
*
* @return array
);
}
- // docs inherited from interface
/**
+ * @inheritDoc
* @return null
*/
public function getUserDashboardElement() {
return NULL;
}
- // docs inherited from interface
/**
+ * @inheritDoc
* @return null
*/
public function getUserDashboardObject() {
return NULL;
}
- // docs inherited from interface
/**
+ * @inheritDoc
* @return array
*/
public function registerTab() {
- return array('title' => ts('Grants'),
+ return array(
+ 'title' => ts('Grants'),
'url' => 'grant',
'weight' => 50,
);
}
- // docs inherited from interface
/**
+ * @inheritDoc
* @return array
*/
public function registerAdvancedSearchPane() {
- return array('title' => ts('Grants'),
+ return array(
+ 'title' => ts('Grants'),
'weight' => 50,
);
}
- // docs inherited from interface
/**
+ * @inheritDoc
* @return null
*/
public function getActivityTypes() {
return NULL;
}
- // add shortcut to Create New
/**
+ * add shortcut to Create New
* @param $shortCuts
*/
public function creatNewShortcut(&$shortCuts) {
CRM_Core_Permission::check('edit grants')
) {
$shortCuts = array_merge($shortCuts, array(
- array('path' => 'civicrm/grant/add',
- 'query' => "reset=1&action=add&context=standalone",
- 'ref' => 'new-grant',
- 'title' => ts('Grant'),
- )));
+ array(
+ 'path' => 'civicrm/grant/add',
+ 'query' => "reset=1&action=add&context=standalone",
+ 'ref' => 'new-grant',
+ 'title' => ts('Grant'),
+ )
+ ));
}
}
}
-