| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
/**
* One place to store frequently used values in Select Elements. Note that
/**
* Preferred mail format
- * @static
+ *
+ * @return array
*/
public static function pmf() {
return array(
/**
* Privacy options
- * @static
+ *
+ * @return array
*/
public static function privacy() {
return array(
/**
* Various pre defined contact super types
- * @static
+ *
+ * @return array
*/
public static function contactType() {
static $contactType = NULL;
/**
* Various pre defined unit list
- * @static
+ *
+ * @param string $unitType
+ * @return array
*/
public static function unitList($unitType = NULL) {
$unitList = array(
/**
* Membership type unit
- * @static
+ *
+ * @return array
*/
public static function membershipTypeUnitList() {
return self::unitList('duration');
/**
* Various pre defined period types
- * @static
+ *
+ * @return array
*/
public static function periodType() {
return array(
/**
* Various pre defined email selection methods
- * @static
+ *
+ * @return array
*/
public static function emailSelectMethods() {
return array(
/**
* Various pre defined member visibility options
- * @static
+ *
+ * @return array
*/
public static function memberVisibility() {
return array(
/**
* Member auto-renew options
- * @static
+ *
+ * @return array
*/
public static function memberAutoRenew() {
return array(
/**
* Various pre defined event dates
- * @static
+ *
+ * @return array
*/
public static function eventDate() {
return array(
/**
* Custom form field types
- * @static
+ *
+ * @return array
*/
public static function customHtmlType() {
return array(
/**
* Various pre defined extensions for dynamic properties and groups
*
- * @static
+ * @return array
+ *
*/
public static function customGroupExtends() {
$customGroupExtends = array(
/**
* Styles for displaying the custom data group
*
- * @static
+ * @return array
+ *
*/
public static function customGroupStyle() {
return array(
/**
* For displaying the uf group types
*
- * @static
+ * @return array
*/
public static function ufGroupTypes() {
$ufGroupType = array(
/**
* The status of a contact within a group
*
- * @static
+ * @return array
+ *
*/
public static function groupContactStatus() {
return array(
/**
* List of Group Types
- * @static
+ *
+ * @return array
*/
public static function groupType() {
return array(
/**
* Compose the parameters for a date select object
*
- * @param string|NULL $type the type of date
- * @param string|NULL $format date format ( QF format)
- *
+ * @param string|NULL $type
+ * the type of date
+ * @param string|NULL $format
+ * date format (QF format)
* @param null $minOffset
* @param null $maxOffset
*
* @return array
* the date array
- * @static
*/
public static function date($type = NULL, $format = NULL, $minOffset = NULL, $maxOffset = NULL) {
-
$date = array(
'addEmptyOption' => TRUE,
'emptyOptionText' => ts('- select -'),
/**
* Values for UF form visibility options
*
- * @static
+ * @return array
*/
public static function ufVisibility() {
return array(
/**
* Values for group form visibility options
*
- * @static
+ * @return array
*/
public static function groupVisibility() {
return array(
/**
* Different type of Mailing Components
*
- * @static
- * return array
+ * @return array
*/
public static function mailingComponents() {
return array(
/**
* Get hours
*
- *
- * @static
+ * @return array
*/
public function getHours() {
$hours = array();
/**
* Get minutes
*
- *
- * @static
+ * @return array
*/
public function getMinutes() {
$minutes = array();
*
* @return array
* array of map providers
- * @static
*/
public static function mapProvider() {
static $map = NULL;
*
* @return array
* array of geocoder providers
- * @static
*/
public static function geoProvider() {
static $geo = NULL;
}
/**
- * Get the Address Standardization Providers from available
- * plugins
+ * Get the Address Standardization Providers from available plugins
*
* @return array
* array of address standardization providers
- * @static
*/
public static function addressProvider() {
static $addr = NULL;
/**
* Different type of Mailing Tokens
*
- * @static
- * return array
+ * @return array
*/
public static function mailingTokens() {
return array(
/**
* Different type of Activity Tokens
*
- * @static
- * return array
+ * @return array
*/
public static function activityTokens() {
return array(
/**
* Different type of Membership Tokens
*
- * @static
- * return array
+ * @return array
*/
public static function membershipTokens() {
return array(
/**
* Different type of Event Tokens
*
- * @static
- * return array
+ * @return array
*/
public static function eventTokens() {
return array(
/**
* Different type of Event Tokens
*
- * @static
- * return array
+ * @return array
*/
public static function contributionTokens() {
return array(
/**
* Different type of Contact Tokens
*
- * @static
- * return array
+ * @return array
*/
public static function contactTokens() {
static $tokens = NULL;
/**
* Different type of Participant Tokens
*
- * @static
- * return array
+ * @return array
*/
public static function participantTokens() {
static $tokens = NULL;
}
/**
- * CiviCRM supported date input formats
+ * CiviCRM supported date input formats
+ *
+ * @return array
*/
public static function getDatePluginInputFormats() {
$dateInputFormats = array(
);
/*
- Year greater than 2000 get wrong result for following format
- echo date( 'Y-m-d', strtotime( '7 Nov, 2001') );
- echo date( 'Y-m-d', strtotime( '7 November, 2001') );
- Return current year
- expected :: 2001-11-07
- output :: 2009-11-07
- However
- echo date( 'Y-m-d', strtotime( 'Nov 7, 2001') );
- echo date( 'Y-m-d', strtotime( 'November 7, 2001') );
- gives proper result
- */
+ Year greater than 2000 get wrong result for following format
+ echo date( 'Y-m-d', strtotime( '7 Nov, 2001') );
+ echo date( 'Y-m-d', strtotime( '7 November, 2001') );
+ Return current year
+ expected :: 2001-11-07
+ output :: 2009-11-07
+ However
+ echo date( 'Y-m-d', strtotime( 'Nov 7, 2001') );
+ echo date( 'Y-m-d', strtotime( 'November 7, 2001') );
+ gives proper result
+ */
return $dateInputFormats;
}
/**
* Map date plugin and actual format that is used by PHP
+ *
+ * @return array
*/
public static function datePluginToPHPFormats() {
$dateInputFormats = array(
/**
* Time formats
+ *
+ * @return array
*/
public static function getTimeFormats() {
return array(
/**
* Get numeric options
*
+ * @param int $start
+ * @param int $end
*
- * @static
+ * @return array
*/
public static function getNumericOptions($start = 0, $end = 10) {
$numericOptions = array();
/**
* Barcode types
- * @static
+ *
+ * @return array
*/
public static function getBarcodeTypes() {
return array(
/**
* Dedupe rule types
+ *
+ * @return array
*/
public static function getDedupeRuleTypes() {
return array(
/**
* Campaign group types
+ *
+ * @return array
*/
public static function getCampaignGroupTypes() {
return array(
/**
* Subscription history method
+ *
+ * @return array
*/
public static function getSubscriptionHistoryMethods() {
return array(
/**
* Premium units
+ *
+ * @return array
*/
public static function getPremiumUnits() {
return array(
/**
* Extension types
+ *
+ * @return array
*/
public static function getExtensionTypes() {
return array(
/**
* Job frequency
+ *
+ * @return array
*/
public static function getJobFrequency() {
return array(
/**
* Search builder operators
+ *
+ * @return array
*/
public static function getSearchBuilderOperators() {
return array(
'>=' => '≥',
'<=' => '≤',
'IN' => ts('In'),
+ 'NOT IN' => ts('Not In'),
'LIKE' => ts('Like'),
+ 'NOT LIKE' => ts('Not Like'),
'RLIKE' => ts('Regex'),
'IS EMPTY' => ts('Is Empty'),
'IS NOT EMPTY' => ts('Not Empty'),
/**
* Profile group types
*
- * @static
+ * @return array
*/
public static function getProfileGroupType() {
$profileGroupType = array(
/**
* Word replacement match type
+ *
+ * @return array
*/
public static function getWordReplacementMatchType() {
return array(
/**
* Mailing group types
+ *
+ * @return array
*/
public static function getMailingGroupTypes() {
return array(
/**
* Mailing Job Status
+ *
+ * @return array
*/
public static function getMailingJobStatus() {
return array(
);
}
+ /**
+ * @return array
+ */
public static function billingMode() {
return array(
CRM_Core_Payment::BILLING_MODE_FORM => 'form',
/**
* Frequency unit for schedule reminders
+ *
+ * @return array
*/
public static function getScheduleReminderFrequencyUnits() {
//@todo update schema to refer to option group direct & remove this
static $scheduleReminderFrequencyUnits = NULL;
if (!$scheduleReminderFrequencyUnits) {
$scheduleReminderFrequencyUnits = array(
- 'hour' => ts('hour')
- ) + CRM_Core_OptionGroup::values('recur_frequency_units');
+ 'hour' => ts('hour'),
+ ) + CRM_Core_OptionGroup::values('recur_frequency_units');
}
return $scheduleReminderFrequencyUnits;
}
+
}