| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
/**
*
/**
* Mailing templates
* @var array
- * @static
*/
private static $template;
/**
* Completed mailings
* @var array
- * @static
*/
private static $completed;
/**
* Mailing components
* @var array
- * @static
*/
private static $component;
/**
* Get all the mailing components of a particular type
*
- * @param $type the type of component needed
- * @access public
+ * @param $type
+ * The type of component needed.
*
- * @return array - array reference of all mailing components
- * @static
+ * @return array
+ * array reference of all mailing components
*/
public static function &component($type = NULL) {
$name = $type ? $type : 'ALL';
// we need to add an additional filter for $type
self::$component[$name] = array();
-
$object = new CRM_Mailing_DAO_Component();
$object->component_type = $type;
$object->selectAdd();
/**
* Determine the default mailing component of a given type
*
- * @param $type the type of component needed
- * @param $undefined the value to use if no default is defined
- * @access public
+ * @param $type
+ * The type of component needed.
+ * @param $undefined
+ * The value to use if no default is defined.
*
- * @return integer -The ID of the default mailing component.
- * @static
+ * @return int
+ * The ID of the default mailing component.
*/
public static function &defaultComponent($type, $undefined = NULL) {
if (!self::$defaultComponent) {
/**
* Get all the mailing templates
*
- * @access public
*
- * @return array - array reference of all mailing templates if any
- * @static
+ * @return array
+ * array reference of all mailing templates if any
*/
public static function &template() {
if (!self::$template) {
/**
* Get all the completed mailing
*
- * @access public
*
* @param null $mode
*
- * @return array - array reference of all mailing templates if any
- * @static
+ * @return array
+ * array reference of all mailing templates if any
*/
public static function &completed($mode = NULL) {
if (!self::$completed) {
if (!$options) {
$options = array(
'bounce' => array(
- 'N' => ts('Successful '), 'Y' => ts('Bounced '),
+ 'N' => ts('Successful '),
+ 'Y' => ts('Bounced '),
),
'delivered' => array(
- 'Y' => ts('Successful '), 'N' => ts('Bounced '),
+ 'Y' => ts('Successful '),
+ 'N' => ts('Bounced '),
),
'open' => array(
- 'Y' => ts('Opened '), 'N' => ts('Unopened/Hidden '),
+ 'Y' => ts('Opened '),
+ 'N' => ts('Unopened/Hidden '),
),
'click' => array(
- 'Y' => ts('Clicked '), 'N' => ts('Not Clicked '),
+ 'Y' => ts('Clicked '),
+ 'N' => ts('Not Clicked '),
),
'reply' => array(
- 'Y' => ts('Replied '), 'N' => ts('No Reply '),
+ 'Y' => ts('Replied '),
+ 'N' => ts('No Reply '),
),
);
}
* Flush given pseudoconstant so it can be reread from db
* next time it's requested.
*
- * @access public
- * @static
*
* @param bool|string $name pseudoconstant to be flushed
*/
public static function flush($name = 'template') {
- if (isset(self::$$name)) {
+ if (isset(self::$$name)) {
self::$$name = NULL;
}
}
-}
+}