* @param array $defaults
* (reference ) an assoc array to hold the flattened values.
*
- * @return CRM_Event_BAO_ManageEvent object
- * @static
+ * @return CRM_Event_BAO_ManageEvent
*/
public static function retrieve(&$params, &$defaults) {
$event = new CRM_Event_DAO_Event();
*
* @return Object
* DAO object on sucess, null otherwise
- * @static
*/
public static function setIsActive($id, $is_active) {
return CRM_Core_DAO::setFieldValue('CRM_Event_DAO_Event', $id, 'is_active', $is_active);
* @param array $params
* Reference array contains the values submitted by the form.
*
- * @static
*
* @return object
*/
* Reference array contains the values submitted by the form.
*
* @return object
- * @static
- *
*/
public static function create(&$params) {
$transaction = new CRM_Core_Transaction();
* Event id.
*
* @return mixed|null
- * @static
- *
*/
public static function del($id) {
if (!$id) {
* @param int $eventId
* Event with which loc block is associated.
*
- * @static
*/
public static function deleteEventLocBlock($locBlockId, $eventId = NULL) {
$query = "SELECT count(ce.id) FROM civicrm_event ce WHERE ce.loc_block_id = $locBlockId";
* true if you need to check permission else false.
*
* @return array
- * @static
*/
static function getEvents(
$all = 0,
- $id = FALSE,
- $isActive = TRUE,
- $checkPermission = TRUE
+ $id = FALSE,
+ $isActive = TRUE,
+ $checkPermission = TRUE
) {
$query = "
SELECT `id`, `title`, `start_date`
/**
* Get events Summary
*
- * @static
*
* @return array
* Array of event summary values
*/
public static function getParticipantCount(
$eventId,
- $considerStatus = TRUE,
- $status = TRUE,
- $considerRole = TRUE,
- $role = TRUE
+ $considerStatus = TRUE,
+ $status = TRUE,
+ $considerRole = TRUE,
+ $role = TRUE
) {
// consider both role and status for counted participants, CRM-4924.
* @param int $id
* For which we want map info.
*
- * @return null|string title of the event
- * @static
+ * @return null|string
+ * title of the event
*/
public static function &getMapInfo(&$id) {
$params = array('entity_id' => $id, 'entity_table' => 'civicrm_event');
$addressValues = CRM_Core_BAO_Location::getValues($params, TRUE);
$location['address'] = str_replace(array(
- "\r",
- "\n",
- ), '', addslashes(nl2br($addressValues['address'][1]['display_text'])));
+ "\r",
+ "\n",
+ ), '', addslashes(nl2br($addressValues['address'][1]['display_text'])));
$location['url'] = CRM_Utils_System::url('civicrm/event/register', 'reset=1&id=' . $dao->event_id);
$location['location_type'] = $dao->location_type;
*
* @return array
* array of all the events that are searched
- * @static
*/
static function &getCompleteInfo(
$start = NULL,
*
* @param int $id
* The event id to copy.
- * obj $newEvent object of CRM_Event_DAO_Event
* boolean $afterCreate call to copy after the create function
* @param null $newEvent
* @param bool $afterCreate
*
- * @return void
+ * @return CRM_Event_DAO_Event
*/
public static function copy($id, $newEvent = NULL, $afterCreate = FALSE) {
- $defaults = $eventValues = array();
+ $eventValues = array();
//get the require event values.
$eventParams = array('id' => $id);
* @param array $profileFields
*
* @return void
- * @static
*/
public static function displayProfile(&$params, $gid, &$groupTitle, &$values, &$profileFields = array()) {
if ($gid) {
*
* @return string
* the permission that the user has (or null)
- * @static
*/
public static function checkPermission($eventId = NULL, $type = CRM_Core_Permission::VIEW) {
static $permissions = NULL;
*
* @return array
* an array of email ids
- * @static
*/
public static function getFromEmailIds($eventId = NULL) {
$fromEmailValues['from_email_id'] = CRM_Core_BAO_Email::getFromEmail();
*
* @return int
* event total seats w/ given criteria.
- * @static
*/
public static function eventTotalSeats($eventId, $extraWhereClause = NULL) {
if (empty($eventId)) {
* Event template id.
*
* @return array
- * of custom data defaults.
+ * Array of custom data defaults.
*/
public static function getTemplateDefaultValues($templateId) {
$defaults = array();
// Fixme - this is going to ignore context, better to get conditions, add params, and call PseudoConstant::get
return CRM_Financial_BAO_FinancialType::getIncomeFinancialType();
- break;
+ break;
}
return CRM_Core_PseudoConstant::get(__CLASS__, $fieldName, $params, $context);
}